Your agents make decisions all day. Then the session ends, and the decisions go with it. The next session starts from scratch, and unless you read the transcript, so do you.

Wiki-driven development fixes that. Agents keep a short, linked wiki in the repo, and they write it for you: what they decided, what they rejected and what’s still open. You read it and edit it to set direction. The next session starts from your edit.

The wiki-driven development cycle. The agent does the work and writes the wiki. You read the wiki and edit it to set direction. The next agent session reads your edit, and the cycle repeats.writesyou readyou editnext session readsAgentdoes the workThe wikilinked pages in the repoYouset direction

One set of pages does three jobs:

  • You can see what the agent is doing, without reading a transcript.
  • The next session starts where the last one stopped, instead of working everything out again.
  • Your team gets the same context. A teammate, or their agents, can pick up an area by reading its page instead of asking you.

It’s not a replacement for AGENTS.md. That file answers how should the agent work? The wiki answers where are we, and where are we going?

I’ve adapted the idea from Karpathy’s LLM Wiki,1 where an LLM maintains a knowledge base for you. His version tries to capture everything. This one keeps only what you need to steer, so it stays short enough to read.

Writing the right amount

Agents love to write. Ask one to keep notes and you’ll get a page for every file it touched and a summary of every summary. That’s slop, and it’s worse than no wiki: it costs tokens to load, it buries what matters, and nobody reads it.

So how much should the wiki hold? Here’s a formula for it. A page is worth writing when:

n (F−R)  >  W+Nc n \, (F - R) \;>\; W + N c

Let’s break it down.

Suppose an agent spends a while working out why a test is flaky. Call the cost of that work FF, for find. Say it’s 40,000 tokens. Without a page, every session that hits the same test pays FF again.

Now suppose the agent writes it down. Reading the page costs RR, for read. Say that’s 500 tokens. Each time someone needs the answer, they pay RR instead of FF, so each use saves:

F−R F - R

If the page gets used nn times, the total saving is:

n (F−R) n \, (F - R)

But the page isn’t free. Writing it, and keeping it current, costs WW. So the page is worth it when:

n (F−R)  >  W n \, (F - R) \;>\; W

We can expand this by adding the index. Every session reads the index before anything else, so every page also costs a little in every session, whether that session needs it or not. Call the cost of one index line cc, and the total number of future sessions NN. That gives the full formula:

n (F−R)⏟what the page saves  >  W+Nc⏟what the page costs \underbrace{n \, (F - R)}_{\text{what the page saves}} \;>\; \underbrace{W + N c}_{\text{what the page costs}}

Plug in the flaky test. Say it’s needed 10 times over the next 200 sessions, writing costs 2,000 tokens, and the index line costs 30:

10×(40,000−500)=395,000  >  2,000+200×30=8,000 10 \times (40{,}000 - 500) = 395{,}000 \;>\; 2{,}000 + 200 \times 30 = 8{,}000
∴  395,000  >  8,000 \therefore \; 395{,}000 \;>\; \color{#22a35a}{8{,}000}

Write it down. It pays for itself the first time it’s used.

You won’t know the real numbers, and you don’t need them. Slop is any page where the right side is bigger than the left, and each variable tells you how to avoid it:

  • Large FF: write it down. Anything that took real work to find is worth a page. For people, FF is even bigger, because the alternative is reading old transcripts. Most won’t, so they guess.
  • n=0n = 0: don’t. A fact that won’t be needed again belongs in the pull request.
  • F≈RF \approx R: don’t. If the code already says it, a page adds nothing. Write down what the code can’t say: decisions, rejected options, open questions and where things stand.
  • Large RR: shorten it. Keep pages to one screen.
  • Large NcN c: prune. Every page costs every session a little. That adds up, which is why the wiki needs a hierarchy.

Keeping things readable

The formula decides what goes in the wiki. It doesn’t decide how it’s written, and left alone, an agent writes like this:

It is important to note that the refund service leverages a robust retry mechanism, ensuring seamless handling of transient failures across the payment landscape.

That sentence costs tokens and says almost nothing. You’ve seen the tells: “delve”, “robust”, “seamless”, “it’s worth noting”, “not only X but also Y”, and a summary at the end of every section.

Wordy pages hurt the formula twice. They raise RR, because every read costs more. They also lower nn for people, because people stop reading pages that sound generated.

The fix is to give the agent a writing style, the same way you give it coding conventions. I use a skill based on ASD-STE100 Simplified Technical English.2 STE is a controlled language from the aerospace industry, designed so that maintenance manuals can’t be misread by someone working on an aircraft, whether or not English is their first language. It keeps sentences short, gives each word one meaning, and prefers active voice and common verbs.

Strict STE reads like a manual. The skill uses a loose version:

  • Short sentences, about 10 to 25 words, with one main idea each.
  • Common words. Use, not utilize. Help, not facilitate. Keep real technical terms, and explain them if needed.
  • The same word for the same thing, every time.
  • Explain why, not only what. Add a plain-English sentence after anything hard.
  • No filler and no AI tells. No “in order to”, no “robust”, no em dashes, no summary paragraphs.
  • Keep every fact. Simplifying must never drop a number or a name.

Here’s the refund sentence again, after the skill:

The refund service retries failed payment requests up to three times. This handles short outages without failing the refund.

And a decision page, before:

After careful consideration of several potential approaches, the team ultimately decided to move forward with utilizing ApiError, which provides a powerful and flexible foundation for error handling across the codebase.

After:

All API errors use ApiError, because the frontend maps its error codes to customer messages. Rejected: plain Error, which would force the frontend to parse message strings.

You can use the skill as is: technical-rewrite.txt. Save it as .claude/skills/technical-rewrite/SKILL.md, or paste it into any agent’s instructions, and add one line to AGENTS.md:

1
Write wiki pages using the technical-rewrite skill.

Click through it

A folder of markdown files isn’t a wiki. Ward Cunningham’s first wiki, in 1995, was a set of editable pages that linked to each other.3

Two ways to hold what an agent knows. On the left, a flat folder of markdown files in a repo with names like notes.md, api-notes-2.md and misc.md, which leaves you guessing which one to open. On the right, a hierarchy you click through: Architecture links to Backend, Backend links to API, and API links to the Refunds endpoint page, which holds its status, decisions and open questions. The breadcrumb reads Architecture, Backend, API, Refunds.Flat files in a repoAGENTS.mdREADME.mdnotes.mddecisions.mdapi-notes.mdapi-notes-2.mdbilling-refunds.mdTODO.mdarchitecture.mdsession-0412.mdmisc.mdWhich one do I open?A hierarchy you click throughArchitectureFrontend·Backend·DataBackendAuth·API·JobsAPIErrors·Refunds·WebhooksRefunds endpointstatus · decisions · questionsArchitecture › Backend › API › Refunds

Most repos end up on the left: notes with names that made sense to whoever wrote them, opened until you get lucky. On the right, you start at the architecture, click down to Refunds, and land on one short page with that feature’s status, decisions and open questions.

For people, a hierarchy is the difference between reading the wiki and not. A flat folder gets opened once and ignored. Make the top page a visual map of the architecture where every box is a link, and have every page below it link up and across.

For agents, it’s a cheap index. Walking a shallow, wide tree costs a few thousand tokens, where loading everything costs hundreds of thousands.4 It also shrinks NcN c: a session working on refunds reads only the index lines on the path to refunds.

Links also make the wiki checkable. Link each decision to the session or pull request it came from, so you can confirm the agent’s summary matches what was actually said. And mark each decision as decided, proposed or replaced, so an agent doesn’t treat a half-finished idea as a rule.

Catching wrong pages

The formula assumes every page is right. A wrong page flips the sign. Instead of saving FF each time it’s read, it does damage, and it keeps doing damage until someone notices:

D=h k D = h \, k
VariableWhat it is
DDThe total damage a wrong page does
hhThe harm each time a session acts on it, such as a wrong refactor someone has to undo
kkHow many sessions read the wrong page before someone fixes it

Agents trust the wiki, so they won’t lower kk on their own. People have to.

This is where being able to see the wiki pays off. Every person clicking through it is another chance to catch a wrong page early, fix it in a pull request, and have the next session read the fix.

Serve it as a site, so it’s one click away:

  • From main: what’s true now. This is the version for the team and new hires.
  • From staging: what the agents believe right now, including unmerged work. This is the version for checking their reasoning in progress.

What goes wrong

The biggest risk is a page that sounds right and isn’t. Agents write the wiki by summarising their own sessions, and now and then they’ll summarise a decision nobody made. Source links are the cheapest defence, because they put every claim one click away from where it came from. That keeps kk small.

The other risk is growth. Agents like writing, and a codebase is never finished, so a wiki left alone only gets longer until NcN c swamps everything else. Review wiki changes in the same pull request as the code, delete pages once they stop earning their place, and every so often have an agent check the wiki against the code for claims that are no longer true.

Not every task needs a write-back. Let the agent skip it for small fixes.

How it compares

The closest neighbour is spec-driven development, in tools like GitHub’s Spec Kit and Amazon’s Kiro.5 You write a spec before any code, the tool turns it into a plan and tasks, and the agent implements them.

Spec-driven development compared with wiki-driven development. On the left, spec-driven is a one-way pipeline: a spec written once up front, then a plan derived from it, then tasks, then code. The code keeps changing, so the spec drifts out of date. On the right, wiki-driven development puts the wiki in the middle. The agent reads and writes it, and you read and edit it, every session, so the wiki moves with the code.Spec-drivenSpecwritten once, up frontPlanfrom the specTasksfrom the planCodekeeps changingout ofsyncOne pass. The spec doesn't move.Wiki-drivenAgentdoes the workreads, writesThe wikichanges every sessionreads, editsYouset directionEvery session. The wiki moves with the code.

That works for a feature with clear edges. But the spec is written for the agent to execute, not for you to read, and it’s fixed at the moment you wrote it. Once the code starts moving, nobody goes back to it.

Wiki-driven development is simpler. There’s no up-front document and no required format. The agent writes the wiki after the work, from what actually happened, and writes it for you. When direction changes, you edit a page.

The two can work together. Write a spec for a large feature if you want one. The decisions you make while building it go in the wiki.