mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-09-21 05:52:35 +08:00
Merge pull request #1 from Kilo-Org/change-agentsmd
Add Kilo rules to AGENTS.md
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
# AGENTS.md
|
||||
|
||||
Kilo Code is an open source AI coding agent for VS Code that generates code from natural language, automates tasks, and supports 500+ AI models.
|
||||
|
||||
- To regenerate the JavaScript SDK, run `./packages/sdk/js/script/build.ts`.
|
||||
- ALWAYS USE PARALLEL TOOLS WHEN APPLICABLE.
|
||||
- The default branch in this repo is `dev`.
|
||||
@@ -78,3 +82,38 @@ const bazFoo = 3
|
||||
|
||||
You MUST avoid using `mocks` as much as possible.
|
||||
Tests MUST test actual implementation, do not duplicate logic into a test.
|
||||
|
||||
## Fork Merge Process
|
||||
|
||||
Kilo Code is a fork of [opencode](https://github.com/anomalyco/opencode).
|
||||
|
||||
## kilocode_change Markers
|
||||
|
||||
To minimize merge conflicts when syncing with upstream, mark Kilo Code-specific changes in shared code with `kilocode_change` comments.
|
||||
|
||||
**Single line:**
|
||||
|
||||
```typescript
|
||||
const value = 42 // kilocode_change
|
||||
```
|
||||
|
||||
**Multi-line:**
|
||||
|
||||
```typescript
|
||||
// kilocode_change start
|
||||
const foo = 1
|
||||
const bar = 2
|
||||
// kilocode_change end
|
||||
```
|
||||
|
||||
**New files:**
|
||||
|
||||
```typescript
|
||||
// kilocode_change - new file
|
||||
```
|
||||
|
||||
### When markers are NOT needed
|
||||
|
||||
Code in these directories is Kilo Code-specific and doesn't need markers:
|
||||
|
||||
- Any path containing `kilocode` in filename or directory name
|
||||
|
||||
Reference in New Issue
Block a user