[BUG] Severe Memory Leak (20GB+)
Resolved 💬 11 comments Opened Nov 25, 2025 by StuBedore Closed Feb 5, 2026
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?
cli using insane amount of memory
<img width="832" height="57" alt="Image" src="https://github.com/user-attachments/assets/1c278c0a-fde7-443c-bee9-6f7f00ee356b" />
Context Usage
Model: claude-opus-4-5-20251101
Tokens: 74.3k / 200.0k (37%)
Categories
Category Tokens Percentage
System prompt 3.0k 1.5%
System tools 13.5k 6.8%
Messages 12.8k 6.4%
Free space 125.7k 62.8%
Autocompact buffer 45.0k 22.5%
What Should Happen?
cli should not be using 20GB of RAM.
Error Messages/Logs
Steps to Reproduce
Don't know how to reproduce, it randomly happens - cant see any particular thing that causes
Claude Model
Opus
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.0.53
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
VS Code integrated terminal
Additional Information
_No response_
This issue has 11 comments on GitHub. Read the full discussion on GitHub ↗