Skip to content
Software Natives

§ Why coding · Part 3 of 3

Does it hold?

Why coding, part 3 of 3. Part 1 put the why beyond the spec; part 2 showed how the work should run. This part asks whether the idea holds, and what it stands on.

My answer, up front: describe the world around the system, and let the agents work out the system. By the world I mean the people, their whys, the environment and its hazards. The tests below are how I got there, and the close comes back to it.

First, what this part is and isn’t. I’m a practitioner, not a scientist, and this is not a controlled study. It covers one owner, me, and three projects. Two are the main ones: Butler (as I’ll call my own assistant for work and family, the tool from part 2) and a client project in a regulated field, which part 2 called a customer project. The client project was research and development: much of it was finding out what is possible at all. The first tests ran on the project I started with: the tool from part 1 that helps me run several agent sessions at once, which I’ll call the session tool. Claude built, ran and judged nearly all the tests below; I checked some of its judgements myself. So read the numbers as directions, not proof. That holds for every result below, so I won’t repeat it each time. Where a claim is only a gut feeling, I say so on the spot. I’d like others to test the same things on their own projects.

From part 1: a why is the reason behind a what, a what is what the system must do, and a how is how it is built. A root why is one found by asking why until the environment drops away. Three more words come up throughout. A definition is what I hand the agents for a project: my whys and their ranking, the environment, the hazards and the whats. It takes the place of the project spec in spec-driven development. A judge is an agent that assesses a result: it scores a build, or counts something in a text. Quality is the share of the whats a build took on that the judge accepted, with the full definition set to 100. All numbers below are as of the 23 November snapshot of Butler’s definition.

Describe the world, not the system

Part 2 named two inputs: your whys and the environment. Here I count four: the people, their whys, the environment (what is true there) and the hazards (what they’re afraid of). Part 2 counted the hazards as part of the environment; from here on I list them on their own, because the tests treat them separately. Requirements engineering said long ago that requirements live in the world, and the system is what makes them true there (Zave and Jackson, 1997).

Such a description holds almost no hows. In Butler’s definition, written whys first, a judge agent found fewer than one how in a hundred lines. In the what files of public spec-driven projects, it found 30 to 43; a second judge found 20 to 36.

Hows per 100 lines of “what”, as counted by two judges. Butler, whys first: 0.3 and 0.0. Client project: 4.8 and 1.6. Spec Kit specs, 50 public projects: 29.6 and 20.4. Kiro requirements, 50 public projects: 43.0 and 36.3.

What I have tested so far

I started with the session tool, which I wanted for myself before Butler: something that saves my brain power while I run several agent sessions in parallel. Instead of describing the tool, I let an interview agent ask me nothing but why, chain after chain, until eight root whys were left.

Then I handed only the whys to a fresh agent that had seen nothing else, and it built a mockup. With whys alone, it built the right kind of tool for an invented world. That caught my attention: with so little to go on, it even came up with whats I had not thought of. It made me wonder whether restricting agents, in the creative parts or where I don’t know the answer myself, was a mistake. Once I added the environment, the tool fitted my real setup, its containers, customers and machines. The whys decided what kind of thing got built; the environment decided the details.

The question that mattered most was whether the whys carry intent. So I gave the same ranked whys to three agents, each isolated in an empty folder with no web access, and a fresh agent judged the three builds blind. The agents were Claude models, mostly Opus 5.5, and for cross-checks OpenAI’s GPT-6.

  • Same whys, same kind of tool. All three builders made the same kind of tool: one that supervises delegated work, which runs isolated, is reviewed, then applied or undone. Their scores per why differed by at most one point on a scale of zero to three.
  • Flip the ranking, get a different tool. With the ranking of the whys turned upside down, the builders made a different kind of tool instead: the friction ledger from part 1, a log of what slows the work down. Judge agents then looked at each build without being told which ranking it came from. Across 23 builds from five models, they guessed the ranking right every time. So the ranking is not a detail: it shows in what gets built, clearly enough to read back from the result.
  • The top position steers. All whys were ranked. Moving just one of them to the top, a why that clashed with none of the others, was enough to change what the builders made: tools that record the work instead of letting me check it first or undo it. A judge from another model family, GPT-6, sorted all six builds of this test to the right ranking, even from their behaviour alone.

So far, the whys and their ranking decided what got built, nearly every time and across models. Put in the terms of quality engineering: the whys and their ranking held down the variation in what got built, and flipping the ranking moved its centre. But the tests were small: a few builds per case, only my own whys, with a ranking I had confirmed only in part, and agents rather than people as judges, so the measuring instrument itself still needs checking.

Two later tests sharpened this, one here and one in the next section. In the client project, 12 builds got the same whys, half with my rankings and half with every ranking flipped. Two judges from different model families put all 12 in the right group.

Where the whats are silent, the ranking decides

So far, only whys. Now the whats come in. As part 2 said, I mark every what in Butler as a must, one that has to hold, or a best effort. Flipping a ranking changed nothing where a must already settled the case: 0 of 40 times. Where no must did, the ranking decided. With my ranking “interrupt me when unsure”, the build system interrupted me in 4 of 5 open questions; without that ranking, in 0 of 3. So in this test, the ranking steered in the gap the musts left.

Add what you’re afraid of

If you give agents only your whys, they build what you want, but they skip the safeguards. Tell them what you’re afraid of as well, and they build far more of what must never fail: in my test, 60 instead of 23 percent. Here is how I tested it: I gave builders different parts of Butler’s definition, three builds each, and a judge checked every build against the 302 whats of the full definition. Ten of those are core musts: the few that must never fail and that hold across the whole system, such as “nothing that needs me is forgotten”, which runs through my calendar, papers, messages and chores at once. The other whats each cover one situation, such as a reminder on collection day to put the rubbish out. Three builds give 30 chances at the core musts. Some builders also got my hazards, the things that can go wrong, as in part 2. With whys and the environment alone, which the tables call “Whys only”, the builds covered 23 percent of the core musts. Adding my hazards, 60 percent. With the full definition, 83 percent.

Core musts built (%), of 30 (10 in each of 3 builds). Whys only: 23%. Whys and my hazards: 60%. Full definition: 83%.

“I forget to put the rubbish out before it’s collected” is a hazard. The why behind it: nothing slips through. The must that answers it: on collection day, a reminder in time to still do it, and none once the window has passed.

So how do you find your hazards? Not with a plain “what can go wrong?”: that question found none of my 71. Real situations did. I had an agent trace each one back through the transcript of my why session. 45 percent came from my own stories and use cases, 39 percent from the agent walking me through more than 20 people and things around the system, my customers, my family, my devices, whoever builds it, and asking what happens when each one fails. 13 percent were agent suggestions I confirmed, 3 percent came from a why question, and none from a plain “what can go wrong?”. The walk caught everyday slips; my stories caught data, backups and who can reach my server. One lesson for the interview: when the agent asked whether the list was complete, I said yes. Then we went through my own use cases, and those added seven more hazards. So don’t ask whether anything is missing; walk through real situations.

Where my 71 hazards first came up, in percent of the hazards. My own stories and use cases: 45%. The agent's walk through people and things: 39%. An agent's suggestion I confirmed: 13%. A why question: 3%. A plain “what can go wrong?”: 0%.

You don’t have to write every what

In the client project, one what ruled out the obvious way to do the tool’s main step, to protect private data. I never said what to do instead. The agents first found a workaround that worked but was more than ten times slower. Then they found a direct way that was fast, and checked it 51 times without a miss. Nobody knew that way up front, so nobody could have written it down: the what set the limit, and the agents found the how. That is why I think why coding fits research and development: nobody needs to know the solution up front. Whats emerged too. One case my definition left open: what should the tool report when it cannot tell whether a step worked? The agents decided it from one of my whys, never to hide a problem: such a step is reported as unconfirmed, never as done. That makes the tool look less good, but my ranking put the why first. My gut feeling, not yet tested: you don’t have to settle every what up front. You write down the musts; what you leave open, the agents work out from your whys and their ranking, without breaking a must. Even where you mean to write every what down from the start, I expect two gains. First, a what you forget still has a chance: the agents can work it out from your whys and their ranking. The interrupt test above points that way: where no must covered a case, the ranking decided it. Second, and probably the bigger gain: a definition without hows should be much smaller.

What each part of the definition is worth

Whys and hazards, with no whats at all, reached about 68 percent of the full definition’s quality with less than half the words. The list and the table below show what each part of the definition adds:

  • Whys and environment: quality 64 (the full definition is 100); core musts only 23 percent; wrong turns 16.
  • Plus the hazards: quality barely moves, to 68; core musts rise to 60 percent; wrong turns drop to 6.
  • Plus the whats: quality rises to 100; core musts to 83 percent; wrong turns drop to 2.
  • The environment and hazards, without the whys: quality about the same as with them; fewer core musts; more wrong turns. So the whys add little to the score, but they bring more core musts and fewer wrong turns.

A wrong turn is a what that a build did differently than I would want, or against one of my whys, counted over all three builds.

What the builders gotStatements (words)Quality of what was built (full definition = 100)Core musts built (%)Wrong turns
Whys only3,936642316
Whys and my hazards5,15468606
Full definition11,938100832

Statements are the one-line items themselves; the files also hold ids, links, labels and notes. Quality looks only at the whats a build took on: how many of them the judge accepted, compared with the full definition, which is set to 100. So 100 is not perfect, it is the full definition’s level; how much was covered shows in the core-musts column. In short, quality measures how closely a build follows my list of whats, not whether I would be happy with it: a good idea that isn’t on the list earns nothing. “Whys only” means my 40 whys and their ranking, about 500 words, together with the environment: the people, facts and actors around the system, but not my list of hazards, and no musts. The hazards weren’t gone entirely, though: each of the 32 actors in the finished definition is described by one line on what can go wrong with it, so these builders still had the actors’ hazards, as 32 headlines. And each row is only three builds, so small gaps, such as 64 against 68, mean little. What stands out is the big jump in core musts: from 23 to 60 percent once the hazards came in.

The judge was strict. In 16 cases I judged myself, I agreed with it 11 times, and where I didn’t, I was the more lenient one every time. So the judge did not make the builds look better than they were.

Small enough to hold at once

My definition files hold about 60,000 words, but most of that is bookkeeping: ids, links and labels, and my own notes on how each item came about. What I actually decided are the one-line statements: about 12,000 words for the whole system, a few hundred per area, and only about 500 of them are my whys and their ranking. I didn’t type or read them, though: I talked them through by voice, and the agent wrote them down. That is a side effect of the why session I hadn’t planned: defining the system was a conversation, not a reading task. To get a feeling for these numbers, I looked at public Spec Kit and Kiro projects on GitHub. In a typical Spec Kit project, a single feature’s spec is about 2,200 words, and all its specs together about 119,000. It’s only a rough comparison: their full files against my statements. And Butler isn’t finished yet, so we’ll see how much its definition still grows.

Size matters for a second reason: what an agent can hold at once. My whole definition, bookkeeping included, fills about a tenth of what today’s large models can read in one go. So an agent can hold my whole world description at once, fresh every time. I believe that is what a human architect tries to do: understand why the project exists and all its whats, find a good architecture, and then hand the teams their part piece by piece, as whats. The architect keeps everything in mind except the details, the hows. Why coding works at that level too: I define the whole system in one go, not feature by feature as the specs above do, with everything except the hows. And because an agent holds all of it, it can check the whole definition before anything is built. When one cross-read mine for clashes between whats, it flagged ten; none was a real conflict, each was wording that didn’t carry what I meant. A cheap check, worth running before the first build. (As a side note: I ran it after the 26 conflicts from part 2 were settled.)

Check the few things that must never fail

This section ends at proof, but it starts one step earlier, with asking. Do agents ask when a decision is yours? In the client project, they did. Two things I defined steered that build: the definition of the product, and what I call the factory (a set of agent roles and rules for how the work runs), which I set up quickly, using parts of this method, from my whys. On the first evening, the agents put 11 questions to me, and 8 of them they could have answered themselves. So I gave the factory a rule on asking, in short: ask me only when no what settles the question and you can’t derive the answer from my whys, their ranking and the environment. The customer’s contract was part of that environment, as one constraint in the definition. After that, they only asked me about decisions that were mine to make: questions of permission and risk. They made ten product decisions on their own, and I kept all ten. So asking is part of the process: give the agents a rule for when to ask. It also means I don’t have to write down every what, only the ones that matter to me; the rest the agents decide. But asking only covers the calls an agent knows are yours. The few core musts, the ones that must never fail, I don’t leave to that: for them I want proof.

Proof of behaviour, not code. What counts as proof depends on the system: for a database system, test results or the data before and after; for a machine, a measurement; for an app that works through screens, a recording of it doing the work. In the client project, which isn’t finished yet, I sit down with the app myself and try it out, to see how it behaves. And screen recordings of the system at work are a large part of what I review, along with some of the data it produces. A recording shows only the cases it shows, though. Core musts run through the whole system, so their proof has to cover everywhere: an attack on everything the system does, not only the cases the must names. In the client project, a demo app that drives the system does this: it measures times, tests timeouts, and clicks around in the app while a long task is still running.

Old ideas, new workers

Largely, this is old ideas with agents. Apart from the grill-me skill listed below, I found them only afterwards, when I looked for similar work. It was reassuring to see that others had walked this path long before me.

  • Describing the world. Requirements engineering formalised this in the 1990s: requirements are met by a specification together with facts about the environment (Zave and Jackson, 1997).
  • Asking why, and turning hazards into requirements. In the KAOS method, asking why climbs a graph of goals (van Lamsweerde, 2001), and obstacle analysis turns hazards into new requirements (van Lamsweerde and Letier, 2000). The i* framework models what other actors want. Since I came across KAOS, I intend to run a why session that follows it more closely.
  • From needs to measurable requirements. Six Sigma’s critical-to-quality (CTQ) tree breaks a customer’s needs down into measurable requirements. Quality function deployment (QFD) goes further in its House of Quality (Hauser and Clausing, 1988): it weighs the needs by importance and, in the house’s roof, shows where technical characteristics work against each other. QFD texts commonly call the needs “whats” and the technical answers “hows”, so its whats sit where my whys do. Both start from the customer; in why coding, others’ whys and nature count too, and agents derive the whats.
  • Why and how as directions. Rasmussen’s means-ends hierarchy (Rasmussen, 1985) and the how-why diagrams of value engineering use the same logic.
  • Leading by intent. Mission command, Auftragstaktik in German, gives the purpose and the limits and leaves the how to the people on the ground. In a company the why tends to fade on its way down. With agents it can reach every level intact.
  • Agents that interview you. Matt Pocock’s grill-me skill, which makes Claude Code question you about a plan before it starts, was the direct trigger for why-me, the interview skill that runs my why sessions.
  • Testing against a simulated machine is virtual commissioning, and tracing evidence back to goals is what safety cases do.

My claim is narrow, and a gut feeling. What may be new is not the ideas but how much of the work agents can take on: they lead the why session, derive tests, and build the code again when my whys or the environment change. I still give the whys, rank them and check the result. If agents make the rest cheap, these ideas may pay off in many more projects than before.

The strongest objection

Twenty years ago, model-driven engineering promised that we would draw models and generate the code. It rarely generated whole systems; teams used it for parts, and success depended more on organisation than on tools (Whittle et al., 2014). Three problems keep coming up: models had to be as precise as code, people edited the generated code until the models drifted, and tools locked them in.

With why coding, I try to answer these three problems. Models had to be precise; a why may be incomplete and in plain language, because the agent fills the gaps with judgement. Some of the precision comes back in the musts, but they say what, not how. Models drifted from the code; here you fix the inputs rather than the output, and watching the behaviour shows where it went wrong. Tools locked people in; the inputs here are plain text that any person and any agent can read.

Where it might break

Whys can be too vague to carry intent, and only more tests like the ones above will tell. Where software drives a machine, tests against a simulator only show the simulator’s model of it, and building one is a real upfront cost. Behaviour you cannot watch, such as performance or security, has to be measured or attacked instead. Checks show that the software does what the whats say; they cannot show that the whats, and the whys behind them, were right or complete. That needs a second loop, back from use: measuring whether the software served the people whose whys it carries, and revising the whys when it did not. For Butler, that means counting what I still forget although every check passes. I have not built that second loop yet. Three more things I haven’t tried yet: several owners ranking their whys together; which of the whats the agents derive I still have to read and confirm, and which I can leave to them; and changing a why in a system that is already running.

The tests above add limits of their own. One owner, three projects, most tests on two of them, and agents as builders and judges. The judge scored each build against my list of whats, so a next test is to judge some builds myself, without knowing what the builders got, and simply ask: would I accept this? Many of my hazards were worded by the agent, not by me. And I had expected the hazards to come from the people who use a system. That held for Butler, where I am the user, but not for the client project: there, most hazard lines were technical, and agents raised most of them.

How to start

Part 2 describes the loop. Based on my experience so far, I would start like this:

  1. Let an agent ask you for whys until the answers stop bringing new ones. The why interview gives you the whys and their ranking, which the tests above are about. It won’t give you all your whats: in my own sessions, only about one in twenty first came up while asking why; the rest came from later steps, the walk through people and things, my own use cases and the checks. So move on to those later steps.
  2. Then walk the people and things around the system, asking what happens when each one fails, and tell your own stories and use cases. This gives you two things: the list of people and things becomes your environment, and what can go wrong with each becomes your hazards.
  3. Let an agent draft the few core musts from your hazards, and confirm them: the ones that must never fail and that hold across the whole system.
  4. Let the agents derive the rest and build, following the loop from part 2. Give them the rule on asking from above. And give the coding agents the whys too, which part 2 did not: where the whats leave a gap, the whys and their ranking decide.
  5. Review proof of behaviour, and what the agents left out and why.

So, why code at all?

My gut feeling, which the tests above don’t prove: we will write no code at all and explain why more. Code still matters: it has to be debugged, tuned and maintained, but agents do that, and we look at it only where we care how something is built. But the why becomes the main input, because the whys and their ranking are the one part no agent can supply. Root whys may also travel much further than code: anyone could take the same whys and derive their own software for their own environment. That is a separate claim, and a subject for another time.

The builders did best when they also had the whats, and those came out of the same why sessions: agents first proposed more than half of them, and I confirmed them. So the whats still come from the world description; I just check them. That brings me back to the line I started with: describe the world around the system, the people, their whys, the environment and its hazards, and let the agents work out the system. That is where the tests above point.

If you want to try why coding, start small: one internal tool, one why session, and a comparison with how you would build it today. Compare how much you had to write or say, how often the result went against you, and how often the agents asked you. I would like to hear how it works out for you, and where it doesn’t.