TL;DR

  • I keep five things written down for my AI: project state, skills, workflows, a map of what to read, and my corrections.
  • My free Second Brain Starter puts a first version of all five in a folder on your machine.

I write Code Meet AI, the newsletter where I document how I actually use AI to ship real products, receipts included.

I threw away my first draft of this article. It said your AI forgets your project and offered a folder as the fix. Memory is one part of what I run. If it were the only part, I would own a very tidy cure for amnesia and little else.

A second brain, the way I run it, is a folder of plain text files (Markdown) that your AI assistant reads and writes. The name comes from Tiago Forte's Building a Second Brain, and I file things with his two methods. PARA gives each note a home: the product I am building goes under projects, my writing rules under resources, finished work under archives. CODE (capture, organise, distil, express) is how a note moves from raw to useful. Then I added what an assistant needs to do work.

A second brain is where the way you work gets written down, so your assistant can follow it.

Five parts of a second brain: project state, skills, workflows, a map of what to read and recorded corrections

1. Why does my AI forget my project?

In my setup a new chat starts without the last one, so I write the state down where the next chat will read it. Facts, decisions, progress and the next action each have one home, and a daily plan holds what I am doing today. When a chat ends, a closing step writes back what changed.

This rewrite started that way. A six-line file held my review comment on the first draft, word for word, plus the path to that draft and the task. A fresh chat read it and got to work, without me explaining myself to my own computer again.

2. I keep typing the same long prompts

I turn a prompt I keep repeating into a skill. A skill is a folder with one SKILL.md file that says when to use it, what the steps are and how to check the result. The assistant reads the short header first and opens the rest only when the task matches.

My own workspace holds 130 skill folders, some written by me and some taken from other people. The one that writes titles knows what I want on each platform and runs a script that rejects bad ones. I wrote my taste in headlines down once, which beats defending it in every new chat.

A skill holds the method and points to the file that holds the facts. When a price or a version changes, I change one file, and the skills that point there read it on their next run.

3. My AI skips steps on repeat work

I write the whole job down as a route, with a stop where I have to look. This is the route for one of my articles:

  • The assistant writes a short brief: the reader, the problem and the facts it can prove.
  • It drafts, then runs a title check and a language check.
  • Fresh readers, which never saw the writing chat, score the draft on five points: directness, rhythm, trust, authenticity and density.
  • A script checks the cover images.
  • I read it, and I press Publish.

The first four belong to the assistant. The last one stays mine. Each step names its skill, so I fix a skill once for every route that calls it.

4. My AI reads too much, then drifts

I give it a map and let it follow one route. The main file in my workspace is 615 words, and its centre is a table with eight routes: for this kind of task, read this file first. The assistant picks the route that fits and opens what that file names.

The method has a name, Interpretable Context Methodology (ICM), described by Jake Van Clief and David McDermott. Their idea is that the folder structure does the organising. Numbered folders show the order, small text files carry the instructions, and one agent reads the right file at each step.

One task goes to a small router file, which points to one route, which names the few files to read

The map holds the other pieces together: it is how the assistant finds the right fact, skill or route. I have not measured how many tokens this saves, so I will not claim a number.

5. My AI repeats the same mistake

I trace each correction to the file that should have prevented it, and I fix that file. Where I can, the fix is a check that fails, because a second polite sentence in a prompt gets skipped too.

A real one: my assistant suggested the title below, and my title script passed it. I asked why. Today the script answers:

title_check medium | words=10 | FAIL | You Don't Need a Better Model. You Need 4 Files. 

The script now enforces a rule: a title may not knock one thing down to sell another. Its self-test feeds it 19 sample titles, some that must pass and some that must fail. In my last run, all 19 came out as expected.

A correction goes to the owning file, becomes a check, and the next chat runs that check

How do the five work together?

I ask for an article, and the map sends the assistant to the article route. The route reads the facts, calls the title skill and the language skill, and stops so I can read. When I correct something, the fix goes into the fact file, the skill or the route. The next article starts from that fix.

A memory file records what happened. The other four are there to change how the next job is done.

How do I start a second brain?

I would start with the free Starter, because it installs a first version of all five and I ran it again for this article. You need Node.js 22 or newer, and Claude Code or Codex with access to local files.

  1. Clone the repository and keep that copy separate from your project.

  2. Open the clone in Claude Code or Codex.

  3. Type Set this up for me, answer the short setup page and approve the one plan it shows.

This is what you get for each reason:

  • Memory: four records for your first project (facts, roadmap, progress, decisions) and a handover skill for long chats.

  • Skills: 30 for Claude Code and the same 30 for Codex, including one that explains how to write your own.

  • Workflows: 18 written procedures, with commands such as /today to pick your first action.

  • A map: a 76-word root file that points to one route, plus Jake Van Clief's icm-architect skill, unchanged.

  • Fixes: /harness-session traces each correction in a chat to its cause, shows you the edits and waits for your yes.

For this article I tested the newest version on an empty folder. The installer listed 190 files and wrote none of them. After I approved that exact plan, it wrote them and its verifier said OK. Then I added one line to one skill in a copy, and the verifier failed and named the file. I did not test the setup conversation with an assistant, so I cannot tell you how long its questions take.

Is a second brain worth the upkeep?

I think so, and I pay for it in upkeep. The files have to stay true, because an assistant reads a stale fact with total confidence. I spend time closing chats properly, retiring old rules and deciding where a new thing lives.

Start with one project and one habit: close the chat by writing down what changed. Add a skill when you catch yourself repeating a prompt, and a check when a mistake comes back.

Clone it, type Set this up for me, and give your assistant something better to work from than your last message.

I'm Malik Chohra, and I have shipped mobile apps for 9 years. This one came from Code Meet AI, the newsletter where I write up the setups I run on my own projects.