Karpathy's LLM Knowledge Base, Wired Into a Real Agent
Andrej Karpathy posted a thread about using LLMs to compile a personal knowledge base — a two-layer pattern where raw clippings are processed into a structured wiki the agent actually reads. Most public implementations treat the wiki as a standalone tool. This video does something different: it wires the pattern into a real production AI agent.
A two-layer knowledge base, applied to a real agent
I build the Karpathy pattern into Emma — my AI operator with Obsidian vault access, custom slash commands, and a CRM. The raw layer lives in 0-Capture & Process/Clippings/ (populated by the Obsidian Web Clipper). The compiled layer is a structured wiki of pages plus atomic, cross-linked Zettelkasten notes. A compile skill drives the transformation. Emma reads the compiled layer at query time, not the raw clippings.
Claude Code plan mode for the architecture
The build uses Claude Code plan mode for the architectural decisions — where the wiki lives, how sources are classified, who owns the compiler, how it gets triggered. Claude’s sub-agent fan-out explores the codebase in parallel before proposing a plan. I edit the plan directly in the editor before approving execution. Then auto mode handles the implementation with /clear discipline to keep context clean across phases.
Local LLM, real agent, plan-mode discipline
The whole thing runs against a local LLM — Qwen 3.6-27B on a DGX Spark — instead of a hosted model. I walk through the compile skill end to end, including how the agent classifies sources, decides what gets atomized, and links new notes back into the existing graph.
If you want to apply this kind of architectural pattern to your own setup, I cover Claude Code workflows and agent architecture in 1:1 coaching. For related context on giving agents persistent memory, see I Gave My AI Agent Access to My Second Brain.
Want hands-on help with Claude Code?
I offer 1:1 coaching sessions where we work through your actual setup, workflow, and codebase.
Learn about coaching
Automate Everything With Claude Code Channels and Webhooks
Claude Code Channels let you connect your coding sessions to Telegram, Discord, webhooks, or any custom UI — here's how they work.

Claude Code Worktrees Just Got Native Support (Here's What Changed)
Native Git WorkTree support just landed in Claude Code — but it doesn't give you database isolation. Here's how to extend it for real Rails projects.

I Audited My Claude Code Config and Found 32% Was Wasted
I ran a new skill called Claudit on my Claude Code configuration and discovered that roughly 32% of my CLAUDE.md was doing nothing. Duplicate instructions,

Claude Code Git Worktree Setup: Run Multiple Agents in Parallel
Git worktrees + Claude Code = parallel AI agent workflows without conflicts.
Get new videos and posts by email
Weekly videos on AI engineering, plus deeper dives in the newsletter.
Occasional emails, no fluff.