Plain markdown · Zero lock-in · Zero servers

Every AI chat starts from zero.
Mine don’t.

Second Brain is one markdown vault — my career, projects, decisions, and current focus — wired into Claude Code through a router that reads only what each task needs, then writes back what it learned.

an operating system for one human’s context

// the itch

AI has a memory problem.
So did my filing system.

Powerful models, goldfish memory. Every session began with the same ritual — and the context it needed was scattered across repos, chat histories, and my head.

Groundhog Day, daily

Every new session: who I am, what I’m building, what the constraints are. Ten minutes of re-explaining before a minute of real work.

Context dumping fails

The obvious fix — paste everything into one giant file — makes the agent slower and dumber. A context window is a budget, not a bucket.

Notes rot silently

Every note system dies the same death: you stop writing back. Facts go stale, and a stale brain is worse than no brain — it lies with confidence.

// the loop

Route. Read. Work. Write back.

Four moves, every session. The vault is the single source of truth; the agent is a well-behaved guest that cleans up after itself.

Route

The agent reads one ~90-line index — a routing table mapping tasks to files. It never wanders the vault.

Read

Only what the task needs: the hot file (NOW.md), then the matching context files. Three files, not three hundred.

Work

Resume tailoring, project planning, decision support — with full history already loaded. The work starts at minute zero.

Write back

/checkpoint appends decisions to the log, patches evergreen facts, rewrites the focus file. The brain stays current or it’s useless.

// the layout

Eight life domains. One address system.

Obsidian is the human window. Claude Code is the machine client. Same files — folders of plain markdown with strict naming, so grep is the search engine.

D:\second-brain
CLAUDE.md        ← the router — read first, ~90 lines
NOW.md           ← current focus, hard cap: 40 lines
00-inbox/        ← raw captures, filed weekly
01-me/           ← identity, routines, health
02-career/       ← day job, job hunt, LinkedIn
03-projects/     ← one folder per project + registry
04-freelance/    ← clients, positioning, rates
05-knowledge/    ← prompts, snippets, skills
06-logs/         ← decisions + sessions, append-only
07-archive/      ← nothing is deleted; it retires
99-system/       ← templates, conventions, health check

The routing table, in short

Task involves…Agent reads
“What am I working on?”NOW.md
Tailoring a resumejob-hunt/_context.md + rules
A personal project03-projects/<name>/
Logging a decision06-logs/decisions.md

Evergreen facts live in _context.md files capped at 150 lines. Time-stamped events live in dated logs. The two never mix — that separation is what keeps retrieval cheap and answers current.

// the rules

Seven principles, zero exceptions.

1Plain markdown, zero lock-in

Folders of .md. No plugin, no database, no proprietary format. Readable by every editor, every model, forever.

2Route, don’t dump

A small index sends the agent to exactly the files a task needs. Context is spent like money.

3Evergreen ≠ append-only

Stable facts in capped context files. Events in dated logs. Mixing them is how notes rot.

4One hot file

NOW.md, forty lines max — current focus across everything. The highest-value file per token in the vault.

5Write-back or it dies

Every meaningful session ends with /checkpoint. A memory system without an update loop is a diary you stop writing in.

6Name for machines

kebab-case, date-prefixed logs, frontmatter on every note — so grep and glob work reliably. No embeddings needed.

7No secrets. Ever.

No keys, no tokens, nothing you wouldn’t hand to every tool that reads the vault. Boundaries are architecture, not vibes.

Why these rules?

Each one exists because something broke without it. The build story has the scars.

// staying honest

The system polices itself.

The failure mode of every second brain is silent staleness. So a weekly health check mechanically enforces the contract: frontmatter on every note, line budgets respected, no broken links, and a 30-day staleness flag on every active context file.

It exits non-zero when the brain is lying. CI for your life, basically.

powershell — health-check
PS> .\99-system\health-check.ps1
Brain health check — 2026-07-10 (stale threshold: 30d)
Notes scanned: 47

ISSUES (2):
  - 01-me/_context.md : STALE — updated 43 days ago
  - NOW.md : over budget — 44 lines (max 40)

Inbox captures awaiting weekly filing: 3
exit code: 1 — the brain is drifting. fix it.

~90

lines of router the agent reads first

40

line budget for the hot file, enforced

150

line cap per context file — trim, don’t grow

0

plugins, servers, or databases required

// contact

Have an idea? Let’s talk.

Want to build something — or break something interesting? Either way, I’m in.