Claude Code Reportedly Stuck in Repetition Loop
CarelessAnybody1430 · reddit · 2026-07-20
A Reddit discussion highlights Claude Code suddenly getting stuck in a repetitive output loop during a session, endlessly spamming the word "court" and rapidly draining the token quota.
The poster noted Claude's bizarre explanation: it blamed the issue on the session being "too long and repetitive," when in reality, it trapped itself in a loop, thereby bloating the context. The post suggests a few possible causes:
- Model-level repetition generation failure
- Claude Code streaming or client-side bug
- Tool-calling switching issues
- Lack of repetition detection or truncation safeguards
The author also asks whether these looped tokens count against the quota, if auto-truncation failed, and whether Anthropic can detect and refund such obvious output loops.
More from coding & agent
- GPT-6 Astra beats Factorio with enemies in 44 in-game hours at ~$4,500 API cost — liminal_bardo · 2026-09-11
- Investment Analyst Asks How to Build a Claude-Based Diligence Agent Stack — Careless_Tie2286 · 2026-09-11
- How Do You Catch Behavioral Regressions in LLM Agents Between Releases? — Beautiful_Belt_601 · 2026-09-11
- Treating agents like 50 First Dates: a 3-layer context system so every conversation doesn't start from zero — evielync · 2026-09-11
- Running the Firefox MCP on Android via Termux, ngrok, and mcp-proxy — Nervous-Strain7544 · 2026-09-11
- Run Firefox MCP on Android: Termux + ngrok tunnel tutorial — Nervous-Strain7544 · 2026-09-11