How do agents use documentation, and how can we help them? AI agents now generate more than 80% of documentation-site traffic on Mintlify, and agents missed a key fact 8.5 times as often when documentation hid it in one of three patterns, according to a Mintlify and Ora research lab study tracing 11,000+ agent journeys across 400+ questions and tasks on 20+ documentation sites. The study found 27.5% of runs missed a fact when an exception lived on another page (versus 0% when documented clearly), 22% missed the right value when pages disagreed (versus 3%), and 16% missed a limit confined to the API reference (versus 2%); 23% of agent journeys requested an index file such as llms.txt. The findings matter because agents stop reading once a page looks complete, so documentation teams must state exceptions at the step they change, keep one value per fact, and ensure llms.txt entries reach the agent. Mintlify mintlify.com Ora Research Lab ora.ai Share this article Mintlify mintlify.com Ora Research Lab ora.ai Share this article AI agents now account for more than 80% of documentation-site traffic on Mintlify https://www.mintlify.com/data , and they read the web live to answer users Ora https://ora.ai/blog/ax-is-the-new-aeo . When a developer asks an agent how to use your product, the answer is built from what the agent finds on your docs, and limited by what it fails to find. Together with the Ora research lab https://ora.ai/ , we set out to learn what makes documentation work for agents. We traced 11,000+ agent journeys: coding tools and consumer agents answering 400+ real questions and tasks on 20+ documentation sites across several docs platforms. We recorded the full trajectory of every journey: each search, page request and tool call, what came back, and the agent's reasoning between steps. We then analyzed how agents behaved along the way: where they looked first, which paths they took, where they got stuck and how they recovered. We graded every final answer against the documentation. Finally, we tested what we learned by running the same tasks before and after sites applied the practices. This builds on our earlier 2,400-run docs URL benchmark https://www.mintlify.com/blog/llms-txt-agent-benchmark , which showed that one link to llms.txt removes most agent 404s. Where the docs are built for agents, agents do better: on Mintlify sites they reached the right page more often, solved more multi-step tasks and finished faster than on other platforms. Below are thirteen practices behind those results, in four areas, each backed by our experiments. Avoid the information patterns that hide the key fact avoid-the-information-patterns-that-hide-the-key-fact Agents rarely read a whole documentation site. They open a page, and if it looks like it answers the question, they stop. That works when the page is complete. It fails when a key fact, such as an exception or a limit, lives somewhere else or appears with two different values. We found three such patterns on real docs and paired each case with a similar fact the same site documents clearly. Agents missed the key fact 8.5× as often when a pattern hid it, and every agent we tested was affected. 01 · Don't leave the exception on another page 01-don-t-leave-the-exception-on-another-page The rule is on one page and the case that changes it is somewhere else, so the page looks complete and the agent stops. State the exception at the step it changes, and link to the details. In our experiments, 27.5% of runs missed the fact, against 0% when it was documented clearly. 02 · Don't let two pages disagree 02-don-t-let-two-pages-disagree Guide, reference and changelog give different values for the same thing, and the agent can't tell which is current. Keep one value per fact, and update every page when it changes. In our runs, 22% missed the right value, against 3%. 03 · Don't leave a limit only in the API reference 03-don-t-leave-a-limit-only-in-the-api-reference The guide gives some limits, and the one that matters is only in the generated reference. State it in the guide, or say that more limits exist and link straight to them. In our runs, 16% missed the limit, against 2%. Make sure the right llms.txt entry reaches the agent make-sure-the-right-llms-txt-entry-reaches-the-agent An index file such as llms.txt is a short, described list of your pages. An agent that opens it chooses its next page from the entries it can see, so an entry only works if it reaches the agent. An entry gets lost when the agent's tool cuts a long file short before it, or when it sits in a secondary index the agent never opens. A docs team controls both. In our experiments, 23% of agent journeys requested an index file. On Mintlify sites, which generate llms.txt automatically https://www.mintlify.com/docs/ai/llmstxt , it was 28% of runs, against 15% on other platforms. Runs that saw a page's entry in the index reached that page 95% of the time. When the entry never reached the agent, only about half did. 04 · Publish an llms.txt index, and put the most-asked pages at the top 04-publish-an-llms-txt-index-and-put-the-most-asked-pages-at-the-top Agents that read llms.txt found 83% of the pages a task needed, against 78%. They read the root file from the top, so link the pages users ask about most right there, ahead of the long tail. On the sites we tested, the pages agents went looking for fit in about 2 KB of index lines. Put instructions for agents at the top too. In the indexes we examined, the instruction to follow secondary indexes sat at the very end, past the point where agent tools cut the file. 05 · Don't make agents read one huge file 05-don-t-make-agents-read-one-huge-file Agent tools return only the first part of a long file. The same 40,517-character index came back whole in some agent tools and cut at 14k to 32k characters in others, and runs whose entry was cut off reached the page 54% of the time. A single file holding a site's full documentation ran to 1.6 million characters, and no agent tool returned more than 3% of it. Split long files into smaller ones, don't send agents to a full-docs file from an error page, and fetch each file the way an agent does to check where it ends. 06 · Say what is inside each secondary index 06-say-what-is-inside-each-secondary-index A generic label gives an agent no reason to open the file behind it. Once secondary index labels listed their sections, as Mintlify's now do https://www.mintlify.com/blog/scaling-llms-txt , agents opened them 2–3× as often. Runs that never opened one reached the page 58% of the time. 07 · Write labels with the words users search for 07-write-labels-with-the-words-users-search-for Agents search an index before they read it, so an entry is found by its words. One coding agent ran a keyword search in 69% of its first index reads. Use your users' terms in link labels and descriptions. After secondary index labels listed their sections, the link showed up in that agent's searches far more often, and it reached the right page through a secondary index 2–7× as often. Remove dead ends, and redirect the URLs agents guess remove-dead-ends-and-redirect-the-urls-agents-guess Agents reach a page in three ways. Most of the time they follow a link from something they already fetched. They also open URLs returned by web search, which can point to pages that have since moved or been removed. And they build URLs from memory of how documentation sites are usually laid out. Links mostly work and guesses often don't. An agent that hits a dead end does not stop: it retries, searches elsewhere and answers anyway, at a higher cost. Our experiments show that a guessed URL hits a missing page 7× as often as a followed link, and that guesses cause 78% of the 404s agents run into. Journeys that hit one used 1.4× the tool calls and cost about a quarter more. 08 · Redirect the URLs agents guess 08-redirect-the-urls-agents-guess Agents guess the same things on site after site. In our experiments, a third of failed guesses were for a common topic such as quickstart, authentication or rate limits at a path that didn't exist, or for a standard file such as /openapi.json or /sitemap-index.xml . Serve those at the paths agents expect, or redirect them. Your 404 logs show the rest, and a redirect turns each into a hit. 09 · Suggest pages in the 404 response 09-suggest-pages-in-the-404-response Keep the 404 status, and list the closest pages in the response body, as Mintlify's 404 page https://www.mintlify.com/docs/ai/markdown-export missing-pages does. In our experiments the right page was on that list in 61% of dead ends. Agents that saw the list lost no accuracy. Agents that did not fell from 91% to 81% correct. Serve complete markdown at the URLs agents request serve-complete-markdown-at-the-urls-agents-request Once an agent reaches a page, it has to pull the answer out of whatever the server returns. An HTML page wraps its content in navigation, scripts and styling. Markdown carries only the content, so agents ask for it when they can. The HTML page has to hold the answer first. A markdown version then helps only if it carries everything the HTML page does, and if its links lead on to more markdown. In our experiments, 35% of agent journeys requested a page's .md URL. On Mintlify sites, where every page has a markdown version https://www.mintlify.com/docs/ai/markdown-export by default, agents requested markdown in 42% of runs, against 28% on other platforms. Agents that read a markdown page found more of the pages a task needed. Stronger models use these resources more. On the same tasks, Claude Code requested a .md page in 89% of runs with Opus 5.5, against 18% with Sonnet 5, and read llms.txt in 80%, against 11%. 10 · Publish a .md version of every page 10-publish-a-md-version-of-every-page Give every page a markdown twin at a predictable URL, such as the page URL with .md added. Agents that read a .md page found 85% of the pages a task needed, against 74%. 11 · Link markdown pages to markdown 11-link-markdown-pages-to-markdown An agent that lands on a markdown page should be able to stay on markdown. After links inside .md pages pointed to .md, the share of page requests that asked for a .md URL rose from 57% to 62% for one coding agent, and from 17% to 26% for one consumer agent. 12 · Render every component into the markdown 12-render-every-component-into-the-markdown Tabs, accordions and cards often drop out of the markdown version, and take their content and links with them. Render them in full, as Mintlify now does by default. 13 · Point to the markdown and the index at the top of every page 13-point-to-the-markdown-and-the-index-at-the-top-of-every-page An agent that fetches the HTML page should learn right away that a markdown version and an index exist. Mintlify now puts a short comment at the top of each page https://www.mintlify.com/blog/context-for-agents naming its .md URL and /llms.txt. After that, one coding agent went from its first HTML page straight to the markdown or the index in 99% of runs, up from 62%.