Skip to content

Commit 0623ce8

Browse files
committed
Update default config to protect edit/write tools
1 parent 8894796 commit 0623ce8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

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

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

lib/config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ 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', 'edit', 'write'],
3535
showModelErrorToasts: true,
3636
showUpdateToasts: true,
3737
strictModelSelection: false,
3838
pruning_summary: 'detailed',
39-
nudge_freq: 0,
39+
nudge_freq: 10,
4040
strategies: {
4141
onIdle: ['ai-analysis'],
4242
onTool: ['ai-analysis']

0 commit comments

Comments
 (0)