Skip to content

Commit c1a918d

Browse files
committed
refactor: simplify pruning tool name from 'prune (DCP)' to 'prune'
The shorter name is cleaner and easier to type while still being descriptive. Updates tool registration, default protected tools list, and config template comment.
1 parent 986a6d8 commit c1a918d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ const plugin: Plugin = (async (ctx) => {
8888
event: createEventHandler(ctx.client, janitor, logger, config, toolTracker),
8989
"chat.params": createChatParamsHandler(ctx.client, state, logger),
9090
tool: config.strategies.onTool.length > 0 ? {
91-
"prune (DCP)": createPruningTool(janitor, config, toolTracker),
91+
prune: createPruningTool(janitor, config, toolTracker),
9292
} : undefined,
9393
}
9494
}) satisfies Plugin

lib/config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export interface ConfigResult {
3030
const defaultConfig: PluginConfig = {
3131
enabled: true,
3232
debug: false,
33-
protectedTools: ['task', 'todowrite', 'todoread', 'prune (DCP)'],
33+
protectedTools: ['task', 'todowrite', 'todoread', 'prune'],
3434
showModelErrorToasts: true,
3535
strictModelSelection: false,
3636
pruning_summary: 'detailed',
@@ -123,7 +123,7 @@ function createDefaultConfig(): void {
123123
"pruning_summary": "detailed",
124124
// How often to nudge the AI to prune (every N tool results, 0 = disabled)
125125
"nudge_freq": 10
126-
// Additional tools to protect from pruning (merged with built-in: task, todowrite, todoread, prune (DCP))
126+
// Additional tools to protect from pruning (merged with built-in: task, todowrite, todoread, prune)
127127
// "protectedTools": ["bash"]
128128
}
129129
`

0 commit comments

Comments
 (0)