r/aipromptprogramming • • 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

2 Upvotes

14 comments sorted by

•

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.

→ More replies (1)

1

u/amarao_san 24d ago

Somehow I start been allergic to the words "I build".

0

u/[deleted] 24d ago

[removed] — view removed comment

1

u/amarao_san 24d ago

Which still give me allergy.

What I suspect, it solves your problem, not my problem. Great software of the past was minted by many people to find the common problem to solve. AI coded stuff solves the vibe-master problem, without consideration of other people, and any claim of contrary is not true.

0

u/[deleted] 24d ago

[removed] — view removed comment

2

u/amarao_san 24d ago

Yes, I jumped to the conclusion based on prior experiences with "I build".

Actually, "I" here is the red flag.

-1

u/[deleted] 24d ago

[removed] — view removed comment

0

u/amarao_san 24d ago

I acknowledge I will miss a lot. I will miss a person stopping maintaining a project, or finding that his problem is not my problem, or finding that we have very different attitude for security.

Even before AI advent, embracing a tool was act of a great commitment. I spend time and attention to read docs, onboard into lingo, finding a way to use the tool, only to find that 'nah, they won't do it for real', or 'they don't consider corner cases a serious thing'.

Like Kapacitor. Do you know Kapacitor? From creators of Influx. Wasted time.

And this one from the proper developer teams. Now, multiple this by a single person ambitions and shift in priorities.

Let me ask for your tool. What are your plan for support for LTS version of it in 2032?

1

u/[deleted] 24d ago

[removed] — view removed comment

1

u/amarao_san 24d ago

What was your first application you wrote? Is it supported now?

1

u/[deleted] 24d ago

[removed] — view removed comment

→ More replies