Claude Code Hidden Retry Wastes 64k Tokens
HighDefinist · reddit · 2026-07-19
The author analyzed the underlying logs of a Claude Code coding task for Fable 5 and discovered a highly wasteful hidden retry:
- The first request took about 25.8k input tokens and generated a full 64k output tokens consisting entirely of reasoning, with no text output, tool calls, or file changes, ultimately triggering maxtokens.
- Claude Code automatically retried the same task, but the previous 64k reasoning tokens weren't essentially inherited; the second attempt was almost like planning from scratch.
- The second attempt generated another 63,567 output tokens, only issuing the first file-writing tool call near the very end.
- The standard UI automatically hides/recovers from this failure, so the author wouldn't have known about the wasted 19 minutes and 64k output tokens without checking the logs.
- This complete task cumulatively used about 1.97M input tokens, 184.6k output tokens, and 49 minutes of active execution time, with about 35% of the output tokens coming from the first failed attempt.
The author concludes by asking how common this is and if others have experienced similar issues.
More from coding & agent
- Cheaper OpenAI Agents API alternative: sandbox service undercutting E2B by 46% — airesearch12 · 2026-09-11
- His agent kill switch ran for months before he found it was wired to nothing — AnvilandCode · 2026-09-11
- Kernel's Browser Agents Can Now Pay Online Using Aliases, Never Touching Card Data — jeff_weinstein · 2026-09-11
- OpenAI opens up agent sandboxes: BYO or pick from Cloudflare, E2B, Modal, Vercel and more — threepointone · 2026-09-11
- SocialCrawl MCP lets agents search Reddit, YouTube, TikTok, X with one API key — dooddyman · 2026-09-11
- Astra builds a surprisingly polished Catan game in three.js, reusing past UI and 3D assets — FinanceYF5 · 2026-09-11