cd /news/ai-agents/wiki-driven-development · home › topics › ai-agents › article
[ARTICLE · art-178526] src=abduldavids.co.za ↗ pub= topic=ai-agents verified=true sentiment=↑ positive

Wiki-Driven Development

A practice called "wiki-driven development" proposes that coding agents maintain a short, linked wiki in the repository recording what they decided, rejected and left open, so each new session starts from the human's edit rather than from scratch. The author, adapting an idea from Andrej Karpathy's LLM Wiki, offers a cost formula for deciding when a page is worth writing: a page pays off when the savings from reuse exceed the cost of writing and maintaining it plus the per-session index cost, illustrated by a flaky-test example where a 40,000-token investigation is replaced by a 500-token read. The author argues the wiki complements AGENTS.md — which answers how the agent should work, while the wiki answers where the work stands — and warns that agent-written "slop" costs tokens and buries what matters.

recommendation

Have coding agents maintain a one-screen-per-page wiki of decisions, rejected options and open questions, and prune any page whose write and index cost exceeds its reuse savings.

more in playbook: Designing agent systems
read9 min views9 publishedNov 30, 2026
Wiki-Driven Development
Image: source

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.

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,<sup>1</sup> 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:

Let’s break it down.

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

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

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

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

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 , and the total number of future sessions . That gives the full formula:

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:

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 : write it down. Anything that took real work to find is worth a page. For people, is even bigger, because the alternative is reading old transcripts. Most won’t, so they guess.
  • : don’t. A fact that won’t be needed again belongs in the pull request.
  • : 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 : shorten it. Keep pages to one screen.
  • Large : 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 , because every read costs more. They also lower 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.<sup>2</sup> 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

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 everything costs hundreds of thousands.<sup>4</sup> It also shrinks : 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 each time it’s read, it does damage, and it keeps doing damage until someone notices:

Variable What it is
The total damage a wrong page does
The harm each time a session acts on it, such as a wrong refactor someone has to undo
How many sessions read the wrong page before someone fixes it

Agents trust the wiki, so they won’t lower 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 small.

The other risk is growth. Agents like writing, and a codebase is never finished, so a wiki left alone only gets longer until 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.<sup>5</sup> You write a spec before any code, the tool turns it into a plan and tasks, and the agent implements them.

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.

  1. Andrej Karpathy, LLM Wiki , April 2026.↩︎
  2. ASD, ASD-STE100 Simplified Technical English .↩︎
  3. WikiWikiWeb , Wikipedia.↩︎
  4. Context engineering is memory management .↩︎
  5. GitHub, Spec Kit , and Amazon,Kiro .↩︎
── more in #ai-agents 4 stories · sorted by recency
── more on @andrej karpathy 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/wiki-driven-developm…] indexed:0 read:9min 2026-11-30 · —