Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 6 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,15 @@ Add to your OpenCode config:
```jsonc
// opencode.jsonc
{
"plugin": ["@tarquinen/[email protected]"]
"plugin": ["@tarquinen/[email protected]"],
"experimental": {
"primary_tools": ["prune"]
}
}
```

The `experimental.primary_tools` setting ensures the `prune` tool is only available to the primary agent (not subagents).

When a new version is available, DCP will show a toast notification. Update by changing the version number in your config.

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

Restart OpenCode after making config changes.

## Subagents

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:

```jsonc
// opencode.jsonc
{
"agent": {
"general": { "tools": { "prune": false } },
"explore": { "tools": { "prune": false } }
}
}
```

## License

MIT