cleanup_agent_artifacts
Detect and clean up AI coding agent artifacts like TODO.md or PLAN.md with scan, clean, or archive operations and configurable patterns.
Instructions
Detect, classify, and clean up artifacts generated by AI coding agents (e.g., TODO.md, PLAN.md, agent markers, temporary files). Supports scan, clean, and archive operations with configurable patterns.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the project directory to scan | |
| operation | Yes | Operation: scan (detect only), clean (remove), or archive (move to .agent-archive/) | |
| dryRun | No | Show what would be changed without making changes | |
| interactive | No | Prompt for confirmation (not supported in MCP, treated as dryRun) | |
| autoDeleteThreshold | No | Confidence threshold for automatic deletion (0-1) | |
| includeGitIgnored | No | Include artifacts that are already in .gitignore | |
| customPatterns | No | Custom patterns to detect in addition to defaults |