ai-memory: Let coding agents hand off memory to each other across tools
Added · Updated
Made by Fabio Akita
View profile on GitHub (opens in a new tab)ai-memory is a self-hosted memory server that lets more than twenty different coding-agent tools — Claude Code, Codex, Cursor, Gemini CLI and others — share one memory instead of each keeping its own that vanishes when you switch tools.
Quit one agent mid-task, open a different one in the same project, and it can pick up a structured handoff describing where you left off, what failed, and what is still open. The underlying data is plain markdown files in a git-backed wiki you can read, edit or grep yourself, with a rebuildable database as a derived index rather than the source of truth.
What it does
Lifecycle hooks in each supported coding tool record what actually happened during a session — prompts, tool calls, session boundaries — sanitised against a defined privacy boundary, then consolidated into readable markdown pages rather than a raw log. Handoffs between agents are a typed protocol, not just a note left behind: they are owned and claimed exactly once, so two agents cannot both think they picked up the same task. The default path needs no LLM calls or API key at all; memory also decays over time on a schedule rather than growing forever.
You could use it to…
- Let Claude Code and Codex share one memory of your project
- Pick up a coding session where a different agent left off
- Search your own project history as plain markdown files
Can I use this?
You'll need A server you run yourself, and a git repository · Setup needed
Worth knowing Setting it up means running and maintaining another server on your own machine or a homelab box; team use adds multi-user authentication you are responsible for configuring correctly. MIT licence.
Why it's here
Not trending this week
Last seen on the GitHub trending list on 2 November 2026. It stays on BuildTube so you can still find it.
- 15,368 people have starred it on GitHub.
Numbers checked on 8 November 2026; not refreshed since.
Behind it
View setup guideBuildTube has not run or verified this project. Everything above is written from what the creator published.
Made this?
Quick questions
- What is ai-memory?
- Lifecycle hooks in each supported coding tool record what actually happened during a session — prompts, tool calls, session boundaries — sanitised against a defined privacy boundary, then consolidated into readable markdown pages rather than a raw log.
- What can I use ai-memory for?
- Let Claude Code and Codex share one memory of your project; Pick up a coding session where a different agent left off; Search your own project history as plain markdown files
- Can I run ai-memory on my computer?
- It runs from a terminal on your own computer.
- What do I need to use ai-memory?
- A machine to run the memory server on, and a git repository to store the markdown knowledge base in; a shared team server needs a small amount of ongoing administration.
- What license does ai-memory use?
- MIT licence.
More from this week
- agent-desktop Let AI agents read and click desktop apps
For developers building computer-use agents: agent-desktop lets an AI agent read and operate desktop apps on Mac, Windows or Linux from a command line.
- Auto-Ontology Give AI agents checked business meanings for your database
Help AI agents answer questions about company databases using reviewed definitions and SQL, with each answer showing its steps.
- Spec Kit Turn a written spec into plans, tasks and code
Spec Kit gives your AI coding agent a step-by-step process to build a feature, fix a bug or assess an idea.
Explore by topic
Post this
Download share imageFor makers
Made this? Show it’s on BuildTube — add the badge to your README or embed the card on your site.
README badge (Markdown)
[](https://buildtube.app/p/gh-akitaonrails-ai-memory/)Embed card (HTML)
<iframe src="https://buildtube.app/embed/gh-akitaonrails-ai-memory/" width="560" height="240" style="border:0;max-width:100%" loading="lazy" title="ai-memory on BuildTube"></iframe>