Agent memory, made simple.
Plain Markdown in your own Git repo, shared by all your coding agents, like Claude Code and Codex. One command to install. No API key, no database, no server to run.
Every session starts by waking up from it, and every decision an agent records is a commit you can read, diff, and revert. Open source (MIT).
npx hippocamp@latest installThis installs Hippocamp into every supported agent it finds and creates your memory repo, ~/.lagoon. Restart your agent and it starts each task by waking up from memory.
A replay of a real session. Neither prompt mentions Hippocamp.
- Written by the agent itself. The agent doing the work records what is worth keeping, in its own words. Events stay as written. Optional Dream reviews recent events to update and compact the two summary files, promoting supported lessons through a pull request you review.
- One memory for every agent. Claude Code, Codex, and your other agents share the same repo. Built-in memory, like Claude Code's or Codex's, stays inside one tool.
- History you can audit. Every memory is a Git commit. Roll back a bad memory like bad code.
- Files you own. Plain Markdown, readable without any UI, synced across machines with your normal Git credentials.
- Nothing to sign up for. No vendor that can change terms or shut down.
| Hippocamp | Mem0 | Zep | Graphiti | Letta Code | Basic Memory | Claude Code / Codex built-in | |
|---|---|---|---|---|---|---|---|
| Agent agnostic (MCP server) | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | ❌ |
| Plain files you own | ✅ | ❌ | ❌ | ❌ | ✅ | ✅ | ✅ |
| Auditable history | ✅ | ✅ | ❌ | ❌ | ✅ | ❌ | ❌ |
| No extra account, API key, or model | ✅ | ❌ | ❌ | ❌ | ✅ | ✅ | ✅ |
| Syncs through your own Git | ✅ | ❌ | ❌ | ❌ | ✅ | ❌ | ❌ |
| Always free | ✅ | ❌ | ❌ | ❌ | ✅ | ✅ | ✅ |
| Open source | ✅ | ✅ | ❌ | ✅ | ✅ | ✅ | ❌ |
Reproducible with the scripts in this repo.
| Hippocamp | Reference | |
|---|---|---|
| Right memory in top 5, LongMemEval-S (470 questions) | 90.5% | BM25: 91.4% |
| Text returned per search | 5.9k chars | Whole sessions: 65.5k |
| Answer accuracy, Claude Sonnet 5, top 10 results | 77% | Correct sessions given directly: 90% |
| Unrelated questions that return nothing (our own test set) | 10 / 10 |
Full tables, method, and limits: docs/results.md.
- Setup: install options, the Lagoon repo, a private remote, configuration
- How it works: memory layout, MCP tools, memory rules
- Dream: optional overnight memory updates and compaction as a reviewed pull request
- Results: evals and how to rerun them
- Development: commands and releases
MIT

