Aadit Shah
Engineering
Share this article
Aadit Shah
Engineering
Share this article

Browserbase's CEO told us Claude Code kept 404ing on Mintlify docs, and he could reproduce it every time, even on our own docs. The cause was almost comical: stripping pages down to markdown for agents also stripped out the navigation, so agents were left guessing at URLs that didn't exist. Linking to llms.txt fixed it, but we wanted proof it was actually the best fix. So we benchmarked four ways to serve docs across 2,400 runs with Claude Code and Codex, and found that a single link to llms.txt does almost all of the work.
Docs used to be written for humans. Now, the most demanding readers you have are agents, and ours were failing. They'd fetch a page, guess at the links, and 404 on URLs that weren't real.
Back in November of last year, Paul, the CEO of Browserbase, told us that Claude Code kept 404ing on Mintlify-hosted docs, and that he could reproduce it every time. The worst part was that it was happening on our own docs too.
The cause was almost comical. To make our pages readable for agents, we served a stripped-down markdown, but in doing so we stripped out the navigation too. The agents were left exploring blind, with no map of what pages existed, so they guessed, and fetched paths that were never real.
The fix was to give them that map. Every Mintlify site already publishes an llms.txt, a single file that lists every page with its title and description that basically serves as a table of contents built for agents. So at the bottom of every markdown page, we added a link to it, and the 404s stopped.
But it raised a question: was that actually the best way to let an agent navigate a site? Did we want to link the llms.txt and let the agent fetch it? Should we inline the whole thing into every page? Or could we skip the map entirely and just serve rich HTML?
So we stopped arguing and benchmarked it.
How we ran the benchmark
The setup was simple. We took four ways to serve the same docs: HTML, plain markdown, markdown with a link to llms.txt, and markdown with the entire llms.txt inlined. Each was gated behind a local proxy so every fetch an agent made could be observed. Then we pointed Claude Code and Codex, running on Sonnet 5 and GPT-5.5, at 20 Mintlify docs sites, 5 questions per site, run 3 times across the 4 formats. All together, 2,400 runs in total.
What the benchmark found
On raw HTML, the agents thrashed. They kept reaching for .md and /llms.txt versions of pages, and 404'd every time the site had nothing to hand back. Once we added a single link to the llms.txt, that mostly disappeared: about 90% fewer dead URLs, far fewer wasted fetches, and a big cut in token usage.
![]()
And it cost nothing more to get there. Accuracy stayed in the mid-to-high 90s across every format, because agents are good at eventually finding the right page no matter how you serve it. The map didn't make them more right, it just got them there faster and cheaper. The win was efficiency, not correctness.
It's the map that matters
The most surprising find was that markdown itself wasn't the fix, the map was. Plain markdown was arguably the worst of the four formats. Without a map to point to, agents started building .md paths on their own and guessed more wrong URLs than they had on HTML. Hand them the llms.txt and that stops.
![]()
And between the two ways of handing over that map, linking won. Inlining the whole file into every page killed the same 404s but cost more tokens every time, so the link got the same benefit at a fraction of the cost.
And this wasn't a one off. We replicated it across three more models, Opus 4.8, Fable 5, and GPT-5.6, over the same 20 sites, and 404s fell to near zero on every one: Opus 4.8 went from 2.11 to 0.08 per task, Fable 5 from 1.13 to 0.00, and GPT-5.6 from 6.79 to 0.02. The drop held on 19 or 20 out of 20 sites for every model tested.
What this means for your docs
The takeaway is simple: if you serve content to agents, give them a map and link to it. One llms.txt pointer does the work, and it pays off with every agent we tried.
We've open-sourced the whole benchmark, so you don't have to take our word for it. You can regenerate every number from the committed data, or point it at your own docs and watch the same gap show up in minutes.
Docs used to be judged by whether a person could read them. That's still true, but they're increasingly judged by whether an agent can navigate them too. Agents are quickly becoming the most important readers your docs have, and every Mintlify site already does the best possible thing for them, automatically.
More blog posts to read

How Claude Code's documentation team makes feedback actionable with Mintlify
Anthropic's Technical Content Engineer for Claude Code shares how she uses Mintlify and Claude to automate documentation improvements from user feedback.
June 25, 2026Ethan Palm
Technical Writing

Docs as an abstraction layer for coding agents
A large engineering org ran controlled experiments to measure how structured Mintlify docs affect agent performance on massive codebases. The results: 64% more precise, 39% more discoverable, half the tokens, 1.5x faster.
June 8, 2026Han Wang
Co-Founder