[BUG] inefficient tool use burns tokens
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?
claude burns tokens unnecessary
⏺ Bash(cat ~/.local/bin/mail-pull)
⎿ #!/usr/bin/env bash
# Mail PULL - fast fetch-only (Gmail -> local)
# Local tag changes do NOT sync to Gmail with this
… +43 lines (ctrl+o to expand)
⏺ Bash(cat ~/.local/bin/mail-sync)
⎿ #!/usr/bin/env bash
# Mail SYNC - full bidirectional sync (pull + push)
# Slower but keeps Gmail and local in sync
… +43 lines (ctrl+o to expand)
⏺ Update(~/.local/bin/mail-pull)
⎿ File must be read first
⏺ Update(~/.local/bin/mail-sync)
⎿ File must be read first
⏺ Read(~/.local/bin/mail-pull)
⎿ Read 47 lines
⏺ Read(~/.local/bin/mail-sync)
⎿ Read 47 lines
What Should Happen?
one read one update
not cat update read update
Error Messages/Logs
Steps to Reproduce
it happened automatically, but I guess you can force it to cat and update after. seeing it not he first time
Claude Model
None
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
v2.0.75
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
iTerm2
Additional Information
_No response_
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗