claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[BUG] inefficient tool use burns tokens

Open u011 opened this issue 1 month ago • 2 comments

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

u011 avatar Dec 21 '25 17:12 u011