Skip to content

Commit c22ccd0

Browse files
authored
Merge pull request #103 from Tarquinen/chore/protect-write-edit-tools
Add write and edit to protected tools
2 parents f276388 + d7e205b commit c22ccd0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ DCP uses its own config file (`~/.config/opencode/dcp.jsonc` or `.opencode/dcp.j
6868
| `strictModelSelection` | `false` | Only run AI analysis with session or configured model (disables fallback models) |
6969
| `pruning_summary` | `"detailed"` | `"off"`, `"minimal"`, or `"detailed"` |
7070
| `nudge_freq` | `10` | How often to remind AI to prune (lower = more frequent) |
71-
| `protectedTools` | `["task", "todowrite", "todoread", "prune"]` | Tools that are never pruned |
71+
| `protectedTools` | `["task", "todowrite", "todoread", "prune", "batch", "write", "edit"]` | Tools that are never pruned |
7272
| `strategies.onIdle` | `["ai-analysis"]` | Strategies for automatic pruning |
7373
| `strategies.onTool` | `["ai-analysis"]` | Strategies when AI calls `prune` |
7474

@@ -81,7 +81,7 @@ DCP uses its own config file (`~/.config/opencode/dcp.jsonc` or `.opencode/dcp.j
8181
"onIdle": ["ai-analysis"],
8282
"onTool": ["ai-analysis"]
8383
},
84-
"protectedTools": ["task", "todowrite", "todoread", "prune"]
84+
"protectedTools": ["task", "todowrite", "todoread", "prune", "batch", "write", "edit"]
8585
}
8686
```
8787

lib/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export interface ConfigResult {
3131
const defaultConfig: PluginConfig = {
3232
enabled: true,
3333
debug: false,
34-
protectedTools: ['task', 'todowrite', 'todoread', 'prune', 'batch'],
34+
protectedTools: ['task', 'todowrite', 'todoread', 'prune', 'batch', 'write', 'edit'],
3535
showModelErrorToasts: true,
3636
showUpdateToasts: true,
3737
strictModelSelection: false,

0 commit comments

Comments
 (0)