The Five Basic Considerations
A card for each rule, with the chapters that go deeper named at the bottom of it. The rules themselves are listed in the introduction.
1. Spec before code
Spec is cheap; write a lot of it, in markdown only.
What to expect from the machine
Expect it to forget. Every session starts cold, and what the model knows about your project is what’s written down where it can read it. Expect it to build whatever the page says, and to fill whatever the page doesn’t say with a confident guess.
Expect it to work best from plain text. Markdown in the repository is read in full, versioned by git and diffed line by line. A slide deck, or a wiki page it can’t reach, doesn’t exist for it.
Expect it to read git, the record of every change to the project’s files, for itself: what changed, when, and in what order. It can find the day a function appeared, or prove one never existed, so none of that has to be written down twice. What git cannot hold is the reason. A change shows what moved; only a commit message or a spec says why. So write the why down, in the spec before and in the commit after. Commit small, and say what each commit is for; uncommitted work is invisible to tomorrow’s session, and “fix stuff” tells it nothing.
What your people should expect
Expect to write more than feels necessary, and to see it read. The purpose, who it’s for, the known cases, the doubtful cases and what’s out of scope all go on the page before anyone builds.
Expect setup code early: the project skeleton, the build, an empty test harness. Expect nothing that embodies a decision until the page makes it.
What to expect from the project
A page of spec costs minutes. A page of wrong code usually costs far more, including the time to unmake it. The spec is the cheapest place in the project to change your mind.
Record the why in the spec and in the commit, and tomorrow’s session starts where today’s stopped, instead of asking you the same question again.
Deeper: The Spec Nobody Wrote Down, Don’t Hoard Code.
2. The machine asks; people answer
Buy the questions first. The answers come only from people, and their time is the scarce resource.
What to expect from the machine
Expect questions, not answers. Given a thin request, a model can tell you quickly and cheaply what’s missing: what’s ambiguous, what it would have to assume, where two parts of the request pull against each other. No one writes a request that complete, and finding the gaps is something a model does well. It costs cents.
Don’t expect it to know your business. Ask it something only your people can answer and it will still answer, plausibly and well. So set the expectation up front: at this stage the model’s job is to produce questions, each one with the assumption it would make if nobody answers.
What your people should expect
Expect to be asked specific things. Not “tell us about your process,” but a list: one decision per line, a concrete case, and the model’s guess beside it. Most lines get a yes. The ones that get “no, and here’s why” are the exceptions, and people often manage the exceptions. That’s why these people are the ones asked.
Expect it to be short: an hour with a list, not a week of explaining from scratch. And expect to see the answers again, written into the spec, so they can check they were heard.
What to expect from the project
A question costs cents. An answer costs an hour of someone senior. Code built on a wrong guess costs days, and more to unmake. Buying the questions first means buying the cheapest thing in the project so the expensive things get smaller.
Expect rounds. Answers raise new questions, so run the list again after each round, and stop when the new questions are about details nobody would argue over.
Deeper: Let the Machine Ask, The Spec Nobody Wrote Down.
3. Turn the reading into tests
Let the model read the spec and hand back tests. Tests teach, check and judge, and they outlast the code.
What to expect from the machine
Expect it to have read much of the public spec already: HTML, the RFCs, parts of the EDI standards, many regulations. Expect it to compress that reading into tests, one small test per rule, edge case and ugly corner, faster than anyone could read the first chapter.
Expect its tests to be small, single-purpose and easy to check. If you want to see code you can judge quickly, ask a model for unit tests.
Don’t expect the tests to be right because the machine wrote them. Run them against a second library or real input, and look hard at the ones that disagree.
What your people should expect
Expect to read tests instead of the spec. A test is a rule you can run: it says exactly what goes in and what comes out. A good suite is the fastest way to learn what a format really does.
Expect tools to be chosen by what passes, not by what their documentation claims.
Expect the code to be replaceable. Saved snippets are not an asset; the code can be regenerated from the spec and the tests.
What to expect from the project
Expect the tests to outlast the code. They’re the running record of what the system must do, and they keep checking long after the code that first passed them has been rewritten.
Expect the cadence to change. On a traditional project, writing the code fills most of the schedule and the tests trail behind it. Here the order turns over: a long start of spec and questions, a short build, and then a suite that checks every rule on every change. A full suite can run to thousands of tests. Progress stops being measured in code written and starts being measured in rules passing. The slow part becomes people reading the failures and deciding what each one means.
With a legacy system, expect the idea to run backwards. Characterization tests pin down what the old system actually does, input by input, before anyone changes it, and every place the new system disagrees with them becomes a question for a person, which is rule 2 again.
Deeper: The Tests Are the Textbook, Don’t Hoard Code, The Shadow on the Wall.
4. Spend big once, at the gate
Use everyday models for drafting; before anything is built, the whole package goes to the best reviewer available.
What to expect from the machine
Expect everyday models to draft well. Specs, questions, notes, tests: this is volume work, a cheaper model is good enough, and you’ll iterate anyway.
Expect the best model available to find what the drafting missed, if it comes to the package fresh. Expect the model that helped write the spec to share its blind spots. It is poorly placed to review its own work.
Expect a review, not orders.
What your people should expect
Expect a gate. Nobody generates anything but setup code and tests (throwaway prototypes excepted, and marked as such) until the spec has been blessed by everyone who has to live with it. Then the whole package goes to the reviewer: the spec, the questions and their answers, the tests, the project notes. Send the distillate, not the churn: the finished spec, not the forty chats that produced it.
Expect to read the whole review and decide each point on purpose. Not everything it says needs doing.
What to expect from the project
A strong model reading a fifty-page spec costs a dollar or two. A week of rework costs far more. Expect the spending to be uneven on purpose: cheap and often while drafting, dear and once at the gate.
Deeper: Blessed by Everyone, Spending Tokens Wisely.
5. Stop when it’s going in circles
If the third patch doesn’t fix it, stop. The model is confused, and the confusion is information.
What to expect from the machine
Expect it to circle when it has been handed concepts that don’t integrate. Neither a person nor a model sits down to write bad code. The model is trying to honor all of the concepts at once. Each patch serves one and breaks another, and the same failure comes back in a different form.
Expect to recognize it: the same failure returning in a new form, a fix that needs a fix, the model apologizing and quietly reverting to an earlier version. Any one of these on the third attempt is a sign to stop.
Expect it to show you where it’s stuck, if you ask. Have it state the goal in its own words, then set that beside what you meant. The difference between the two is the missing or contradictory line in the spec.
Don’t expect it to decide which concept governs. It can tell you it is stuck; it can’t settle the question.
What your people should expect
Expect the strategist to step in. Deciding which concept governs is a call for a person with authority over the outcome: this concept rules here, that one rules there, and this is the boundary. Often the answer is to partition: separate the cases up front and give each its own rules, instead of asking one piece of code to reconcile them all.
Expect the fix to go in the spec, not the code. Fix the spec, throw away the patches, and regenerate from the corrected page.
What to expect from the project
Expect every round to cost tokens and to move the code further from the original intent. Each round is billed, and the context only grows. Stop spending.
Don’t expect it to be a verdict on the plan. A plan that circles is often unfinished, not wrong. Often a decision was never made about which concept wins, or where one stops and the other begins. Circling often points to where the spec is thin, so go back to rule 1.
Deeper: The Unplanned Agent, What the Model Needs From You.