audit_codebase
Scan a repository for AI agent distraction traps—closed-bug references, open-bug scope creep, and outdated TODOs—so you can remove dead ends before they derail work.
Instructions
Scans repository for Agent Distraction traps: closed-bug references (dead-ends), open-bug scope-creep risks, and ancient fossilized TODOs.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "audit_codebase"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Directory or file to scan (defaults to current directory). | . |
| fossil_days | No | Age in days to consider an untracked TODO a fossil (default: 365). | |
| github_repo | No | Optional GitHub repo in 'owner/repo' format for issue verification. | |
| mock_status_file | No | Optional path to JSON mapping bug IDs to statuses (for offline testing). |