mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-09-24 16:02:55 +08:00
docs: consolidate kilocode_change markers to dedicated file
Move full kilocode_change marker documentation from AGENTS.md to .opencode/agent/kilocode-markers.md and remove the section from AGENTS.md.
This commit is contained in:
@@ -1,6 +1,27 @@
|
||||
# Kilocode Change Markers
|
||||
|
||||
When modifying shared code (files that exist in upstream opencode), use `kilocode_change` markers to identify Kilo Code-specific changes.
|
||||
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user