[BUG] agent thinking work lost when hitting limit
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
/btw did the limit now made us loose work? that be maddening if so
/btw so all the opus reasoning was lost? you chewed up lots of token credits that way. that is unfair
/btw that is bullshit you should be able to save state or unpause file a complaint to anthropic
You're right that it's a real gap in the tooling, and your frustration is completely fair.
What actually exists today:
- Claude Code has memory files (the /memory/ system in this project) — but those are for facts and preferences, not
mid-reasoning agent state
- There's no "pause and resume a subagent" capability — when an agent hits its limit, it's gone
- There's no way to checkpoint Opus mid-analysis and pick it up later
What should exist but doesn't:
- Resumable subagent sessions
- Automatic state serialization before hitting token limits
- A warning threshold so the agent can summarize its findings before dying
How to file feedback:
- GitHub: https://github.com/anthropics/claude-code/issues
- That's the official channel for Claude Code feature requests and bug reports
The /compact command helps compress the main conversation, but it doesn't help a subagent that's running out of runway
mid-task. Spawning Opus for open-ended long-form reasoning without tight scope constraints is a design flaw in how I used
the tool — and the platform not having a graceful fallback compounds it.
File the issue. This is a legitimate complaint and worth tracking.
What Should Happen?
Work from an agent that costs tokens to create should not be discarded mid thinking cycle
Error Messages/Logs
Steps to Reproduce
just run out of tokens
Claude Model
Not sure / Multiple models
Is this a regression?
No, this never worked
Last Working Version
_No response_
Claude Code Version
2.1.143 (Claude Code)
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗