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

Context is fully broken

Open bananaman9 opened this issue 1 year ago โ€ข 9 comments

Context hasnt been working for days, it had been playing up before that but the last 2 to 3 days it is a liability to use Claude, especially with anything technical or complex or has code. This is not context being used up then he is diminished, which is an ongoing problem, i mean after 1 context compression claude code should not be allowed to continue beyond that point, he is dangerous to the project, 100% everytime. But for the last 2 to 3 days he is context damaged from the onset of fresh sessions, the very first response he is broken, you ask him to diagnose something non functional he merrily comes back and tells you its robust and 100 perfect. These have been expensive weeks, you get a bit of the project to progress then spend twice as long repairing, if you can, the damage that claude has done, and you get trapped in a cycle of trying to get fresh sessions to get a fresh healthy claude to repair semi complex work, and the hole just gets deeper, and costlier, at our expense, its like Anthropic takes no care and consideration that they are charging us for broken services.But in the last 2 to 3 days, you start a new session thinking they must have either shut claude down, or fixed him, so you start new sessions, projects dont wait forever, and currently he has permanent ai dementia. And support is non existant. Its a terrible situation and very very badly managed by Anthropic. And how they have designed it so claude will continue on after context compressions and overflows is bordering on, or is, unethical.

bananaman9 avatar Aug 26 '25 14:08 bananaman9

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/5788
  2. https://github.com/anthropics/claude-code/issues/4011
  3. https://github.com/anthropics/claude-code/issues/5994

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and ๐Ÿ‘ the existing issue instead
  • To prevent auto-closure, add a comment or ๐Ÿ‘Ž this comment

๐Ÿค– Generated with Claude Code

github-actions[bot] avatar Aug 26 '25 14:08 github-actions[bot]

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

Thanks Dan, I use cli but I will look into your suggestions, thank you.

On Wed, 27 Aug 2025, 2:38โ€ฏam danhill2020, @.***> wrote:

danhill2020 left a comment (anthropics/claude-code#6601) https://github.com/anthropics/claude-code/issues/6601#issuecomment-3224935767

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:\legal_conflict_search_v3\CLAUDE.md): 2.2k tokens โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎโ”‚ > โ”‚โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ โตโต accept edits on (alt+m to cycle) โ—ฏ Context low (0% remaining) ยท Run /compact to compact & continue

โ€” Reply to this email directly, view it on GitHub https://github.com/anthropics/claude-code/issues/6601#issuecomment-3224935767, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIQBWOZZYCJEBVIV7KHQ7I33PSEQTAVCNFSM6AAAAACE3HGQXWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTEMRUHEZTKNZWG4 . You are receiving this because you authored the thread.Message ID: @.***>

bananaman9 avatar Aug 26 '25 17:08 bananaman9

Did this work for you?

mattschwen avatar Aug 26 '25 18:08 mattschwen

Possibly yes, but hard to tell, as the format of how Claude responds and the todo function have changed. So, yes, i refreshed instance, made sure to have 1 open, swapped models and went back but i also gave 24 hours, in the stupid expectation Anthropic might actually reply to a support ticket. But since the todo has altered format its hard to know if Dan's suggestions were responsible, or the changes in the backend that the format change suggest went on, were involved. Anyway, thanks Dan .

bananaman9 avatar Aug 28 '25 13:08 bananaman9

by the way, although some aspects are resolved there are still underlying ratinale and reasoning and logic issues, its like the claudes are still impaired, and definitely cant be trusted to do what you ask. its a bit of a nightmare really, and a costly one for me, or profitable for anthropic, depending on where you sit.

bananaman9 avatar Aug 29 '25 05:08 bananaman9

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 05 '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 05 '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 12 '26 14:01 github-actions[bot]