Urgent.News

What's breaking now, across hundreds of outlets.

AI

Karpathy's 'Second Brain' Pattern, Applied to Obsidian and Claude Code

TL;DR On April 3, 2026, Andrej Karpathy posts an idea that goes massively viral: stop using an AI agent for one-off questions, and point it at a folder of sources so it builds a personal wiki that grows with every addition. The principle holds up, and the real structure goes further than "three folders and a prompt": immutable sources, a generated wiki, an action log, and a periodic verification…

On April 3, 2026, Andrej Karpathy shared an idea that went viral: instead of using an AI agent to answer one-off questions, point it at a folder of sources and let it build a personal wiki that grows with every addition. This concept has since caught on across the AI community.

Karpathy, a founding member of OpenAI and former AI director at Tesla, posted the idea on X. The post garnered over 19 million views and quickly gained traction, with many people testing and documenting the approach. The core principle is simple: a note you write captures what you believed you understood at the time, while a note the agent writes captures the actual content of the source and updates itself when new or contradicting sources are added.

The recommended structure for this system includes a CLAUDE.md file, an _index.md file for navigation, a _log.md file that records the agent's actions, and two main folders: sources/ for raw, unedited content, and wiki/ for generated, agent-modified content. The sources/ folder remains immutable, allowing you to verify the original content at any time. The wiki/ folder is only updated by the agent, ensuring that manual editing of generated content is unnecessary.

The core operations of this system are straightforward:

1. Ingest: Drop a source into the sources/ folder and ask the agent to integrate it. The agent will read the source, identify key entities, and update relevant wiki pages, typically adding 5 to 15 pages per source.

2. Query: Ask the knowledge base a question. The agent first searches the wiki, then falls back to the raw sources if needed, and generates a useful answer, often adding a new entry to the wiki.

3. Verify: Conduct a periodic review to catch contradictions, broken links, orphaned pages, and stale claims.

Setting up this system can be done in just five minutes for a new, empty vault by creating the necessary folders, writing the CLAUDE.md file with filing and naming rules, and dropping in a first source. For an existing knowledge base, migration may take 60 to 90 minutes to scan existing content, propose a filing plan for the new structure, and migrate files one by one.

This approach builds upon existing knowledge bases with governance files and topic-based indexes, adding a clean separation between raw sources and generated notes, along with a regular verification process. These enhancements complement an existing structure without requiring a complete rebuild.

Rewritten by urgent.news; may contain errors — check the original.

Read the original at dev.to →

Report a problem with this story

More in AI

Don urges AI solutions for rural healthcare

A Professor of AI and Applications, Prof. Abejide Ade-Ibijola, has urged governments to deploy artificial intelligence-powered solutions to improve agricultural productivity and healthcare delivery……

Introducing Draft Wink — My AI Website Builder Project

Introducing Draft Wink — My AI Website Builder Project Hi everyone! 👋 I'm Ferid Oci , a web developer and the founder of Draft Wink .

  • Ferid Oci, founder of Draft Wink, introduces AI website builder project.
  • Users can create websites via natural language descriptions.
  • Oci develops project independently, focusing on first release and feedback.

More from Saturday 21 November →