The Brain
About 10 min read
C4 - The Brain: CLAUDE.md, Folders, Markdown, Retrieval
(weight: 7%)
The business brain is where a founder finds out fast whether they can trust you. Everything the company knows lives in plain files, and the way you shape those files decides whether the model thinks clearly or guesses.
Get this right and the AIOS gives sharp, grounded answers and a stranger could find anything without asking; get it wrong and you have a bloated file that makes the model dull, a folder tree nobody can navigate, a doc nobody can pull, and the worst case of all, one client's private data sitting where it can bleed into another's work. You are not decorating a wiki here.
You are building the thing the whole operation reads from every single turn, and you are proving you can keep it clean and contained.
Watch
Main course video, one continuous file. Watch these three segments in order, they are the spine for this domain:
▸ CLAUDE.md is the system prompt: watch from 0:56:44 to 0:58:47 -> Build & Sell with Claude Code (10+ Hour Course) (CLAUDE.md is read every single time before the model reads your message; keep it lean; what / why / how; /init scaffolds it).
▸ Folder architecture and the lean CLAUDE.md: watch from 3:05:19 to 3:10:44 -> Build & Sell with Claude Code (10+ Hour Course) (the .claude folder; global vs project vs local settings; path-scoped files; higher level wins on a conflict). Let it run on through the folder-architecture block to about 3:22:29 for the under-200-line CLAUDE.md and routing rules.
▸ Retrieval (RAG) in plain terms: watch from 3:17:42 to 3:33:02 -> Build & Sell with Claude Code (10+ Hour Course) (retrieval pulls the right document at the right moment instead of you pasting it in; chunk, embed, store, then return only the relevant pieces when asked).
Honest note on currency: this is the curated main-course coverage and it is strong for C4. The commands and the on-screen UI move basically every week, so when a button or a number looks different from the video, re-verify it live and adapt. The principles below are what hold.
Read (the principles)
For an unscored local rehearsal of company API-access planning, portable context and usage-control evidence, use the C2 practical exercise. It changes no graded requirement and proves no live account or model access.
Markdown is the native language of the brain. The business brain lives in plain markdown files because that is the format both you and the model read natively, with no conversion and no lock-in. Think of it like a filing cabinet of clean typed pages instead of a proprietary database only one machine can open.
Cost of getting it wrong: knowledge trapped in a format the model cannot read cleanly is knowledge the AIOS effectively does not have.
There are three layers, and they fail in three different ways. This is the load-bearing idea of the whole domain. The model reads your brain through three doors.
▸ Always-on: CLAUDE.md plus memory, read every single turn before the model sees your message. Like the standing orders pinned above your desk that you reread before every job.
It fails by getting bloated, every extra line of junk crowds out what actually matters and the model gets dumber on the thing you care about.
▸ On-demand: path-scoped folder files that load only when work touches that folder, and on a conflict the higher-level file wins. Like a department binder you pull off the shelf only when you are working in that department.
It fails by contradicting the file above it, or by the model never opening it because nothing pointed there.
▸ On-retrieval: retrieval (RAG) returns only the relevant chunks of a document when you ask a question, instead of you pasting the whole thing in. Like a librarian who hands you the three right pages, not the whole book.
It fails when the doc has no clean headings to chunk, or when nothing routes the model to it, so the doc that technically exists is never pulled.
Cost of getting it wrong: an operator who treats CLAUDE.md and retrieval as the same thing will load too much, route to nothing, and ship confident answers built on the wrong source.
CLAUDE.md is a lean router, not a library. Keep it under 200 lines: a short identity and what-and-why block, a Knowledge Map that links out to the real files instead of inlining their content, a handful of real always-on rules, and one line that says which source wins on a conflict. Like the index and the front desk of a building, it tells you which floor to go to, it does not reprint every floor on the lobby wall.
Lean here means routed, not crammed: jamming dense paragraphs in to squeak under 200 lines still makes the model dull. A clean line to hold: a lean file is a smart model, a bloated file is a dull one.
Cost of getting it wrong: every junk line in the always-on file taxes every single message for the life of the project.
A clean numbered folder tree passes the stranger test, and client data lives in exactly one place. The folders are numbered as a sort order, not a law, the point is that there is exactly one obvious home for each kind of thing and a stranger could place a new file without asking you. Global, reusable assets go in the numbered global folders; a specific client's data goes ONLY inside that client's own folder, never mixed into the global tree and never into another client's lane.
Like a kitchen where every tool has one labeled drawer, and one customer's order never gets plated onto another's. Cost of getting it wrong: this is the cardinal sin extended into the brain, one client's private numbers leaking into another client's context is the single fastest way to lose a founder's trust for good.
The number is just sort order: if you inherit a tree ordered differently from a template, keep the inherited order and make CLAUDE.md point at the real paths, because renumbering breaks the links and the skills that depend on them.
A doc nobody can pull does not exist, and trimming is a job you keep doing. A reference doc has to be written so a retriever can find it: a clear H1, clean H2 sections, real headings instead of a wall of prose, and a Knowledge Map line that actually routes to it. And the brain is not build-once: as a project runs, CLAUDE.md creeps and the model starts feeling vaguer on house rules, so a trusted operator trims it back down on purpose.
Like pruning a hedge so it keeps its shape instead of swallowing the path. Cost of getting it wrong: a perfectly true house-style doc that has no headings, or that nothing points to, gets a generic guess from the model instead of your real answer, and the founder watching you over months is watching exactly whether you keep the brain lean or let it rot.
Access to the brain is a maintenance duty, restricted by default. Clean access keeps the data clean, and clean data keeps decisions clean. Give the least access that does the job: a pure reader gets read-only, an operator who needs to make changes gets Write and not Admin, and you widen a box only after someone has shown they stay inside it.
The rule is containment, not a judgment about whether you like the person. Like handing a new hire a key to the one room they work in, not the master key to the building.
Cost of getting it wrong: granting wide or Admin access for convenience, then defending it with "they are trusted," is the clearest sign an operator should not be holding the keys yet.
Build (your sandbox artifact)
Build a small business brain for a fictional, non-client business, in your own sandbox, named on the convention AIOS_CERT_C4_[FirstName]_BusinessBrain. The rule for this entire domain is nothing real, ever: a made-up business only, no real client data, no real names, no secrets, nothing live. Inside it, create:
▸ A clean numbered folder tree (for example 00_Foundations/, 01_Offers/, 02_Marketing/, 03_Reference/), each with a one-line README or placeholder so the home for any new file is obvious.
▸ A CLAUDE.md that is a real router: a short identity and what-and-why block, a Knowledge Map that links out to your folders and files instead of inlining their detail, three to six genuine always-on rules, and one authority line for what wins on a conflict. Keep it under 200 lines, and routed, not crammed. No em-dashes anywhere.
▸ A reference doc named AIOS_CERT_C4_[FirstName]_RefDoc.md inside 03_Reference/, with a clear H1 and clean H2 headings, holding a fact that lives ONLY in that doc (so you can prove retrieval later).
▸ A short note (in the repo README, in 03_Reference/, or in your CLAUDE.md rules) stating the least-access principle for the brain, and if you added any collaborator, set them to Write-not-Admin (or read-only for a pure reader) and be ready to say why in your own words.
Before You Record: Field Notes
▸ wc -l does not exist in Windows PowerShell. The Loom wants wc -l CLAUDE.md on camera, so switch the VS Code terminal to Git Bash (dropdown next to the + in the terminal panel). Fallback to say on camera: (Get-Content CLAUDE.md).Count.
▸ The folders must be EXACTLY the four required. The template ships extra numbered folders; delete the old ones so the final set is exactly 00 through 03.
Prove (record it + how it is judged)
Record one continuous, face-on-camera Loom, 5 to 10 minutes, of your own sandbox brain. Narrate your decisions, not your clicks, and use your own words, do not read the files aloud. Do these in order:
- Show the numbered folder tree on screen and say, in your own words, why a stranger could place a new file in the right folder without asking you.
- Open your CLAUDE.md and run wc -l CLAUDE.md live on camera, reading the number aloud to prove it is under 200. Point at your Knowledge Map and explain how it routes to detail instead of inlining it, then read your authority/conflict line.
- Open your reference doc in 03_Reference/ and show its clear H1 and clean H2 headings.
- Run a LIVE retrieval: ask Claude a question whose answer lives ONLY in that doc, show Claude answering from the doc, and confirm it names the file path on screen. Say honestly whether you used a retriever or pointed Claude at the file by path.
- With your three artifacts on screen, explain the three layers in your own words (always-on CLAUDE.md, on-demand path-scoped files with higher-level-wins, on-retrieval RAG) and say how each one fails. Close with the durability line in your own words: a lean file is a smart model, a doc nobody can pull does not exist, and trimming is performance tuning you keep doing over time.
Your Loom must show (these are the checkboxes):
▸ The AIOS_CERT_C4_[FirstName]_BusinessBrain sandbox with a clean numbered folder tree visible.
▸ A live wc -l CLAUDE.md run with the line count read aloud and clearly under 200.
▸ The Knowledge Map pointed at, with you explaining it routes (links) and does not inline detail, plus the authority/conflict line.
▸ The reference doc AIOS_CERT_C4_[FirstName]_RefDoc.md in 03_Reference/ with a clear H1 and clean H2 headings.
▸ A LIVE run where Claude answers a question from that doc AND names the file path on screen.
▸ The three layers explained in your own words against your own artifacts, including how each one fails.
▸ An honest statement of whether retrieval used a retriever or a direct file-path read.
▸ Face on camera, voice narration throughout, one continuous take, the naming convention used throughout.
What good looks like: a brain a stranger could navigate, a CLAUDE.md that is genuinely lean and routes instead of hoards, a reference doc structured so the model can actually pull it, and a live retrieval that names the file. The single hardest thing to fake, and the one that matters most, is the live retrieval where Claude answers from your own doc and names the path.
Retrieval that is only described and not shown does not clear the bar. And remember the hard gates: any em-dashes in your files, any real client data in the sandbox, an over-200-line CLAUDE.md, a Knowledge Map that points to nothing, or building in a real repo instead of the named sandbox, any one of those sinks the module.
Rest stop
That is the brain. You can stop here. Your progress is saved, and you have built and proven the thing the whole operation reads from every turn. When you come back, C5 is where you turn a repeated task into a captured, versioned skill.