Karpathy's "LLM Knowledge Base" gives you a tidy frame: raw sources, a wiki the AI writes, and a rules file. I used that frame to build a working vault for many clients, across several machines, over a few months. This article covers the part the frame does not: a 4th layer, "operating discipline", made of five small rules I added after real mistakes.
Why a personal wiki is not enough once you have many clients
Every time you open a new AI chat you explain who you are and what you do again. Karpathy names the cause: RAG-style use makes the AI search from scratch each time, with nothing accumulating. His fix, an AI-maintained structured wiki, is the right direction.
But once you have dozens of projects, several computers, many skills and more than one session picking up work, a new kind of problem appears: the AI does not forget, it remembers wrongly. An old phone number still sits in a skill. The skill on one machine differs from another. A job handed to another session has no known outcome. However good the wiki is, it cannot stop these operating failures on its own.
The 4-layer diagram
The bottom three layers are Karpathy's. The top layer is my addition. The diagram is plain markdown so you can copy it into your own vault.
┌───────────────────────────────────────────────────────────┐
│ LAYER 4 OPERATING DISCIPLINE (added) │
├───────────────────────────────────────────────────────────┤
│ LAYER 3 SCHEMA: CLAUDE.md = rules for the AI │
├───────────────────────────────────────────────────────────┤
│ LAYER 2 WIKI: the AI writes, you read │
├───────────────────────────────────────────────────────────┤
│ LAYER 1 RAW: immutable, the AI only reads │
└───────────────────────────────────────────────────────────┘
Vault/
├─ CLAUDE.md <- schema + operating rules
├─ 00 Inbox/ <- everything new lands here first
├─ 01 Projects/ <- one note per client, with a status
├─ 03 Resources/ <- sources of truth: contacts, prices, brand
├─ 07 Knowledge/ <- SOPs, lessons, libraries
├─ 09 Attachments/ <- raw files, named by convention
├─ 11 Dashboard/ <- Dataview dashboards, handoff log
├─ 12 Work Records/ <- big jobs, one file each
└─ 99 System/ <- logs, scripts, shared library
The diagram and tree above are a trimmed version of the markdown schematic file.
The five rules of layer 4
Each rule came from a real mistake, and each is only one line in CLAUDE.md.
- Source of truth. Client contacts (phone, email, address) live in exactly one note in 03 Resources. When a skill and the note disagree, the note wins. It prevents: the AI using stale details hard-coded in a skill.
- Approval gates. Publishing to a website, changing Ads settings, emailing a client, paying: the AI drafts, I approve in chat, then it acts. It prevents: the AI publishing or sending on its own.
- Session-start hook. On every session start a script checks: has a skill drifted between machines, which handoffs are overdue, which rows are waiting to sync. It prevents: opening a session without knowing what you owe.
- Handoff log. Work moved to another session gets its own code and a dashboard row. The receiving session must update the status before it ends. It prevents: half-finished jobs with no known outcome.
- Device log. After every task, one line: date, which machine, what, which files. It prevents: several machines and no idea which one changed what.
Karpathy's three operations, rewritten for web and SEO work
| Operation | Original frame | Many-clients version |
|---|---|---|
| Ingest | Read a source, update the wiki | Brief, GSC export or email goes to the Inbox; the AI updates the project note and logs one line |
| Query | Ask the wiki | "What is waiting for my approval across every project?", "Which project has had no update in 14 days?" |
| Lint | Find contradictions | Contacts that disagree with the source of truth, AI-visibility prompts due for re-measurement, OneDrive duplicates, HTML still embedding large base64 images |
What broke, and how I fixed it
- OneDrive creates duplicate files with a machine-name suffix when two machines edit the same note. Fix: a rule to compare and report them for deletion, never auto-merge.
- Old contact details stayed in skills after a change. Fix: one source of truth, plus a "retired strings" table so every machine can detect and correct them.
- HTML files ballooned by embedding the same base64 image many times. Fix: a shared library; images are embedded only when publishing.
- The AI wrote correctly but published too early. Fix: approval gates; it drafts, I approve.
Start small: 30 minutes, two rules
- Install Obsidian, create a vault and open it with Claude Code (follow Karpathy's original guide for this part).
- Create the first five folders: 00 Inbox, 01 Projects, 03 Resources, 09 Attachments, 99 System.
- Write CLAUDE.md with only two rules: source of truth and approval gates.
- One note per client in 01 Projects and one contact note in 03 Resources.
- A week later, add the hook and handoff log, once you have felt the need.
Limits, and who does not need this
- A vault does not produce SEO results by itself. It reduces mistakes and repetition; presence in AI answers still has to be measured separately.
- You must feed it and maintain it monthly. An empty vault is a useless vault.
- With a few notes and one or two projects, this may be too heavy; use Karpathy's 3-layer version.
- Client data must be anonymised before sharing. The examples here have client names and figures removed.
Frequently asked questions
How is a second brain different from ChatGPT memory?
A chatbot's memory lives on the provider's servers and you cannot see how it is structured. A vault is plain markdown files on your machine: you can read, edit and move them, and the AI only works inside rules you wrote.
Do I need to code?
No. You install Obsidian, open the vault folder with Claude Code and write the rules in plain language in CLAUDE.md. Hooks and scripts are optional and come later.
Should client data go into the vault?
It can, with clear rules: client data stays in your private vault, anything shared publicly is anonymised, and the AI never publishes or sends on its own. Those are the layer-4 rules.
Does this guarantee rankings or AI visibility?
No. It makes your work more disciplined and removes repeat mistakes. SEO and GEO results still have to be measured separately, for example with an AI visibility audit.
Want to know if your website shows up in AI answers?
The vault keeps the work disciplined; the audit shows where you stand. Aiden Hoang Nguyen runs it personally, in English or Vietnamese. Fill in the form to get the free version.