Welcome to the development guide for OAgent. Setting up your local environment and understanding our workflows will help you land solid contributions.
- Node.js 20 or later
- pnpm 10 or later
- Ensure your OS allows launching raw Electron process apps locally. On macOS, liquid glass (
electron-liquid-glass) requires Tahoe+.
The following commands are available from the package.json for rapid iteration. We use tsup for compiling the backend Main process to CommonJS (electron/dist) and Vite for shipping the React Renderer process.
pnpm install: Install workspace dependencies cleanly via lockfile.pnpm dev: Start the UI and the backend under concurrency, watching for changes.pnpm build: Generate production bundles for Electron and React.pnpm exec tsc --noEmit: Typecheck across the boundaries.
- Fork or Branch: Create a feature branch like
fix/sidebar-bugorcodex/new-tool. - Develop: Try to keep component layers properly separated. Refer to Architecture.
- Check Types: Don't break
tsccompliance in the process! - Open a Pull Request: Check
CONTRIBUTING.mdfor our review targets.
Always double check our open-source scripts prior to pushing up:
./scripts/oss-check.shUnder standard developer flows:
pnpm install
pnpm devWait about 2-3 seconds for .vite to boot before Electron launches the frameless interface.