Wink Pings

Docs are written for people—now they also have to be written for Agents

David Boyne has spent ten years building developer tools. He breaks documentation writing into several parts: use Diataxis to segment by scenario, use Simplified Technical English to reduce complexity, put docs into packages and CLIs, and let Agents follow code updates. The reader structure of documentation has changed.

David Boyne posted a note on X about writing documentation. He has spent ten years building developer tools, and his judgment is direct: documentation is the product's homepage. Here, Agent refers to an AI agent that can read materials, look up APIs, and modify code on its own.

Most people know documentation needs to be written, and they also hate writing and maintaining it. David breaks the approach into several parts, each pointing to the same problem: helping different readers get the information they need as quickly as possible.

Use Diataxis to break docs apart

Diataxis is a framework for systematically writing technical documentation. Original link: https://diataxis.fr/.

Users and Agents come to documentation for different purposes. Some want a high-level overview, some want to understand the mechanics, and some want to drill down. A single entry point can hardly satisfy all of them at once. David's suggestion is to split documentation into different areas so both people and Agents can go deeper as needed.

The fastest way to validate this is to hand https://diataxis.fr/ to an Agent, have it organize your documentation according to this framework, and then adjust based on the result. The Agent may put content in strange places, but it is good enough as a baseline. If you want to go deeper, watch Daniele Procida's talk.

Use Simplified Technical English to reduce complexity

ASD-STE100 Simplified Technical English, or STE, is a controlled natural language and an international standard for writing technical documentation. In 2025, ASD-STE100 became an international standard.

It was originally designed for aircraft maintenance manuals, not software documentation. David says he uses an Agent to write documentation according to this standard, and when comparing before and after rewriting, the result is better most of the time. It is also simple to use: have an Agent read the standard, rewrite a section of documentation, and then compare. If you like it, continue; if not, stop.

Make docs readable by Agents

David's judgment is that Agents are already the number-one consumers of documentation. So documentation has to be accessible to Agents.

llms.txt is an approach adopted by many companies. It provides a /llms.txt route on the website to help Agents use site content. The original post says reviews of Agents using llms.txt are mixed, but if you can add it, add it. You can also have an Agent read the spec and then apply it to your own site.

Another path is exposing MCP tools so Agents can search and query documentation. WebMCP, meanwhile, can expose these tools directly from the browser to supported Agents.

Put docs into packages and CLIs

There is another approach: embed documentation into build artifacts and command-line tools.

When Vercel installs nextjs, it includes a docs folder in node_modules and guides Agents to read the docs locally, without first jumping to the website. This keeps the docs version closer to the installed version. David does this in EventCatalog and Steamview CLI, with good results.

Maintain docs and have Agents follow PRs

The biggest pain point of documentation is keeping it up to date. Companies such as Mintlify and GitBook provide ways to keep docs in sync with implementation details. David thinks building your own Agent workflow is not complicated.

The idea is: review the pull request, analyze the changes, and then open a pull request against the docs repository. The prerequisite is docs as code. David built an Agent with Flue to update EventCatalog's docs. With guardrails in place, the Agent can do a good job, and models will keep getting better.

Docs as code

David has talked with many companies that want to document their software architecture, and almost all are moving toward docs as code. Docs sit close to implementation details, and Agents also like markdown files, so it suits both sides.

For open source projects, both mkdocs and docusaurus can be used. David's own project EventCatalog does this too: http://eventcatalog.dev.

Additions from the comments

Someone asked whether writing should be different now that many readers are coding agents. David's answer is that you just add more references and lower-level docs so Agents can keep digging deeper.

Documentation has not become lighter; the way it is maintained is changing. People need pathways, and Agents need text that can be crawled, versioned, and embedded. First make the structure clear, then let Agents handle repetitive maintenance—this is the more practical part of David's note.

Original link: https://x.com/boyney123/status/2129172152725238057

发布时间: 2026-12-06 02:31