Skip to content

Commit 2f9b1c0

Browse files
committed
config: raise default compress thresholds
Increase the default compression reminder thresholds so DCP starts nudging later and uses a higher upper bound by default, while keeping the schema, docs, and test fixture aligned.
1 parent 538b161 commit 2f9b1c0

4 files changed

Lines changed: 9 additions & 9 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,11 @@ Each level overrides the previous, so project settings take priority over global
106106
// Soft upper threshold: above this, DCP keeps injecting strong
107107
// compression nudges (based on nudgeFrequency), so compression is
108108
// much more likely. Accepts: number or "X%" of model context window.
109-
"maxContextLimit": 100000,
109+
"maxContextLimit": 150000,
110110
// Soft lower threshold for reminder nudges: below this, turn/iteration
111111
// reminders are off (compression less likely). At/above this, reminders
112112
// are on. Accepts: number or "X%" of model context window.
113-
"minContextLimit": 30000,
113+
"minContextLimit": 50000,
114114
// Optional per-model override for maxContextLimit by providerID/modelID.
115115
// If present, this wins over the global maxContextLimit.
116116
// Accepts: number or "X%".
@@ -122,7 +122,7 @@ Each level overrides the previous, so project settings take priority over global
122122
// Optional per-model override for minContextLimit.
123123
// If present, this wins over the global minContextLimit.
124124
// "modelMinLimits": {
125-
// "openai/gpt-5.3-codex": 30000,
125+
// "openai/gpt-5.3-codex": 50000,
126126
// "anthropic/claude-sonnet-4.6": "25%"
127127
// },
128128
// How often the context-limit nudge fires (1 = every fetch, 5 = every 5th)

dcp.schema.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@
141141
},
142142
"maxContextLimit": {
143143
"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.",
144-
"default": 100000,
144+
"default": 150000,
145145
"oneOf": [
146146
{
147147
"type": "number"
@@ -154,7 +154,7 @@
154154
},
155155
"minContextLimit": {
156156
"description": "Soft lower threshold for reminder nudges. Below this, turn/iteration reminders are off (compression is less likely). At or above this, reminders are on. Accepts number or \"X%\" of the model context window.",
157-
"default": 30000,
157+
"default": 50000,
158158
"oneOf": [
159159
{
160160
"type": "number"

lib/config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -664,8 +664,8 @@ const defaultConfig: PluginConfig = {
664664
compress: {
665665
permission: "allow",
666666
showCompression: false,
667-
maxContextLimit: 100000,
668-
minContextLimit: 30000,
667+
maxContextLimit: 150000,
668+
minContextLimit: 50000,
669669
nudgeFrequency: 5,
670670
iterationNudgeThreshold: 15,
671671
nudgeForce: "soft",

tests/compress.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ function buildConfig(): PluginConfig {
4343
compress: {
4444
permission: "allow",
4545
showCompression: false,
46-
maxContextLimit: 100000,
47-
minContextLimit: 30000,
46+
maxContextLimit: 150000,
47+
minContextLimit: 50000,
4848
nudgeFrequency: 5,
4949
iterationNudgeThreshold: 15,
5050
nudgeForce: "soft",

0 commit comments

Comments
 (0)