Skip to content

Commit e9c3a08

Browse files
authored
Merge pull request #69 from Tarquinen/docs/primary-tools-config
Use primary_tools to restrict prune to main agent
2 parents b6b6fcc + e116924 commit e9c3a08

File tree

1 file changed

+6
-15
lines changed

1 file changed

+6
-15
lines changed

README.md

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,15 @@ Add to your OpenCode config:
1313
```jsonc
1414
// opencode.jsonc
1515
{
16-
"plugin": ["@tarquinen/[email protected]"]
16+
"plugin": ["@tarquinen/[email protected]"],
17+
"experimental": {
18+
"primary_tools": ["prune"]
19+
}
1720
}
1821
```
1922

23+
The `experimental.primary_tools` setting ensures the `prune` tool is only available to the primary agent (not subagents).
24+
2025
When a new version is available, DCP will show a toast notification. Update by changing the version number in your config.
2126

2227
Restart OpenCode. The plugin will automatically start optimizing your sessions.
@@ -84,20 +89,6 @@ Settings are merged in order: **Defaults** → **Global** (`~/.config/opencode/d
8489

8590
Restart OpenCode after making config changes.
8691

87-
## Subagents
88-
89-
DCP automatically skips processing for subagent sessions (`general`, `explore`, etc.), but subagents can still invoke the `prune` tool. To prevent this, disable the tool in your OpenCode config. Any custom agents you've defined should also have prune disabled:
90-
91-
```jsonc
92-
// opencode.jsonc
93-
{
94-
"agent": {
95-
"general": { "tools": { "prune": false } },
96-
"explore": { "tools": { "prune": false } }
97-
}
98-
}
99-
```
100-
10192
## License
10293

10394
MIT

0 commit comments

Comments
 (0)