Skip to content

Commit 27ed0b1

Browse files
committed
docs: update compress boundary guidance
1 parent 385f361 commit 27ed0b1

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

lib/prompts/system.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ Treat token counts and context growth as soft signals, not hard triggers.
2121
- When multiple independent stale ranges are ready, batch compressions in parallel
2222

2323
BOUNDARY MATCHING
24-
`compress` uses inclusive string boundaries, matching a string at the start of a message or tool output will consume the entire item. Be conservative and precise: choose unique strings with enough surrounding context to avoid ambiguous matches or accidental range capture
24+
`compress` uses inclusive ID boundaries via `content.startId` and `content.endId`. IDs are injected in context as message refs (`mNNNN`) and compressed block refs (`bN`).
2525

26-
NEVER use generic tool status messages as boundaries (e.g. "Edit applied successfully.", "File written successfully"). These repeat across every tool call and will always fail with multiple matches.
26+
Only choose IDs currently visible in context. Do not invent IDs.
2727

2828
RESPECT THE CHRONOLOGY OF THE RANGE
29-
STARTSTRING MUST ALWAYS BE ABOVE ENDSTRING
30-
ENDSTRING MUST ALWAYS BE BELOW STARTSTRING
31-
DO NOT USE A TOOL SCHEMA FIELD FOR START OR END STRING.
29+
`content.startId` MUST refer to an item above/before `content.endId`
30+
`content.endId` MUST refer to an item below/after `content.startId`
31+
Always provide boundaries via the tool schema fields `content.startId` and `content.endId`.
3232

3333
THE SUMMARY STANDARD
3434
Your summary MUST be technical and specific enough to preserve FULL understanding of what transpired, such that NO ambiguity remains about what asked, found, planned, done, or decided - yet noise free

0 commit comments

Comments
 (0)