-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Problem
DCP protects certain tools from pruning (protectedTools), but there's no way to protect file operations based on the file path. Important planning files like plan.md, ARCHITECTURE.md, TODO.md can get incorrectly pruned as "stale" even though they contain critical project context.
Proposed Solution
Add protectedFilePatterns config option:
Check tool parameters.filePath against these patterns before allowing pruning in deduplicator.ts and janitor.ts.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request
{ "protectedFilePatterns": [ "**/plan.md", "**/ARCHITECTURE.md", "**/TODO.md", "**/AGENTS.md" ] }