From bcb42f1b71c08503d59f9e00da1ecca7890f452f Mon Sep 17 00:00:00 2001 From: Daniel Smolsky Date: Thu, 22 Jan 2026 23:09:39 -0500 Subject: [PATCH 1/2] feat: default to empty protectedTools for deduplication and purgeErrors strategies Deduplication and purge-errors are hygiene strategies that are always beneficial for context management - they don't lose information, they just clean up redundancy and stale error inputs. By defaulting protectedTools to empty arrays, these strategies now run on all tools out of the box. Users can still configure protectedTools if they want to protect specific tools from these strategies. --- lib/config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/config.ts b/lib/config.ts index beabaa3f..f24e9680 100644 --- a/lib/config.ts +++ b/lib/config.ts @@ -450,7 +450,7 @@ const defaultConfig: PluginConfig = { strategies: { deduplication: { enabled: true, - protectedTools: [...DEFAULT_PROTECTED_TOOLS], + protectedTools: [], }, supersedeWrites: { enabled: false, @@ -458,7 +458,7 @@ const defaultConfig: PluginConfig = { purgeErrors: { enabled: true, turns: 4, - protectedTools: [...DEFAULT_PROTECTED_TOOLS], + protectedTools: [], }, }, } From cf779a745b56857e49e5d890b1436269577b9525 Mon Sep 17 00:00:00 2001 From: Daniel Smolsky Date: Thu, 22 Jan 2026 23:09:52 -0500 Subject: [PATCH 2/2] chore: remove redundant JSDoc comments --- lib/ui/utils.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/ui/utils.ts b/lib/ui/utils.ts index b1e00ed9..9134a5cf 100644 --- a/lib/ui/utils.ts +++ b/lib/ui/utils.ts @@ -60,9 +60,6 @@ function shortenSinglePath(path: string, workingDirectory?: string): string { return path } -/** - * Formats a list of pruned items in the style: "→ tool: parameter" - */ export function formatPrunedItemsList( pruneToolIds: string[], toolMetadata: Map, @@ -95,9 +92,6 @@ export function formatPrunedItemsList( return lines } -/** - * Formats a PruningResult into a human-readable string for the prune tool output. - */ export function formatPruningResultForTool( prunedIds: string[], toolMetadata: Map,