The Split Audience: The First Reader of Your Docs Isn't a Developer
AI coding agents read your documentation before any developer does, and no analytics metric you're reporting captures it. Here's what changes when you write docs for the reader that shows up first.
AI coding agents read your documentation before any developer does, and no analytics metric you report captures it. Writing docs for the agent (clear structure, direct answers, an llms.txt index) is what keeps you in the answer, and it serves the human reader too.
There's a sentence at the end of a Sunil Pai essay from April that I keep coming back to. After several thousand words about what AI is doing to developer education, he drops this almost as an aside: "there's a whole other thread here about what happens when agents themselves become the primary consumers of your docs, APIs, and error messages, and when devrel has to be legible not just to humans but to the machines working alongside them."
He said he'd pull on that thread in a different post. I've been pulling on it for months, because it describes the thing my analytics couldn't show me.
Here's the shape of the problem. When a developer uses Cursor or Claude Code to build an integration with your API, the agent reads your documentation first. It fetches the README, the API reference, maybe an OpenAPI spec. It compresses what a human would experience as a twenty-minute reading session across a dozen pages into one or two HTTP requests. Then it makes decisions on the developer's behalf: which auth pattern to use, which endpoint to call, whether your product is the right choice for the task at all.
Your documentation got read, evaluated, and acted on, and no metric you report captured any of it.
Two audiences, one set of artifacts
Software has walked this road before. Each wave re-centered design on whoever actually consumes the thing. UX redesigned interfaces around users rather than the engineers who built them, and DX did the same for APIs and the developers consuming them. AX (Agent Experience), designing your product's surfaces so an autonomous agent can consume them, is the third turn of that wheel, the term Netlify's Mathias Biilmann put a flag in. It asks the question again, now that the consumer is a machine: is this system designed for the thing actually using it?
I've written about AX from the engineering side, where specs and context files become the communication layer between you and your coding agent. This post is about the other side: what AX means when the thing that changed is your distribution channel, not your development workflow.
Because the audience for developer documentation has split in two, and the halves want opposite things.
A human developer reads selectively. They skim, build a mental model across pages, tolerate narrative, and recover from ambiguity by inferring intent or asking a colleague. An agent parses for structure, and it does so under a token budget. One documented example: Cisco's firewall REST API quick start guide weighs 193,217 tokens, past the context window of many coding agents, which means parts of documentation at that scale are effectively invisible to them. The agent can't infer what you meant from what you almost said, nor can it ask a colleague. It fills every ambiguity with the statistically most probable answer, which is how a plausible-but-wrong integration gets confidently assembled from docs that were clear enough for humans.
Joey de Villa frames the stakes bluntly: when the docs aren't optimized for machine ingestion, the AI hallucinates the implementation, and the developer blames your product. The failure is yours either way. The agent never files a support ticket.
The two surfaces
The split shows up on two distinct surfaces, and most DevRel programs I've seen are building for neither.
The first surface is a human asking an AI what to use. "What's the best way to handle auth in a Next.js app?" The assistant synthesizes a recommendation from content it can extract and cite. If your docs are prose written for top-to-bottom human reading, you may not appear in the answer at all, regardless of product quality or community size.
The second surface is an agent consuming your docs autonomously. The developer already chose you, or their agent did, and now the agent is reading your reference material to build the integration. Structure quality here determines whether the integration comes out correct, and whether the agent quietly recommends switching to a competitor whose docs it can actually parse.
The first is a discovery problem and the second is a correctness problem. Both are documentation problems, and both land on DevRel's desk whether or not anyone assigned them there.
What breaks first: your instruments
The subtle casualty is measurement. When agents compress multi-page navigation into single requests, bounce rate, session depth, and page views stop meaning anything. A decline in docs traffic is now ambiguous. It could mean your content is failing, or it could mean your AEO (answer engine optimization, being the source an AI cites) is succeeding, because developers got the answer through an AI citation and went straight to integration without ever loading your site.
If you're reporting docs traffic to leadership as a health metric, you're reading an instrument that no longer measures what it used to. What to measure instead is a big enough question that it gets its own post at the end of this series.
What to do about it
The good news is that writing for the agent doesn't mean writing worse for the human. Agents need clear heading hierarchies, direct answers near the top of pages, parameter tables instead of parameters buried in prose, markdown versions of your docs, and an llms.txt index (a plain-text map of your docs for crawlers) at your site root. Tired humans at 2am appreciate every one of those too. There is no bifurcation crisis here. Structure serves both audiences. Only vagueness had to choose.
The test I'd run this week, before any tooling investment: open a coding agent, point it at your quickstart, and ask it to build the hello-world integration. Watch what it fetches and where it guesses. Every guess is a place where your documentation was legible to a human and illegible to the machine that now reads it first.
Then ask the more uncomfortable question: when a developer asks ChatGPT what to use for your product's core use case, are you in the answer? That one, the discovery surface and the infrastructure behind it, is the next post.
Part 1 of 9 in the Developer Relations in the Age of AI series.
Next: AEO Is DevRel Infrastructure → · ← All articles
Related reading: The AX Shift: You're Still Designing for Yourself: the engineering-side treatment of the same consumer change.