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

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.mdto 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 jobWhat 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
👀 See Also

Qwen2-0.5B Fine-Tuned for Local Task Automation with llama.cpp
A developer fine-tuned Qwen2-0.5B for task automation using LoRA on ~1000 custom examples, creating a 300MB GGUF model that runs locally on CPU via llama.cpp. The model takes natural language tasks, detects task types, and generates execution plans with CLI commands and hotkeys.

Swarm Orchestra v2 Plugin Adds Inter-Agent Messaging to Fix Claude Code Agent Team Chaos
Swarm Orchestra is a plugin that addresses Claude Code's experimental TeamCreate feature, which can spawn runaway agents. Version 2 adds inter-agent messaging via a PreToolUse hook and self-configuration via a /teammate skill.
Mergetrain: A Local Merge Queue for Parallel Claude Code Sessions That Prevents Trampled Pushes
Mergetrain is a local merge queue that prevents parallel Claude Code sessions from trampling each other's pushes. It uses worktrees, a pre-push hook, and a single runner that assembles branches into a train, runs tests, then atomically pushes.

Cull: Open-Source Dataset Curation Engine for AI Image Pipelines
Cull scrapes images from 340+ sources including Civitai, X/Twitter, Reddit, Discord, and booru sites, classifies them with a vision-language model via local LM Studio or Groq, and sorts into category folders with SD prompts and audit records.