Skip to content

Commit d1ef393

Browse files
committed
docs: add subagents section with recommendation to disable prune tool
1 parent aa24dc9 commit d1ef393

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,20 @@ Settings are merged in order: **Defaults** → **Global** (`~/.config/opencode/d
8383

8484
Restart OpenCode after making config changes.
8585

86+
## Subagents
87+
88+
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:
89+
90+
```jsonc
91+
// opencode.jsonc
92+
{
93+
"agent": {
94+
"general": { "tools": { "prune": false } },
95+
"explore": { "tools": { "prune": false } }
96+
}
97+
}
98+
```
99+
86100
## License
87101

88102
MIT

0 commit comments

Comments
 (0)