Skip to content

Commit 852b6bd

Browse files
authored
Merge pull request #145 from Opencode-DCP/chore/reorder-config-properties
Reorder onIdle config properties for consistency
2 parents 477a20f + a1cc521 commit 852b6bd

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ DCP uses multiple strategies to reduce context size:
2727

2828
**Deduplication** — Identifies repeated tool calls (e.g., reading the same file multiple times) and keeps only the most recent output. Runs automatically on every request with zero LLM cost.
2929

30-
**On Idle Analysis** — Uses a language model to semantically analyze conversation context during idle periods and identify tool outputs that are no longer relevant.
31-
3230
**Prune Tool** — Exposes a `prune` tool that the AI can call to manually trigger pruning when it determines context cleanup is needed.
3331

32+
**On Idle Analysis** — Uses a language model to semantically analyze conversation context during idle periods and identify tool outputs that are no longer relevant.
33+
3434
*More strategies coming soon.*
3535

3636
Your session history is never modified. DCP replaces pruned outputs with a placeholder before sending requests to your LLM.
@@ -84,14 +84,14 @@ DCP uses its own config file:
8484
// (Legacy) Run an LLM to analyze what tool calls are no longer relevant on idle
8585
"onIdle": {
8686
"enabled": false,
87+
// Additional tools to protect from pruning
88+
"protectedTools": [],
8789
// Override model for analysis (format: "provider/model")
8890
// "model": "anthropic/claude-haiku-4-5",
8991
// Show toast notifications when model selection fails
9092
"showModelErrorToasts": true,
9193
// When true, fallback models are not permitted
92-
"strictModelSelection": false,
93-
// Additional tools to protect from pruning
94-
"protectedTools": []
94+
"strictModelSelection": false
9595
}
9696
}
9797
}

lib/config.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -234,9 +234,9 @@ const defaultConfig: PluginConfig = {
234234
},
235235
onIdle: {
236236
enabled: false,
237+
protectedTools: [...DEFAULT_PROTECTED_TOOLS],
237238
showModelErrorToasts: true,
238-
strictModelSelection: false,
239-
protectedTools: [...DEFAULT_PROTECTED_TOOLS]
239+
strictModelSelection: false
240240
}
241241
}
242242
}
@@ -336,14 +336,14 @@ function createDefaultConfig(): void {
336336
// (Legacy) Run an LLM to analyze what tool calls are no longer relevant on idle
337337
"onIdle": {
338338
"enabled": false,
339+
// Additional tools to protect from pruning
340+
"protectedTools": [],
339341
// Override model for analysis (format: "provider/model")
340342
// "model": "anthropic/claude-haiku-4-5",
341343
// Show toast notifications when model selection fails
342344
"showModelErrorToasts": true,
343345
// When true, fallback models are not permitted
344-
"strictModelSelection": false,
345-
// Additional tools to protect from pruning
346-
"protectedTools": []
346+
"strictModelSelection": false
347347
}
348348
}
349349
}

0 commit comments

Comments
 (0)