# OCcode — Agent Reference This file is the authoritative reference for AI agents working in this repository. It supersedes all older planning documents. --- ## Project Overview **OCcode** is a branded IDE built on the [Void editor](https://github.com/voideditor/void) fork (which is itself a fork of VS Code). It ships with the **OpenClaw** VS Code extension pre-bundled. The old `apps/wrapper` (Electron bootstrapper that downloaded VSCodium) has been retired. The Void editor fork is now the main platform. --- ## Monorepo Structure ``` occ/ ├── apps/ │ ├── editor/ # Void editor fork — main IDE platform │ └── web/ # Next.js marketing site ├── packages/ │ └── control-center/ # Shared React UI components ├── watch-editor.sh # Dev: compile editor (macOS/Linux) ├── watch-editor.bat # Dev: compile editor (Windows) ├── launch-editor.sh # Dev: launch editor (macOS/Linux) ├── launch-editor.bat # Dev: launch editor (Windows) └── watch-react.sh # Dev: watch Void React UI components (macOS/Linux) ``` **Root `package.json` workspaces:** `apps/web`, `packages/control-center` `apps/editor` is **intentionally excluded from workspaces** — see the npm section below. --- ## apps/editor A fork of the Void editor (vscode `code-oss-dev` v1.99.3). Already branded as OCcode: - `product.json` → `applicationName: occode`, `dataFolderName: .occode-editor` ### Node version — critical **Exact version required: `20.18.2`** Enforced by `apps/editor/build/npm/preinstall.js`. Will hard-fail `npm install` on any other version. The required version is pinned in `apps/editor/.nvmrc`. ```bash nvm install 20.18.2 # first time only cd apps/editor nvm use # reads .nvmrc automatically npm install ``` ### Why apps/editor is excluded from root workspaces When `apps/editor` is in the root `workspaces` array, npm hoists its dependencies (including `gulp`) to the root `node_modules/`. The editor's internal scripts reference `./node_modules/gulp/bin/gulp.js` as a local path — hoisting breaks this, causing `Error: Cannot find module`. Root `package.json` scripts use `npm --prefix apps/editor run