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

[Bug] Excessive Compaction Cycles Impacting Task Completion

Open Boatschool opened this issue 1 year ago • 4 comments

Bug Description the constant compacting for every task makes Claude Code unusable. I've decided to move to another service so I can get actual documentation task results in 3-4 compact cycles. There's no question you are throttling the service. It's a shame because I was willing to pay more to have a better service but I'm already on the max plan and don't have any other option but to move to Gemini CLI or Codex CLI where we don't get the constant compact cycles.

I have work that needs to be done and you are making it impossible to do that work.

I hope you figure this out - I'm disappointed I need to leave Claude Code but it's become virtually worthless

Environment Info

  • Platform: darwin
  • Terminal: cursor
  • Version: 1.0.92
  • Feedback ID: 23437335-6183-453e-839a-43ed60db229f

Errors

[]

Boatschool avatar Aug 26 '25 14:08 Boatschool

I had a similar issue in vscode with context seemingly vanishing. I fixed it by changing the model, send a random message and then switch back to the model you had issues with. The issue seemed to start when i have multiple claude code open in same vs code instance:

Here is what i saw : ⎿ API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"input length and max_tokens exceed context limit: 197651 + 21333 > 200000, decrease input length or max_tokens and try again"},"request_id":"req_011CSWdCgJVzAYnK8Ae68Has"}

/context ⎿ ⛁ ⛀ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛀ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ Context Usage ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ ⛁ claude-opus-4-1-20250805 • 61k/200k tokens (31%) ⛁ ⛁ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛁ System prompt: 3.1k tokens (1.5%) ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛁ System tools: 11.6k tokens (5.8%) ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛁ MCP tools: 927 tokens (0.5%) ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛁ Memory files: 2.2k tokens (1.1%) ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛁ Messages: 43.5k tokens (21.7%) ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ ⛶ Free space: 138.8k (69.4%) MCP tools · /mcp └ mcp__ide__getDiagnostics (ide): 428 tokens └ mcp__ide__executeCode (ide): 499 tokens Memory files · /memory └ Project (D:\v3\CLAUDE.md): 2.2k tokens ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮│ > │╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ⏵⏵ accept edits on (alt+m to cycle) ◯ Context low (0% remaining) · Run /compact to compact & continue

danhill2020 avatar Aug 26 '25 16:08 danhill2020

This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.

github-actions[bot] avatar Dec 04 '25 10:12 github-actions[bot]

This issue has been automatically closed due to 60 days of inactivity. If you're still experiencing this issue, please open a new issue with updated information.

github-actions[bot] avatar Jan 04 '26 10:01 github-actions[bot]

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.

github-actions[bot] avatar Jan 11 '26 14:01 github-actions[bot]