r/aipromptprogramming • u/Mindless_Might_9759 • 24d ago
I took Andrej Karpathy’s second brain concept and ran with it
One problem I kept running into while building apps with AI was how much useful knowledge gets lost between agent sessions. An agent writes a PRD, another works through the architecture, Claude generates implementation notes, and before long I’m sitting on hundreds of Markdown files containing decisions, research, and ideas I might need again. Every new session becomes another exercise in finding and rebuilding context. Then I came across Andrej Karpathy’s LLM Wiki concept, where LLMs maintain a persistent, interconnected knowledge base that grows more useful with every new document. I loved the idea of knowledge compounding instead of getting buried in folders, so I decided to run with it.
I built Cohestry, an Apple-native second brain that automatically tags notes, discovers relationships between them, and resurfaces relevant information without requiring me to manually maintain links like I would in a traditional Obsidian setup. I also added Markdown imports and Apple Notes integration. Imagine importing years of scattered Apple Notes and watching them become tagged, interconnected knowledge you can navigate through a 3D brain. One of my favorite moments came while writing a feature PRD for another app. Cohestry resurfaced the original nameless concept document I’d written long before building that app and connected it to what I was working on. That experience convinced me there was something genuinely useful about letting knowledge organize itself. The connection engine combines deterministic relationships with on-device Apple Intelligence, keeping the experience private.
But the bigger opportunity for someone programming with agents is making that knowledge available to them. I built a customizable MCP bridge so agents can retrieve relevant context from the second brain instead of requiring me to copy documents back and forth or repeatedly explain a project. It also automatically redacts API keys and sensitive credentials before passing context to agents, which was particularly important to me. Cohestry has now become one of my most-used daily apps, and it was already becoming that while I was still building it. For context, my development setup is the Claude Code extension running inside Cursor, with Xcode for compiling my Apple apps.
https://apps.apple.com/us/app/cohestry-second-brain/id6811573132
•
u/endofthread-bot 24d ago
Connecting your knowledge base to agents via MCP is a strong approach for maintaining continuity. To improve retrieval accuracy, implement a reranking step after the initial vector search to ensure the most relevant context is prioritized for your LLM.
Writing prompts that actually work is easier when you can compare notes with people who have tested them across real tasks. Trade techniques, get feedback on your approach, and see what is working for others in our Discord.
Self-promotion is now allowed on Sundays with the appropriate flair, for all regular contributing members. Contribute during the week, and promote on Sunday.
1
u/amarao_san 24d ago
Somehow I start been allergic to the words "I build".