Shared, git-tracked working memory for AI agents on the same codebase.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Shared, git-tracked working memory for AI agents that share a codebase. What one Claude / Cursor / Cline learns about your repo, the next one picks up automatically. No database. No SaaS. Just files in your repo.
Every AI session that touches your repo starts from zero. It re-greps the same files. It re-discovers the same conventions. It re-asks the same questions you already answered three sessions ago. Multi-user / multi-tool makes it worse: your teammate's Cursor and your Claude Code learn the same codebase independently.
There is CLAUDE.md / .cursorrules for rules the human writes. But
there is nothing for facts an agent verified β "the auth middleware
lives at src/auth/middleware.py:42", "PR #387 chose httpx over requests
because of HTTP/2", "don't run migrations during peak hours".
repo-memory is that nothing. A .ai-memory/ directory you commit to
your repo. Every AI tool reads from it, writes to it. Git is the database.
Pure files. Sync over git. No daemon, no DB, no auth. Works offline.
Python β₯3.10. Depends only on the official mcp SDK (for the MCP server).
Then commit .ai-memory/ like any other file:
Anyone else (human or AI) who pulls the repo now sees those facts/decisions immediately.
For agents discovering this repo through search or MCP indexing.
repo-memoryrepo-memory) and MCP stdio (repo-memory-mcp)..ai-memory/ in the repo. Sync = git.| Tool | When |
|---|---|
get_repo_memory | At the start of any task on this repo. |
add_fact | After you verify a non-obvious fact (location, behavior, convention). Include evidence so the next agent can re-verify cheaply. |
add_decision | After a non-trivial choice (architecture, library, trade-off). Body should explain why, not just what. |
add_gotcha | After a surprise that wasted your time. |
list_facts | When you want only facts in a specific area (tag, source_file). |
Add to your client config (Claude Desktop / Cursor / Cline):
Or set REPO_MEMORY_ROOT env var instead of --repo.
Exposes 5 tools: get_repo_memory, add_fact, list_facts,
add_decision, add_gotcha.
git blame tells you which agent added which fact and when.facts.jsonl β one JSON object per line:
Append-only. Stale entries stay. Readers consult verified_at and
re-verify if they want.
repo-memory init also appends a short discoverability section to your
repo's CLAUDE.md (or AGENTS.md if you already have one) telling any
AI agent that enters the repo to check .ai-memory/ first and to record
new findings back into it. Idempotent β re-running won't duplicate.
Opt out with --no-claude-md.
The appended block is delimited by <!-- BEGIN: repo-memory --> and
<!-- END: repo-memory -->, so you can hand-edit other parts of your
CLAUDE.md freely.
| Command | Effect |
|---|---|
repo-memory init [--no-claude-md] | Create .ai-memory/ skeleton + (default) update CLAUDE.md/AGENTS.md. |
repo-memory show [--limit N] | Print everything as one Markdown doc. |
repo-memory add-fact "<claim>" [--file F --lines L --tool T --command C --tag T --by AGENT] | Append a fact. |
repo-memory list-facts [--tag T] [--source-file F] [--since ISO] [--limit N] [--json] | List/filter facts. |
repo-memory add-decision "<title>" [--body MD] | Write a decision file. |
repo-memory list-decisions | List decision file paths. |
repo-memory add-gotcha "<note>" | Append a one-line gotcha. |
All commands take --root PATH if your CWD isn't the repo root.
Built by yubinkim444, who also makes Kay's Records β an app for iOS and Android.
If this project saved you time, giving the app a try is the nicest way to say thanks.
MIT Β© yubinkim444
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/repo-memory)<a href="https://allmcps.com/mcp/repo-memory"><img src="https://allmcps.com/api/badge/repo-memory?style=directory" alt="Repo Memory on AllMCPs" /></a>