[FEATURE] Allow disabling of automatic context compression
Preflight Checklist
- [x] I have searched existing requests and this feature hasn't been requested yet
- [x] This is a single feature request (not multiple features)
Problem Statement
Somewhere between versions 2.0.0 and 2.0.15, Claude Code started eagerly compressing context long before the limit was reached. This is great for retaining memory, but unnecessarily burns through usage when a user know their context will terminate soon. I suspect this is the reason for may users complaining about Opus limits being reached early (e.g. #9358)
Proposed Solution
Add a toggle to disable auto-context-compression.
Alternative Solutions
_No response_
Priority
Critical - Blocking my work
Feature Category
CLI commands and flags
Use Case Example
Ask Claude Code to review code that uses about 75% of context.
Claude Code compresses the context and charges me usage for that compression.
Now I'm out of Opus quota and cannot get my code reviewed.
(Please don't dismiss me with "use Sonnet 4.5", this is mathematical code and Opus is far better at reviewing it than Sonnet.)
Additional Context
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗