From d7e205b2413df591d8a7c3ad71b1897d0de1c792 Mon Sep 17 00:00:00 2001 From: Daniel Smolsky Date: Tue, 9 Dec 2025 10:45:01 -0500 Subject: [PATCH] Add write and edit to protected tools --- README.md | 4 ++-- lib/config.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 69e34315..0ce747df 100644 --- a/README.md +++ b/README.md @@ -68,7 +68,7 @@ DCP uses its own config file (`~/.config/opencode/dcp.jsonc` or `.opencode/dcp.j | `strictModelSelection` | `false` | Only run AI analysis with session or configured model (disables fallback models) | | `pruning_summary` | `"detailed"` | `"off"`, `"minimal"`, or `"detailed"` | | `nudge_freq` | `10` | How often to remind AI to prune (lower = more frequent) | -| `protectedTools` | `["task", "todowrite", "todoread", "prune"]` | Tools that are never pruned | +| `protectedTools` | `["task", "todowrite", "todoread", "prune", "batch", "write", "edit"]` | Tools that are never pruned | | `strategies.onIdle` | `["ai-analysis"]` | Strategies for automatic pruning | | `strategies.onTool` | `["ai-analysis"]` | Strategies when AI calls `prune` | @@ -81,7 +81,7 @@ DCP uses its own config file (`~/.config/opencode/dcp.jsonc` or `.opencode/dcp.j "onIdle": ["ai-analysis"], "onTool": ["ai-analysis"] }, - "protectedTools": ["task", "todowrite", "todoread", "prune"] + "protectedTools": ["task", "todowrite", "todoread", "prune", "batch", "write", "edit"] } ``` diff --git a/lib/config.ts b/lib/config.ts index e1c87fbf..08a5ed51 100644 --- a/lib/config.ts +++ b/lib/config.ts @@ -31,7 +31,7 @@ export interface ConfigResult { const defaultConfig: PluginConfig = { enabled: true, debug: false, - protectedTools: ['task', 'todowrite', 'todoread', 'prune', 'batch'], + protectedTools: ['task', 'todowrite', 'todoread', 'prune', 'batch', 'write', 'edit'], showModelErrorToasts: true, showUpdateToasts: true, strictModelSelection: false,