Skip to content
Merged
Show file tree
Hide file tree
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
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,17 @@ DCP uses its own config file (`~/.config/opencode/dcp.jsonc` or `.opencode/dcp.j
"pruneThinkingBlocks": {
"enabled": false
},
// Exposes a prune tool to your LLM to call when it determines pruning is necessary
"pruneTool": {
"enabled": true,
// Additional tools to protect from pruning
"protectedTools": [],
// Nudge the LLM to use the prune tool (every <frequency> tool results)
"nudge": {
"enabled": true,
"frequency": 10
}
},
// (Legacy) Run an LLM to analyze what tool calls are no longer relevant on idle
"onIdle": {
"enabled": false,
Expand All @@ -81,17 +92,6 @@ DCP uses its own config file (`~/.config/opencode/dcp.jsonc` or `.opencode/dcp.j
"strictModelSelection": false,
// Additional tools to protect from pruning
"protectedTools": []
},
// Exposes a prune tool to your LLM to call when it determines pruning is necessary
"pruneTool": {
"enabled": false,
// Additional tools to protect from pruning
"protectedTools": [],
// Nudge the LLM to use the prune tool (every <frequency> tool results)
"nudge": {
"enabled": true,
"frequency": 10
}
}
}
}
Expand Down
36 changes: 18 additions & 18 deletions lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,19 +240,19 @@ const defaultConfig: PluginConfig = {
pruneThinkingBlocks: {
enabled: false
},
onIdle: {
enabled: false,
showModelErrorToasts: true,
strictModelSelection: false,
protectedTools: [...DEFAULT_PROTECTED_TOOLS]
},
pruneTool: {
enabled: false,
enabled: true,
protectedTools: [...DEFAULT_PROTECTED_TOOLS],
nudge: {
enabled: true,
frequency: 10
}
},
onIdle: {
enabled: false,
showModelErrorToasts: true,
strictModelSelection: false,
protectedTools: [...DEFAULT_PROTECTED_TOOLS]
}
}
}
Expand Down Expand Up @@ -326,6 +326,17 @@ function createDefaultConfig(): void {
"pruneThinkingBlocks": {
"enabled": false
},
// Exposes a prune tool to your LLM to call when it determines pruning is necessary
"pruneTool": {
"enabled": true,
// Additional tools to protect from pruning
"protectedTools": [],
// Nudge the LLM to use the prune tool (every <frequency> tool results)
"nudge": {
"enabled": true,
"frequency": 10
}
},
// (Legacy) Run an LLM to analyze what tool calls are no longer relevant on idle
"onIdle": {
"enabled": false,
Expand All @@ -337,17 +348,6 @@ function createDefaultConfig(): void {
"strictModelSelection": false,
// Additional tools to protect from pruning
"protectedTools": []
},
// Exposes a prune tool to your LLM to call when it determines pruning is necessary
"pruneTool": {
"enabled": false,
// Additional tools to protect from pruning
"protectedTools": [],
// Nudge the LLM to use the prune tool (every <frequency> tool results)
"nudge": {
"enabled": true,
"frequency": 10
}
}
}
}
Expand Down