Claude Code Memory Leak Fix for Linux Homelabs

Memory Leak Details
A developer running a Proxmox homelab with 64 cores and 503GB RAM experienced repeated crashes when using Claude Code to manage VMs, GitLab, DNS, and other services. Despite upgrading to 500GB RAM, Claude Code consumed 400GB and crashed the entire system.
Memory dump analysis revealed:
- 1.15 billion identical 160-byte objects in heap
- Objects never freed (free=0)
- Growth rate of ~32,000 objects per second during active use
- Idle usage is normal
Technical Findings
The investigation uncovered:
- Claude Code is built on Bun runtime
- Uses two allocators: mimalloc + glibc malloc
- Leak is in glibc malloc side
- JavaScript-level fixes don't work due to allocator layer
- This has been an open issue for months with dozens of GitHub reports
Two-Tier Fix Solution
The developer created a Linux-only solution:
Tier 1 (10GB threshold): LD_PRELOAD shim that intercepts malloc(160) calls and caps growth. Zero overhead until threshold is reached.
Tier 2 (20GB threshold): Watchdog that restarts the session if Tier 1 isn't sufficient, acting as a safety net.
The fix is available at github.com/dalsoop/claude-code-memory-leak-fix.
📖 Read the full source: r/ClaudeAI
👀 See Also

Bridge Claude Code to Chat Apps for Remote Interaction
A GitHub project called cc-connect bridges Claude Code to messaging platforms like Slack and Telegram, allowing remote interaction without exposing your local machine. The agent runs locally while a small bridge relays messages between the agent and chat apps.

Lumyr: Dashboard Generation via Claude with Python and Streamlit Automation
Lumyr is a tool that generates live, shareable dashboards from plain English descriptions using Claude for dashboard generation and automating the Python and Streamlit layer. Users don't need to write Python, open Streamlit, deploy, set up hosting, or manage infrastructure.

Signet: Open-Source Memory Layer for AI Coding Agents Hits 80% F1 on LoCoMo
Signet is an open-source memory system for AI coding agents that achieves 80% F1 on the LoCoMo benchmark, compared to 41% for standard RAG. It extracts memories after each session and injects relevant context before prompts, running locally with SQLite.

Ouroboros 0.26.0-beta Combines Claude and Codex via MCP Server
Ouroboros 0.26.0-beta introduces a harness that runs Claude and Codex simultaneously, assigning Claude to clarify user intent and Codex to execute well-defined tasks via an MCP server architecture.