Skip to content

Commit acb6f51

Browse files
committed
sync config docs and schema
1 parent 8d04298 commit acb6f51

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ Each level overrides the previous, so project settings take priority over global
9999
"protectedFilePatterns": [],
100100
// Unified context compression tool and behavior settings
101101
"compress": {
102+
// Compression mode: "range" (compress spans into block summaries)
103+
// or "message" (compress individual raw messages)
104+
"mode": "range",
102105
// Permission mode: "allow" (no prompt), "ask" (prompt), "deny" (tool not registered)
103106
"permission": "allow",
104107
// Show compression content in a chat notification
@@ -204,11 +207,11 @@ To reset an override, delete the matching file from your overrides directory.
204207
### Protected Tools
205208

206209
By default, these tools are always protected from pruning:
207-
`task`, `skill`, `todowrite`, `todoread`, `compress`, `batch`, `plan_enter`, `plan_exit`
210+
`task`, `skill`, `todowrite`, `todoread`, `compress`, `batch`, `plan_enter`, `plan_exit`, `write`, `edit`
208211

209212
The `protectedTools` arrays in `commands` and `strategies` add to this default list.
210213

211-
For the `compress` tool, `compress.protectedTools` ensures specific tool outputs are appended to the compressed summary. It defaults to an empty array `[]` but always inherently protects `task`, `skill`, `todowrite`, and `todoread`.
214+
For the `compress` tool, `compress.protectedTools` ensures specific tool outputs are appended to the compressed summary. By default it includes `task`, `skill`, `todowrite`, and `todoread`.
212215

213216
## Impact on Prompt Caching
214217

dcp.schema.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,12 @@
128128
"description": "Configuration for the unified compress tool",
129129
"additionalProperties": false,
130130
"properties": {
131+
"mode": {
132+
"type": "string",
133+
"enum": ["range", "message"],
134+
"default": "range",
135+
"description": "Compression mode. 'range' compresses spans into block summaries, 'message' compresses individual raw messages."
136+
},
131137
"permission": {
132138
"type": "string",
133139
"enum": ["ask", "allow", "deny"],
@@ -231,6 +237,19 @@
231237
"default": false,
232238
"description": "When enabled, your messages are never lost during compression"
233239
}
240+
},
241+
"default": {
242+
"mode": "range",
243+
"permission": "allow",
244+
"showCompression": false,
245+
"maxContextLimit": 150000,
246+
"minContextLimit": 50000,
247+
"nudgeFrequency": 5,
248+
"iterationNudgeThreshold": 15,
249+
"nudgeForce": "soft",
250+
"flatSchema": false,
251+
"protectedTools": [],
252+
"protectUserMessages": false
234253
}
235254
},
236255
"strategies": {

0 commit comments

Comments
 (0)