Make the AI read the manual first
AI wrote 20% of our codebase by the end of 2023. The fix for its inconsistency was documentation: standards and decisions it must read before coding.

In October I wrote that we’d put AI into every codebase at 360Freedom. Three months on, here’s the number I promised: by the end of 2023, AI was responsible for 20% of our codebase. That’s a different measure from the “nearly 40%” GitHub quoted for code in files where Copilot is enabled. Ours is a share of the whole codebase, including all the files nobody touched. So 2024 starts with the obvious next step, and it isn’t a bigger model. It’s documentation.
The problem isn’t capability, it’s consistency
Once AI is writing a fifth of your code, you notice something that’s easy to miss at a smaller scale. Language models don’t give the same answer twice. Ask for the same feature on Monday and Tuesday and you’ll get two reasonable solutions that don’t match: different naming, a different way of handling errors, perhaps a different library for the same job. Each piece passes review on its own. Together they make a codebase that feels as if twenty contractors wrote it, none of whom met. Human teams solve this with shared habits and a lot of “that’s not how we do it here”. A model starts every session with no habits at all.
Writing the habits down
So we’re writing the habits down, and we’re using AI to do it. AI is now generating our code standards, our documentation and our technology decisions. The decisions matter most, because they record why things are the way they are. The format owes a lot to Michael Nygard’s architecture decision records: a short note giving the context, the decision and its consequences, kept alongside the code. Nygard’s advice that “large documents are never kept up to date” applies doubly when the reader is a model: short, specific documents beat long, aspirational ones.
The twist: the AI has to read them first
But wait, documentation is the thing every team writes and nobody reads. Here’s the rule that changes that: before generating any code, the AI is forced to read the documentation. Not encouraged, not offered it as background: required. That turns the documents from a reference into a contract. The model writing a new feature today follows the same standards, the same patterns and the same decisions as the one that wrote the last feature, because both read the same pages first.
What it means
Effectively, this means the source of truth moves out of people’s heads and out of individual prompts and into documents that sit in the repository. The goal is a consistent outcome every time. Writing for a model also changes how you write. “Use common sense” means nothing to it; “errors are returned, never thrown, and here’s an example” means everything. The documents get shorter, more explicit and far more useful to the humans who read them too. What it does not mean is that documentation makes the model smarter. It makes it predictable, which at 20% of a codebase is worth more.
My take
I think documentation is the most underrated engineering asset in the industry right now. For years it was a nice-to-have that lost every fight with a deadline. Now it’s an input to production. Teams with good written standards will get far more out of the same models than teams without, and most of them won’t realise that’s why.
So isn’t this just documentation?
Yes, and that’s the point. The practices aren’t new; the reader is. Documentation used to fail because people skipped it under deadline pressure. The new reader can’t skip it, because reading it is the first step of every task. The developer who always reads the manual first finally exists. It just isn’t human.




Comments