Until now this repository has collected a little over three thousand commits, and agents wrote most of them. Whenever something went wrong, I blamed the agent, usually out loud and usually late in the evening (and usually with Russian profanity).
Last week I scanned the changelog from the beginning. The agent came out of it rather better than I did. In almost every case it had done exactly what I asked. The trouble was what I had asked.
Two old questions fit moments like this, and each is the title of a long novel: who is to blame, and what is to be done? Neither novel was written with pull requests in mind.
Who is to blame
I once wrote a prompt for our pricing pages that told the model to be specific with numbers. A few lines further down, the same prompt listed phrases that would cost a page quality points, and "contact for pricing" was one of them.
For vendors who publish no prices at all, I had given two orders that could not both be followed. A person would have come back and asked which one I meant. The agent found the only way to obey both: it invented the numbers.
Fifty-seven published pages told readers what buyers had actually paid, "according to Vendr transaction data from 45 deals". We hold no such data, and none of our sources mentions Vendr.
The worst part: these pages scored 100 out of 100. Invented numbers are specific and confident, so they passed every other check we had.
Of course, this is fixed now, but a bad taste lingers. The key point of this example is that it was I who wrote the prompt that could not be obeyed...
What is to be done
I read the vendors' guides after all this, which is the usual order in which people read instructions. Anthropic's AI-native SDLC playbook and OpenAI's Codex best practices say almost the same things: plan before you build, keep a short file of house rules, and give the agent a way to check its own work.
Most of what I changed happens before the agent writes any code. Each feature now goes through the same steps, and each step leaves a markdown file in the repository.
First I write the intent: the problem, the result I want, what is out of scope, and the constraints. The out-of-scope part matters more than it looks. Without it, an agent will quietly solve a few neighbouring problems as well. Then come the requirements, then a design, and last a technical specification that an agent can build from. The pricing calculators went this way. Their folder holds the requirements, the design and technical requirements, an implementation plan, and a record of what was actually done.
The change that helped most is also the smallest. The Codex guide splits a task into four parts: the goal, the context, the constraints, and a line it calls "done when". I now write that last line first, as something a reader of the page would see. Our plan tracker says it in as many words: "Do not mark a step Done merely because a script exists or a database write succeeded."
Then one agent builds and another one audits the work. Usually Claude implements and GPT-Astra audits, as I described in my last post. This gives much better results, and I feel much more confident that the site has the quality I expect. A prompt with two orders that cannot both be followed is exactly the kind of mistake a second reader tends to catch.
Conclusion
The novel that asked "What is to be done?" needed several hundred pages to answer it. My answer is shorter.
PS. I still read far more of what it writes than I would like, which I wrote about in my last post. The claim of Anthropic is that with Opus 5.5 it gets better - a bit better, but not enough yet.