[BUG] There is a huge memory leak in claude code
Resolved 💬 5 comments Opened Apr 14, 2026 by hadi-makki Closed May 25, 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?
I just open claude code without doing anything, it just keeps eating the ram, one session reached 13gb ram and its doing nothing
What Should Happen?
on idle state it should be under 1gb
Error Messages/Logs
Steps to Reproduce
1- just run claude code
Claude Model
None
Is this a regression?
No, this never worked
Last Working Version
_No response_
Claude Code Version
2.1.107 (Claude Code)
Platform
Anthropic API
Operating System
Ubuntu/Debian Linux
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗