diff --git a/AGENTS.md b/AGENTS.md index 1d4c3f77eb2..785ad5d24c2 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -10,6 +10,7 @@ Kilo CLI is an open source AI coding agent that generates code from natural lang ## Build and Dev - **Dev**: `bun run dev` (runs from root) or `bun run --cwd packages/opencode --conditions=browser src/index.ts` +- **Dev with params**: `bun dev -- help` - **Extension**: `bun run extension` (build + launch VS Code with the extension in dev mode). Pass `--no-build` to skip the build. - **Typecheck**: `bun turbo typecheck` (uses `tsgo`, not `tsc`) - **Test**: `bun test` from `packages/opencode/` (NOT from root -- root blocks tests) @@ -174,6 +175,8 @@ Tests MUST test actual implementation, do not duplicate logic into a test. Kilo CLI is a fork of [opencode](https://github.com/anomalyco/opencode). +**Very important**: when planning or coding, update shared files with OpenCode as last resort! Everything is shared code from OpenCode, except folders that contain `kilo` in the name or have a parent directory that contains `kilo` in the name. Example of kilo specific folders: `packages/opencode/src/kilocode/` and `packages/kilo-docs/`. Always look for ways to implement your feature or fix in a way that minimizes changes to shared code. + ### Minimizing Merge Conflicts We regularly merge upstream changes from opencode. To minimize merge conflicts and keep the sync process smooth: