From 583d3431564a08da84c3cab297676ad9414ae82b Mon Sep 17 00:00:00 2001 From: Daniel Smolsky Date: Sat, 13 Dec 2025 18:21:25 -0500 Subject: [PATCH] enable pruneTool by default and reorder above onIdle --- README.md | 22 +++++++++++----------- lib/config.ts | 36 ++++++++++++++++++------------------ 2 files changed, 29 insertions(+), 29 deletions(-) diff --git a/README.md b/README.md index 965f5f29..a39d818d 100644 --- a/README.md +++ b/README.md @@ -70,6 +70,17 @@ DCP uses its own config file (`~/.config/opencode/dcp.jsonc` or `.opencode/dcp.j "pruneThinkingBlocks": { "enabled": false }, + // Exposes a prune tool to your LLM to call when it determines pruning is necessary + "pruneTool": { + "enabled": true, + // Additional tools to protect from pruning + "protectedTools": [], + // Nudge the LLM to use the prune tool (every tool results) + "nudge": { + "enabled": true, + "frequency": 10 + } + }, // (Legacy) Run an LLM to analyze what tool calls are no longer relevant on idle "onIdle": { "enabled": false, @@ -81,17 +92,6 @@ DCP uses its own config file (`~/.config/opencode/dcp.jsonc` or `.opencode/dcp.j "strictModelSelection": false, // Additional tools to protect from pruning "protectedTools": [] - }, - // Exposes a prune tool to your LLM to call when it determines pruning is necessary - "pruneTool": { - "enabled": false, - // Additional tools to protect from pruning - "protectedTools": [], - // Nudge the LLM to use the prune tool (every tool results) - "nudge": { - "enabled": true, - "frequency": 10 - } } } } diff --git a/lib/config.ts b/lib/config.ts index 3dfdba21..83be6c9e 100644 --- a/lib/config.ts +++ b/lib/config.ts @@ -240,19 +240,19 @@ const defaultConfig: PluginConfig = { pruneThinkingBlocks: { enabled: false }, - onIdle: { - enabled: false, - showModelErrorToasts: true, - strictModelSelection: false, - protectedTools: [...DEFAULT_PROTECTED_TOOLS] - }, pruneTool: { - enabled: false, + enabled: true, protectedTools: [...DEFAULT_PROTECTED_TOOLS], nudge: { enabled: true, frequency: 10 } + }, + onIdle: { + enabled: false, + showModelErrorToasts: true, + strictModelSelection: false, + protectedTools: [...DEFAULT_PROTECTED_TOOLS] } } } @@ -326,6 +326,17 @@ function createDefaultConfig(): void { "pruneThinkingBlocks": { "enabled": false }, + // Exposes a prune tool to your LLM to call when it determines pruning is necessary + "pruneTool": { + "enabled": true, + // Additional tools to protect from pruning + "protectedTools": [], + // Nudge the LLM to use the prune tool (every tool results) + "nudge": { + "enabled": true, + "frequency": 10 + } + }, // (Legacy) Run an LLM to analyze what tool calls are no longer relevant on idle "onIdle": { "enabled": false, @@ -337,17 +348,6 @@ function createDefaultConfig(): void { "strictModelSelection": false, // Additional tools to protect from pruning "protectedTools": [] - }, - // Exposes a prune tool to your LLM to call when it determines pruning is necessary - "pruneTool": { - "enabled": false, - // Additional tools to protect from pruning - "protectedTools": [], - // Nudge the LLM to use the prune tool (every tool results) - "nudge": { - "enabled": true, - "frequency": 10 - } } } }