Docs as Agent Routing Logic
Diving deeper into
$21.4M/year Vercel of developer docs
coding agents like Anthropic’s Claude Code & OpenAI’s Codex suddenly began to decide which databases, APIs & developer tools to use
Analyzed 9 sources
Reviewing context
This marks a shift from docs as persuasion for humans to docs as routing logic for software. When Claude Code and Codex are the ones reading first, the winning docs are the ones an agent can parse into a concrete next step, which endpoint to call, which SDK to import, which auth flow to follow, and which database or tool can be safely used without a human filling in gaps.
-
Claude Code and Codex are built to act, not just answer. Claude Code runs in the terminal and across a toolchain, while Codex can connect to codebases and approved apps. That means docs now sit directly in the decision loop before an agent writes code, runs commands, or calls an external system.
-
Mintlify has productized this shift by turning docs into machine readable surfaces. Its MCP server lets AI tools search docs and interact with APIs, and its hosted llms.txt index gives agents a map of the whole doc set. In practice, docs become structured context, not just formatted pages.
-
The closest analogy is Stripe era self serve docs, but the buyer has changed. Earlier docs helped a developer evaluate and integrate a product manually. Now the same page may determine whether an agent ever selects that product at all, which helps explain why agent traffic on Mintlify docs rose from roughly 15% in January 2026 to 66% by July.
The next step is a ranking layer for agent ready infrastructure. Docs platforms will increasingly sell the tooling that makes products easy for agents to discover, trust, and execute against, including MCP servers, llms.txt indexes, safe action boundaries, and continuous checks that keep docs aligned with live APIs as agents become the default integration path.