There's about 3x more documentation in the world than lines of code. Docs are worse than ever, even though they're more important than ever for leveraging agents. Some docs musings based on recent customer conversations:
Humans and agents need different things
- Agents need very different content than humans do. Humans understand, agents implement. Humans need mental models, agents need instructions.
- Most teams wrote bad documentation before. Now they have agents write bad documentation for them.
- Go to a random doc site and you get walls of text. It doesn't help agents, and it doesn't help humans.
- Agents want markdown. They read every character and want all the context.
- Humans don't want to read everything. Show them the big picture in a format they like, such as visuals. Give the markdown to the agents doing the implementation.
- Right now both audiences are mixed together, and people assume agents and humans need the same thing. The opposite is true.
- If 99% of your traffic is agents, the 1% that's human matters even more. A human who shows up needs something the agent couldn't give them, like a way to visualize the problem. If you expect them to spend their own precious time, the page better be perfect.
- Agents don't feel dread. A human landing on a wall of text creates dread and a bad impression of the company.
- An agent will find the needle in the haystack if it exists. A human will just leave unhappy.
- Good docs can work like a marketing site, especially for developers: "Come on in, you can trust us over the competition. You can send your agents our way. Tell your friends."
- That human part is more important than ever, and it's what people are worst at because it's the hardest to do.
Why agents ignore your latest public docs
- At Stripe, docs were already a hard problem when the readers were only humans: information architecture, search, writing quality, layout, design, authoring experience. Now it's hard in a different way.
- The first question is legibility. Can agents even read what you wrote?
- Agents can't travel faster than the speed of light. For speed, they lean on what they already believe ("I already know Stripe") and skip fetching the latest docs page.
- It's a tradeoff. If you want speed, the agent makes assumptions and relies on its biases.
- Everyone is shipping 10x more than a couple years ago. In two or three years, an agent won't read your 100,000 docs and quickstarts for every question. It'll lean on what it already knows.
- You can't solve this with yesterday's practices, which is what almost everyone is doing.
Decision records for internal docs
- Decision records are great. Write things down with a timestamp. You can clean them up later.
- People forget their own decisions, let alone their team's decisions or the offhand comments you want agents to use as checkpoints.
- Smart people and frontier models both make the same mistake. You ask a model to fix one bug and it tries to refactor your whole codebase. A new engineer shows up and wants to rewrite everything in Postgres. The decision history shows the many arguments the team already had of why you went with MySQL.
- These decisions are easy to forget, easy to argue about, and they aren't in code. They live in people's heads.
Clean up stale docs and broken search
- Most companies need to clean up their junk. Garbage collection for knowledge.
- From doing this exercise at Uber and Stripe, and with clients when I was advising: about 1-2% of internal docs are actually useful. Being generous, 95% are copies, outdated docs for deprecated features, stubs, and scratch pads in Google Docs and Notion.
- Whether or not people read them, these docs sit in agent context and in search results, bloating both. Many search tools also give extra weight to age.
- People accept that "search is search." I refuse to accept that. Get rid of the junk and reconcile what's left.
- At Stripe, we took 500,000 docs down to about 5,000 we actually cared about. Back then, keeping them up to date with people was terrible and close to impossible.
- Everyone is scared to delete docs because they took a long time to create. It's like cleaning out your garage. Deleting feels great, and once something's gone, you never think about it again.
A diagram beats a 10-page doc
- Don't give me a 10-page software development lifecycle doc written by an engineer who no longer works here, with "This is mostly out of date, but it's directionally correct." Give me a diagram that shows the major pieces across the width of the page.
- Look for anything that can be distilled into a diagram, a workflow, or a checklist.
Conflicting docs cause incidents
- Code is fairly pristine. It's what agents were trained on and optimized for, and they know how to traverse it.
- Agents get confused when the code conflicts with a document and an old Jira or Linear task.
- We hear about agents making wrong decisions that cause incidents: whether it's recommending an old workaround, an unsafe change, or non-compliant fix that an engineer blindly accepts.
Ownership and accountability
- For the last couple of years, it's been acceptable to blame Claude or the agent when something goes wrong. How much do your customers care if something was your agent's fault? Not one bit.
- That's changing as performance review cycles come around. If you own reliability and docs written by Claude, on your team or another team, cause an incident, you get dinged. People will start to care.
- Start with accountability. Put a name on a doc set, the same way you put an owner on a repo, and people will figure out how to care.
- The next step is putting documentation on the job ladder. Smart engineers will figure out the rest.
- I already see ownership coming back. People are learning how to measure performance when engineers pair with agents.
- This matters most in B2B, where contracts and compliance audits and enterprise renewals are at stake.
Treat documentation as part of the product and your organizational health
- This one is evergreen. If you ship a product and it isn't documented, you don't care about docs.
- Treat internal docs the same way. If you don't care about internal docs, you don't care about your organization.
- Jeff Bezos treated communication as a defect: if people have to talk to each other, your interfaces aren't designed and documented well enough. Teams should communicate through well-documented APIs, not meetings. It's the introvert's manifesto. Document your stuff and we can socialize over lunch, but I don't want to stop what I'm doing to explain how an endpoint works.
- Your team should be an interface to the rest of the company. Document your operating model, your tools, and how to connect to your internal services or infrastructure.
- Agents can now do more human-like work, so they also want your working hours, communication preferences, and roles and responsibilities. Don't schedule a meeting for something that could be written down.
Respect the reader's time
- The missing piece is rigor. You can get the first draft from an agent, but a human has to empathize with the reader.
- Ask what the reader wants to feel: smart and accomplished, not lost in instructions they don't understand.