[BUG] Agent Tool Used Unnecessarily
Resolved 💬 3 comments Opened Apr 6, 2026 by codingncaffeine Closed Apr 10, 2026
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
Th agent tool was used unnecessarily for a simple multi-file warning cleanup that could have been
done inline, resulting in ~87k tokens of unnecessary usage.
What Should Happen?
Claude should clean up it's code as it goes resulting in only using tokens to apply the code not to clean up it's own mess.
Error Messages/Logs
Steps to Reproduce
Just keep coding, unused code goes un-noticed and left behind for cleanup later.
Claude Model
Sonnet (default)
Is this a regression?
I don't know
Last Working Version
2.1.84
Claude Code Version
Model: sonnet (claude-sonnet-4-6)
Platform
Other
Operating System
Windows
Terminal/Shell
PowerShell
Additional Information
There has been a ton of wasted tokens on various things that when a user calls it out there should be a memory written about that. You could literally be using AI to correct that usage on the fly in an automated manner.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗