Open-source persistent memory system for Claude Code solves context loss between sessions

✍️ OpenClawRadar📅 Published: April 15, 2026🔗 Source
Open-source persistent memory system for Claude Code solves context loss between sessions
Ad

A developer has created a persistent memory system for Claude Code that addresses the common problem of losing context between conversations. The system runs alongside Claude Code without requiring plugins or API keys.

How it works

The system operates through three main components:

  • During conversations, Claude writes one-line notes to memory/inbox.md to capture important decisions, credentials, and lessons learned
  • A nightly cron job extracts conversation transcripts (saved as JSONL files at ~/.claude/projects/) and combines them with inbox entries into a daily log
  • At the start of each new conversation, Claude reads the last 2 days of logs via CLAUDE.md rules

Setup process

Setup requires minimal steps:

git clone https://github.com/Sunnyztj/claude-code-memory.git
cd claude-code-memory
./setup.sh ~/projects/memory
# Add the memory rules to your CLAUDE.md
# Set up a nightly cron job
Ad

What gets remembered automatically

  • Architecture decisions (e.g., "switched from MongoDB to PostgreSQL")
  • Deployment details (e.g., "VPS IP changed, new Nginx config")
  • Lessons learned (e.g., "Docker COPY defaults to root:600, chmod needed")
  • Account info, API keys, project milestones

Key design decisions

  • File-based approach (not a database) — allows Claude to read/write directly, is git-friendly, and works offline
  • Inbox pattern — one line per entry with zero friction for capture
  • Incremental JSONL extraction — tracks byte offsets and never re-processes old conversations
  • Cron-based (not in-process) — works with vanilla Claude Code without plugins

The system works with any Claude Code setup and includes optional cron job templates for users of ClaudeClaw (daemon mode). The developer reports using it daily in production workflow with significant improvements in context retention.

📖 Read the full source: r/ClaudeAI

Ad

👀 See Also

civStation: Open-Source VLM Harness for Natural Language Control of Civilization VI
Tools

civStation: Open-Source VLM Harness for Natural Language Control of Civilization VI

civStation is an open-source computer-use stack that enables voice and natural language control of Civilization VI, translating high-level strategy commands into UI actions through a VLM-based observation and execution loop.

OpenClawRadar
ETL-D MCP Server: Deterministic CSV Parsing for Claude to Prevent Financial Hallucinations
Tools

ETL-D MCP Server: Deterministic CSV Parsing for Claude to Prevent Financial Hallucinations

A developer built ETL-D, an open-source MCP server for Claude Desktop that processes CSVs in three deterministic layers to prevent decimal point hallucinations in financial data. It uses Python parsers for known formats, achieves ~70ms response times with 0 LLM calls for 200 parallel requests, and only uses LLMs as a fallback for high-entropy text.

OpenClawRadar
Skills Creator Tool for OpenClaw Helps Developers Package Workflows
Tools

Skills Creator Tool for OpenClaw Helps Developers Package Workflows

A developer created a skill called skills-creator that guides users through creating quality skills for OpenClaw, addressing common pitfalls like vague descriptions and documentation-like instructions. It's available on ClawHub and provides a design-driven approach with description formulas, checklists, and complexity tiers.

OpenClawRadar
Coasts: Containerized Hosts for Running Multiple Localhost Environments
Tools

Coasts: Containerized Hosts for Running Multiple Localhost Environments

Coasts is a Docker-in-Docker solution that solves the problem of running multiple localhost environments simultaneously, handling port conflicts, secrets, and volume topologies without requiring complex scripting.

OpenClawRadar