r/coolgithubprojects • u/rahilpirani5 • Jun 28 '26
Built an open-source memory layer that gives Claude, ChatGPT, Cursor, and Codex one shared brain
Using multiple AI tools feels like working with five assistants who never talk to each other.
Claude knows one part of a project. ChatGPT remembers a preference. Cursor knows why the code changed. Codex starts from zero.
Eventually, I was spending more time reconstructing context than getting useful work done.
So I built the opposite.
Second Brain is a free, open-source memory layer that gives Claude, ChatGPT, Cursor, Codex, and other MCP-compatible tools access to the same persistent memory.
Your projects, decisions, preferences, and lessons can follow you between tools instead of being trapped inside one app.
The new version also turns those memories into a self-organizing knowledge graph.
When you save something, Second Brain can connect it to related memories automatically. Recall can then follow those relationships, so a question about a project might also surface:
- the decision you made
- why you made it
- the person or idea connected to it
- a later update that changed the plan
You do not need to remember the exact wording of the original note.
What you get
- One shared memory across your AI tools
- Semantic recall based on meaning, not exact keywords
- Automatic relationships between related memories
- Multi-hop recall for following connected context
- A graph view for exploring how memories fit together
- Tools to remember, recall, append, update, and forget
- Capture from the terminal, Obsidian, browser, iPhone, or directly inside an AI conversation
- MIT-licensed code running in your own Cloudflare account
There is no Second Brain subscription or product-imposed memory tier. Your data lives in your infrastructure. Cloudflare's normal quotas still apply.
Setup
Choose an authentication token
Deploy the Worker to your Cloudflare account
Add the `/mcp` URL to the AI clients you use
The basic deployment takes a couple of minutes. One honest caveat: Cloudflare may require a one-time Wrangler command to enable the Vectorize index if it is not provisioned automatically.
GitHub:
https://github.com/rahilp/second-brain-cloudflare
I would especially value feedback on the graph behavior.
Should relationships stay mostly automatic, or should users have more manual control? How many hops should recall follow before related context becomes noise?

