Building Persistent Memory for Claude with Four Markdown Files

How the System Works
A developer on r/ClaudeAI shared a solution to Claude's session-based context limitation by creating a persistent memory system using four markdown files loaded via project context. The system addresses the issue where each Claude conversation starts from zero by maintaining continuity across sessions.
File Structure and Purpose
- Protocol — Identity layer defining who Claude is in this context, session lifecycle, and behavioral boundaries
- CONVERGEHERE — Orientation layer specifying what matters now, last session pointer, and system state
- Daily Capture — Human input layer with one line per day and body metrics in frontmatter
- Continuity — Memory layer where Claude writes at session close (30 lines maximum) about what it noticed, what's open, and what to watch
Session Lifecycle
At boot: Claude reads all four files before responding. At session close: Claude updates Continuity and CONVERGEHERE. The next instance reads the updated files, creating a continuous chain of context.
Results After One Month
After a month of daily use, the system demonstrated practical benefits: tracking commitments from three weeks ago, noticing when the same task is deferred repeatedly, and flagging when energy drops correlate with skipped tasks. The developer notes that while Claude is reading structured data and reflecting it back, the compound effect of persistent context is significant.
The system was demonstrated with a cold boot — a fresh Claude instance reading the four files and arriving with context from 10+ prior sessions.
📖 Read the full source: r/ClaudeAI
👀 See Also

Reducing AI Agent Context Bloat with Single Workspace Architecture
A developer shares how they reduced AI assistant startup context from 27,000 to 4,000 tokens by implementing a single workspace approach instead of complex agent swarms, using channel-level identity injection and segregated memory folders.

Claude Time Travel Game Evolves from Prompt to Full Deployed System
A Reddit user describes evolving a time travel RPG prompt in Claude into a complex system over 40 days, adding YAML state files, 50+ NPCs, event triggers, and eventually deploying it on Fly with a database and custom MCP server for cross-platform access.

Autonomous Claude Code Loop Runs Open-Source GymCoach 24/7 — Triages, Codes, Merges
Developer lets Claude Code run an open-source fitness app autonomously: triage issues, implement PRs, pass green-gate checks, merge, and document — all without human intervention.

OpenClaw AI Agent Finds Federal Job Match and Creates Daily Automation
A user tasked their OpenClaw AI agent with finding a federal job on usajobs.gov that matched their salary requirements and preserved special retirement benefits, resulting in a specific job description match and a daily notification automation.