You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-6Lines changed: 8 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,8 +32,8 @@ Compress is a tool exposed to your model that replaces closed, stale conversatio
32
32
33
33
DCP supports two compression modes:
34
34
35
-
-`range` mode compresses a contiguous span of conversation into one or more reusable block summaries.
36
-
-`message` mode is experimental and compresses individual raw messages independently, letting the model manage context much more surgically around closed work.
35
+
-`range` mode compresses contiguous spans of conversation into one or more summaries.
36
+
-`message` mode (experimental) compresses individual raw messages independently, letting the model manage context much more surgically.
37
37
38
38
In `range` mode, when a new compression overlaps an earlier one, the earlier summary is nested inside the new one so information is preserved through layers of compression rather than diluted away. In both modes, protected tool outputs (such as subagents and skills) and protected file patterns are kept in compression summaries, ensuring that the most important information is never lost. You can also enable `protectUserMessages` to preserve your messages verbatim during compression, though note that large prompts (e.g. copy-pasting log files in the prompt) will then never be compressed away.
39
39
@@ -55,6 +55,9 @@ DCP uses its own config file, searched in order:
55
55
56
56
Each level overrides the previous, so project settings take priority over global. Restart OpenCode after making config changes.
57
57
58
+
> [!NOTE]
59
+
> If you use models with smaller context windows, such as GitHub Copilot models or local models, lower `compress.minContextLimit` and `compress.maxContextLimit` in your configuration to match the available context.
60
+
58
61
> [!IMPORTANT]
59
62
> Defaults are applied automatically. Expand this if you want to review or override settings.
60
63
@@ -111,10 +114,12 @@ Each level overrides the previous, so project settings take priority over global
111
114
"permission":"allow",
112
115
// Show compression content in a chat notification
113
116
"showCompression":false,
117
+
// Let active summary tokens extend the effective maxContextLimit
Copy file name to clipboardExpand all lines: dcp.schema.json
+8-2Lines changed: 8 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -145,9 +145,14 @@
145
145
"default": false,
146
146
"description": "Show compression summaries in notifications"
147
147
},
148
+
"summaryBuffer": {
149
+
"type": "boolean",
150
+
"default": true,
151
+
"description": "When enabled, active summary tokens extend the effective maxContextLimit used for context-limit nudges."
152
+
},
148
153
"maxContextLimit": {
149
154
"description": "Soft upper threshold. Above this, DCP keeps sending strong compression nudges (based on nudgeFrequency), so the model is pushed to compress. Accepts number or \"X%\" of the model context window.",
0 commit comments