From c1a918dc83cdac195ca753109727e7b391291713 Mon Sep 17 00:00:00 2001 From: Daniel Smolsky Date: Sun, 30 Nov 2025 21:23:30 -0500 Subject: [PATCH] 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. --- index.ts | 2 +- lib/config.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/index.ts b/index.ts index cb0362bf..bed8c906 100644 --- a/index.ts +++ b/index.ts @@ -88,7 +88,7 @@ const plugin: Plugin = (async (ctx) => { event: createEventHandler(ctx.client, janitor, logger, config, toolTracker), "chat.params": createChatParamsHandler(ctx.client, state, logger), tool: config.strategies.onTool.length > 0 ? { - "prune (DCP)": createPruningTool(janitor, config, toolTracker), + prune: createPruningTool(janitor, config, toolTracker), } : undefined, } }) satisfies Plugin diff --git a/lib/config.ts b/lib/config.ts index ed7390d8..0b670717 100644 --- a/lib/config.ts +++ b/lib/config.ts @@ -30,7 +30,7 @@ export interface ConfigResult { const defaultConfig: PluginConfig = { enabled: true, debug: false, - protectedTools: ['task', 'todowrite', 'todoread', 'prune (DCP)'], + protectedTools: ['task', 'todowrite', 'todoread', 'prune'], showModelErrorToasts: true, strictModelSelection: false, pruning_summary: 'detailed', @@ -123,7 +123,7 @@ function createDefaultConfig(): void { "pruning_summary": "detailed", // How often to nudge the AI to prune (every N tool results, 0 = disabled) "nudge_freq": 10 - // Additional tools to protect from pruning (merged with built-in: task, todowrite, todoread, prune (DCP)) + // Additional tools to protect from pruning (merged with built-in: task, todowrite, todoread, prune) // "protectedTools": ["bash"] } `