claude-code - 💡(How to fix) Fix [BUG] Context limit blocks ALL operations - even after /clear and system restart [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#46318Fetched 2026-04-11 06:23:27
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Author
Timeline (top)
labeled ×3commented ×1

Error Message

Claude Code is in a permanently broken state where the "Context limit reached" error blocks every single command, even basic ones like --version and /help. /clear and full system restarts do not resolve the issue. Actual error output:

            • The context limit error should only appear during an active conversation when the limit is genuinely reached, not persist across sessions/restarts

Error Messages/Logs

  1. Observe: "Context limit reached · /compact or /clear to continue" error appears
  2. Error persists: "Context limit reached · /compact or /clear to continue"
  3. Even gsd --version returns the same context limit error 2.x.x (Unable to determine exact version - claude --version blocked by context limit error)

Fix Action

Workaround

Currently unable to use Claude Code. Using alternatives:

  • Claude.ai web interface
  • Direct Anthropic API calls via curl

Code Example

❯ gsd
Skill(/gsd:help)
Successfully loaded skill · 1 tool allowed
Read .claude/get-shit-done/workflows/help.md (610 lines)
Context limit reached · /compact or /clear to continue

/clear
  (no content)

❯ gsd --version
Context limit reached · /compact or /clear to continue

---
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

Claude Code is in a permanently broken state where the "Context limit reached" error blocks every single command, even basic ones like --version and /help. /clear and full system restarts do not resolve the issue.

Once Claude Code hits the context limit, ALL operations become blocked — including file reads, file writes, bash commands, and any tool use. This persists even after:

  • Running /clear to clear the conversation context
    • Restarting Claude Code entirely
      • Starting a completely new session after full system restart Actual error output:
❯ gsd
⏺ Skill(/gsd:help)
⎿  Successfully loaded skill · 1 tool allowed
⎿  Read .claude/get-shit-done/workflows/help.md (610 lines)
⎿  Context limit reached · /compact or /clear to continue

❯ /clear
⎿  (no content)

❯ gsd --version
⎿  Context limit reached · /compact or /clear to continue

The system successfully loads skills and reads files, but then immediately blocks with "Context limit reached" before any user interaction is possible. Even --version and gsd startup itself show context limit errors.

Actual Behavior

❯ gsd ⏺ Skill(/gsd:help) ⎿ Successfully loaded skill · 1 tool allowed ⎿ Read .claude/get-shit-done/workflows/help.md (610 lines) ⎿ Context limit reached · /compact or /clear to continue ❯ /clear ⎿ (no content) ❯ gsd --version ⎿ Context limit reached · /compact or /clear to continue

The system successfully loads skills and reads files, but then immediately blocks with "Context limit reached" before any user interaction is possible.

Expected Behavior

  • gsd --version should display the version
  • /help should display help information
  • Basic commands should work, especially after /clear
  • Context limit should not block system-level operations

System Information

  • OS: Linux runsc 4.4.0 #1 SMP Sun Jan 10 15:06:54 PST 2016 x86_64 x86_64 x86_64 GNU/Linux
  • Node.js Version: v22.22.0
  • Claude Code Version: Unable to determine (npm list returns empty - Claude Code may not be in node_modules)
  • Steps Taken:
    • ✅ Full system restart
    • ✅ Ran /clear (multiple times)
    • ✅ Closed and reopened Claude Code terminal
    • ❌ Context limit persists

Related Issues

This appears related to:

  • #23047 - /compact fails with 'Conversation too long' at context limit
  • #20455 - Context limit reached prematurely
  • #19018 - Auto-compact stops at ~70% remaining context

Workaround

Currently unable to use Claude Code. Using alternatives:

  • Claude.ai web interface
  • Direct Anthropic API calls via curl

Additional Context

Even the skill loading mechanism fails - the system successfully loads skill files but then immediately blocks before the skill can be used. This suggests the issue is in Claude Code's core context management, not in session accumulation or user workflows.

What Should Happen?

  • gsd --version should display the version number
    • /help should display help information
      • Basic commands should work, especially after /clear
        • Context limit should NOT block system-level operations like --version
          • After /clear or a full system restart, Claude Code should start fresh with no context limit state carried over
            • The context limit error should only appear during an active conversation when the limit is genuinely reached, not persist across sessions/restarts

Error Messages/Logs

Steps to Reproduce

  1. Start Claude Code with gsd
  2. Wait for the initial skill load to complete
  3. Attempt any command (e.g., new project, /help, or type text)
  4. Observe: "Context limit reached · /compact or /clear to continue" error appears
  5. Run /clear to reset context
  6. Restart the entire computer
  7. Start Claude Code again with gsd
  8. Attempt any simple command like /help or type any text
  9. Error persists: "Context limit reached · /compact or /clear to continue"
  10. Even gsd --version returns the same context limit error

Expected behavior: Basic commands should work without context limit blocking, especially after /clear and system restart.

Actual behavior: Every command is blocked with "Context limit reached" even when the skill loading shows it successfully reads files (e.g., "Read .claude/get-shit-done/workflows/help.md (610 lines)").

Claude Model

Not sure / Multiple models

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

2.x.x (Unable to determine exact version - claude --version blocked by context limit error)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

No response

extent analysis

TL;DR

The issue can be temporarily worked around by using the Claude.ai web interface or direct Anthropic API calls via curl, but a permanent fix requires identifying and resolving the root cause of the context limit error in Claude Code.

Guidance

  • Investigate the context management mechanism in Claude Code to identify why the context limit is being reached immediately after skill loading, even after /clear and system restarts.
  • Review related issues (#23047, #20455, #19018) for potential clues on the context limit problem.
  • Attempt to determine the exact version of Claude Code being used, as the version number is currently unknown due to the context limit error blocking the --version command.
  • Consider testing with a different skill or workflow to see if the issue is specific to the gsd skill or a more general problem.

Example

No code snippet is provided as the issue is more related to the behavior of Claude Code rather than a specific code error.

Notes

The issue seems to be a regression, as it worked in a previous version, but the last working version is not specified. The problem persists across different attempts to clear the context or restart the system, indicating a deeper issue with how Claude Code manages its context.

Recommendation

Apply a workaround by using the Claude.ai web interface or direct Anthropic API calls via curl until the root cause of the context limit error can be identified and fixed. This is because the current state of Claude Code renders it unusable due to the persistent context limit error.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING