Audit your agent history for wasted tool calls and tokens
You want to see which paths in a repo cost your agents the most searching and backtracking.
- Posted by
- @JJEnglert
- Added
- Scope
- Agent workflows and retrospectives · runs in a repo
- 133likes
- 10replies
- 6shares
- 22.1Kviews
prompt
Look through my Claude Code chat history for this repo in ~/.claude/projects/. 1. Find the files and folders agents visit most often. 2. For each one, count how many tool calls it usually took to get there, and roughly how many tokens that used. 3. Flag the paths where the agent searched, opened the wrong files, or backtracked before finding the right spot. 4. Rank the 5 most wasteful paths by total tokens burned. 5. Suggest the smallest CLAUDE.md edits that would send an agent straight there. Pointers, not paragraphs. Don't change any files yet. Show me the report first.
verified·fix it on github
