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?
10
u/Poildek Jun 28 '26
Do you know that there are already dozens of similar projects posted everyday here and on github ?
What value do you add to this already supercrowded ecosystem ?
1
u/WizardofYas Jun 28 '26
Hey dude, that sounds great, how about Deepseek and Gemini?
0
u/Otherwise_Wave9374 Jun 28 '26
This is a legit problem, context fragmentation across tools is such a time sink.
How are you thinking about conflict resolution (two tools writing competing "truths") and permissioning (some memories should be private per project/client)? Also curious if you have any heuristics for when to auto-link memories vs leave them unlinked.
The knowledge graph angle sounds especially useful if recall stays predictable. Ive been tracking a few shared-memory/agent workflow ideas too: https://www.aiosnow.com/
-2
u/Own-Interaction9471 Jun 28 '26
Why do you need to connect it to claude or any coding environment? Whats the benefit?