[BUG] /clear command leaves 45k token 'autocompact buffer' in context (22.5% usage)
Resolved 💬 2 comments Opened Nov 2, 2025 by Osezno-byte Closed Nov 2, 2025
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?
After running /clear to clear conversation history, the /context command shows that an "autocompact buffer" containing 45k tokens (22.5% of the 200k budget) persists in memory.
This appears to be compacted conversation history that should have been cleared.
What Should Happen?
After /clear, context usage should only include:
- System prompt
- System tools
- Memory files (CLAUDE.md)
- Current message
Total should be ~18-20k tokens maximum.
Error Messages/Logs
Steps to Reproduce
- Start a fresh Claude Code session
- Run
/clearto clear conversation history - Run
/contextto check context usage
Claude Model
Sonnet (default)
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.0.31 (Claude Code)
Platform
Anthropic API
Operating System
Ubuntu/Debian Linux
Terminal/Shell
Xterm
Additional Information
_No response_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗