
Andrei Benea
Published on 2 December 2026
AI predicts. Documentation shouldn't.
Half the project lives in one engineer's head. Then they leave. DevOps engineer Andrei Benea on what good documentation looks like, what bad docs really cost, and why AI can't fix it for you.
Imagine one of the brightest engineers on your team tells you they're moving on. Half of the project sits on their shoulders. You sit down to look at what they'd leave behind, and you find a problem: a lot of the key knowledge lives only in their head. If they walked out tomorrow, the team would eventually find the information. But there would be a gap, and filling it would cost time and resources nobody can spare. We are all obsessed with efficiency, but this is the opposite of efficient.
That's why I care about documentation. Not because I enjoy writing it. I don't. English isn't my first language, and I'm not a natural writer in my native one either. I care because I've seen how close teams come to that situation and what happens without it.
AI predicts. Documentation shouldn't.
The obvious answer today is: let AI write it. Generate the docs, job done. But I don't agree. AI is an extremely good prediction engine. But documentation is the one place where you don't want anything predicted. You want it clear, concise, and true. You can spot AI-generated documentation straight away. It uses a lot of words for the sake of words, far more than any human would bother to write and far more than anyone will bother to read. Then someone asks AI to summarise it, and with each pass, a little more of what mattered is lost. As an engineer, I want the opposite: a few words that tell me how the whole project works, not predicted, just facts.
What good documentation actually looks like
I'll be honest: I've seen truly good dev documentation only once in my career. It was documentation I co-wrote with a colleague on one of my projects. Architects joining the project told us they could be onboarded the next day and start working straight away, and that should be the success market for documentation. They said it as if it were something new. That says a lot about our industry.
What made it good wasn't its length. It was discipline:
- It was always up to date. Every change to the system meant a change to the docs.
- It was properly reviewed. Four reviewers went over it, and every paragraph had to earn its place.
- It was short. Ten or so lines, a good diagram, and the key packages.
After reading the documentation, I should know the entry points, where the main modules are, how to install it, and how to start working. The deeper detail comes from getting into the project itself.
Here's my rule of thumb. If I can understand the project by reading it, it's good documentation. If it also helps me troubleshoot, it's great documentation. If it walks me through every helper function, the whole history, and the reasoning behind every decision, it's too much. You'll lose me, and I'll go and figure it out myself. That level of detail might be valuable elsewhere, but in the documentation, it is a waste of time, in my opinion.
Not everyone should write documentation
Too often, documentation is treated as a box to tick. Write something, hand it to a junior, move on. Please don't. Leave it to the architect, or to whoever understands the system best and can explain it to others. Some people are simply better at writing for others. On my team, I always relied on a colleague to rewrite my documentation because I wrote it in my own language, for my own brain. The nitpickers, the people who obsess over getting every word exactly right, are the ones you want. People like me tend to say "good enough." And good enough isn't good enough, because it leaves room for interpretation. I'm an engineer by training, and I hate interpretation. Templates don't solve it either. We've had boilerplate templates that created more confusion than they cleared up, especially when we're building something new and the template doesn't fit.
Bad documentation costs you more than money
On one project, the documentation for a new feature was just a diagram. I read it one way. My colleague read it another. That meant another meeting, another discussion, and another two hours spent working out what someone meant. Few things frustrate me more than losing time decoding what another person wrote. Now multiply that. When clients pay for expert time by the day, every hour those experts spend deciphering documents instead of solving problems is money wasted for the client, and, over time, that translates into reputational damage and lost revenue for the business as well.
But money is only part of it. Calling it "lost time" undersells what time means. If I lose time, I don't release at the right moment. I've seen organisations where fragmented documentation meant decisions took weeks instead of days, and by the time they were made, the market opportunity had gone. In a competitive market, momentum is everything, and bad documentation kills it. The team goes back to the drawing board, work piles up, and you need more people just to catch up. And when the people who hold the knowledge leave, everything can grind to a halt while the rest of the team works it out for themselves.
Documentation is your AI's foundation
Whether you're AI-first or not, documentation is the backbone of everything you build. More and more, organisations use it to train AI tools and to build knowledge graphs of how their systems fit together. Your documentation now has two audiences: the people who work on your systems and the AI agents that work alongside them. That raises the stakes. If one thing in your documentation is wrong, AI will build on it. The error spreads through everything that depends on it, and five weeks later, it comes back to bite you. That's why documentation needs to be written and owned by humans.
I do use AI. Recently, I needed to implement a queue, something I hadn't done in a long time. Rather than wading through sponsored search results, I asked AI to point me to the right documentation and articles. And when documentation is ambiguous, AI can sometimes work out what the author meant. But it's like playing blackjack: often right, never guaranteed. You need to decide how far you let AI interpret and where you draw the line. Even with all the AI augmentation available today, AI can't work without proper documentation. Neither can people.
Write it for the next person
Good documentation is about making sure the next person, whether that's a new teammate, an architect or an AI agent, can pick up your work and keep going without you.
So keep it short. Keep it current. Get it reviewed. And let someone who can write for others take the pen. Because otherwise, one day, you'll be the one scrambling around documents looking for answers.
