One engineering team, one week of Claude Code: $2,495 at API list prices, $960 avoidable.
Failed tool calls: $68. Cache rebuilt after idle breaks: $532. History resent past 200k: $360.
The waste is in context, not tool calls. Scan your own sessions, in your browser: https://t.co/9z6uIGk7fK
@0xShoopy Neither, it turned out. The biggest slice was idle gaps: step away, the prompt cache expires, and the next turn pays to rebuild the whole context. That was $532. Long sessions re-sending history past 200k tokens came second at $360.
@0xSubarru Good design: the agent can't approve its own rules. I'd add a lane next to payments for anything that can carry or move credentials: .env files, CI workflows, deploy configs. A one-line workflow change can ship every repo secret somewhere else, and it looks boring in a diff.
@HoodieFade_ Good split. One catch worth measuring: every handoff starts a fresh context, so each Haiku search pays to read its instructions before it does any work. Big win for sprawling searches, smaller for one-line greps. Has anyone measured where the break-even is?
@skunzu One thing before plugging all seven in: scope the tokens you give them. A GitHub or Supabase MCP running on your admin token means the agent has admin too. Read-only tokens for anything that only needs to look, and keep them out of the repo's .env.
@charliermarsh Nice cut. The request side has the same shape: the tool catalog and full history ride along on every turn. In our own team's week of Claude Code, history re-sent past 200k tokens cost $360 by itself. Is trimming what goes up on the roadmap too?
@aiwithsally In real setups the tempting thing is often already inside the box. Our own team's week of Claude Code left 148 secret-shaped strings in local transcripts. "Rarely misused" is reassuring, but scoped, short-lived keys mean there's less to peek at.
@maybepratikk Next week, check where it went first. In our own team's week of Claude Code, 38% of the spend was avoidable, mostly cache rebuilt after breaks and long threads re-sending history. Fresh session per task and /compact before you walk away stretch it a lot.
@datadogdevs Task-level is the right cut. In our own team's week of Claude Code, 21% of the bill was the cache rebuilt after idle gaps, which per-token views hide. Does Agent Console split cache reads from cache writes per task?
@0xarcos Hooks are the right fix. Same pattern on cost: in our own team's week of Claude Code, everyone knew to /compact before a break, and idle cache rebuilds still came to $532. If a rule matters, a hook has to enforce it.
Spending the Claude reset or your API credits this weekend? In our own team's week of Claude Code, the waste wasn't the work:
Cache rebuilt after idle breaks: $532
History resent past 200k: $360
Failed tool calls: $68
/compact before a break. Fresh session per task.
@not_sacke Not long. The prompt cache lives minutes, not hours (5 min by default on the API), so a coffee break or a meeting is enough. The first turn after that re-sends the whole context at full input price, which adds up fast past 100k tokens.