{"slug": "how-do-agents-use-documentation-and-how-can-we-help-them", "title": "How do agents use documentation, and how can we help them?", "summary": "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.", "body_md": "Mintlify\n\nmintlify.com\n\nOra Research Lab\n\nora.ai\n\n#### Share this article\n\nMintlify\n\nmintlify.com\n\nOra Research Lab\n\nora.ai\n\n#### Share this article\n\nAI 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.\n\nTogether 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.\n\nWe 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.\n\nWhere 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.\n\n## [Avoid the information patterns that hide the key fact](#avoid-the-information-patterns-that-hide-the-key-fact)\n\nAgents rarely read a whole documentation site. They open a page, and if it looks like it answers the question, they stop.\n\nThat 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.\n\nWe 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.\n\n### [01 · Don't leave the exception on another page](#01-don-t-leave-the-exception-on-another-page)\n\nThe 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.\n\n### [02 · Don't let two pages disagree](#02-don-t-let-two-pages-disagree)\n\nGuide, 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%.\n\n### [03 · Don't leave a limit only in the API reference](#03-don-t-leave-a-limit-only-in-the-api-reference)\n\nThe 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%.\n\n## [Make sure the right llms.txt entry reaches the agent](#make-sure-the-right-llms-txt-entry-reaches-the-agent)\n\nAn 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.\n\nAn 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.\n\nIn 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.\n\n### [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)\n\nAgents 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.\n\n### [05 · Don't make agents read one huge file](#05-don-t-make-agents-read-one-huge-file)\n\nAgent 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.\n\n### [06 · Say what is inside each secondary index](#06-say-what-is-inside-each-secondary-index)\n\nA 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.\n\n### [07 · Write labels with the words users search for](#07-write-labels-with-the-words-users-search-for)\n\nAgents 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.\n\n## [Remove dead ends, and redirect the URLs agents guess](#remove-dead-ends-and-redirect-the-urls-agents-guess)\n\nAgents 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.\n\nLinks 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.\n\nOur 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.\n\n### [08 · Redirect the URLs agents guess](#08-redirect-the-urls-agents-guess)\n\nAgents 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.\n\n### [09 · Suggest pages in the 404 response](#09-suggest-pages-in-the-404-response)\n\nKeep 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.\n\n## [Serve complete markdown at the URLs agents request](#serve-complete-markdown-at-the-urls-agents-request)\n\nOnce 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.\n\nThe 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.\n\nIn 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.\n\nStronger 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%.\n\n### [10 · Publish a .md version of every page](#10-publish-a-md-version-of-every-page)\n\nGive 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%.\n\n### [11 · Link markdown pages to markdown](#11-link-markdown-pages-to-markdown)\n\nAn 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.\n\n### [12 · Render every component into the markdown](#12-render-every-component-into-the-markdown)\n\nTabs, 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.\n\n### [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)\n\nAn 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%.\n\n```\n<head>\n  <!-- AI agents: this page is available as Markdown at /guides/quickstart.md.\n       Request it directly or send \"Accept: text/markdown\". The site index is at\n       /llms.txt. -->\n  <title>Quickstart</title>\n  …\n</head>\n```\n\n## [Docs that fit how agents work get better answers](#docs-that-fit-how-agents-work-get-better-answers)\n\nAcross more than 11,000 journeys, the agents that answered best were the ones given documentation that fit how they work: a complete markdown version of each page, an index whose entries reach them, redirects for the URLs agents guess, and pages that carry the exception or the limit where the agent will read it. When those held, agents found the right page more often and missed fewer facts. When they didn't, the agent still answered, from a page that looked complete, from a guess, or from somewhere else entirely.\n\nNone of the thirteen practices requires new infrastructure. Most are checks a documentation team can run this week: fetch your own index the way an agent does, read your 404 logs, and look for the facts that live only on another page. [Agent Score](https://www.mintlify.com/score) runs the technical checks for you. Running the same tasks before and after showed that these changes move agent behavior within weeks of shipping. Documentation platforms can carry much of this by default, and the platform comparison shows what that is worth. The rest is editorial work that only the people who write the docs can do.\n\n## [Further reading](#further-reading)\n\n**Mintlify**\n\n- [Mintlify docs traffic data](https://www.mintlify.com/data) : the production numbers behind the opening claim\n- [llms.txt on Mintlify](https://www.mintlify.com/docs/ai/llmstxt) : how the index files in practices 04–07 are generated\n\n**Ora**\n\n- [Ora research](https://ora.ai/research) : the research program behind this work\n- [AgentReady](https://www.agentready.org/) : the open standard for agent readiness, with Mintlify and Ora among its collaborators\n\n#### More blog posts to read\n\n[AnnouncementsDF](https://www.mintlify.com/blog/direct-support-ticketing)\n\n### The assistant now files support tickets for you\n\nWhen the Mintlify assistant can't answer a question, it can now create a ticket in Plain or Zendesk with the user's details and conversation attached. Available on Enterprise plans.\n\nNovember 19, 2026\nDenzell Ford\n\nEngineering\n\n[EventsCW](https://www.mintlify.com/blog/why-we-started-context)\n\n### Why we started Context\n\nA recap of our first evening at Letterform Archive, where technical writers, DevRel and engineering leaders talked about how people and agents will read, write and share knowledge.\n\nNovember 19, 2026\nChloe Wu-Breshears\n\nEvents", "url": "https://wpnews.pro/news/how-do-agents-use-documentation-and-how-can-we-help-them", "canonical_source": "https://www.mintlify.com/blog/how-agents-use-documentation", "published_at": "2026-12-03 00:00:00+00:00", "updated_at": "2026-12-03 18:48:28.972576+00:00", "lang": "en", "topics": ["ai-agents", "ai-crawlers", "agent-protocols", "generative-engine-optimization", "ai-search"], "entities": ["Mintlify", "Ora Research Lab"], "also_reported_by": [], "takeaway": "Agents missed key facts 8.5x as often when docs hid them; stating exceptions inline cut misses from 27.5% to 0%, keeping one value per fact cut them from 22% to 3%, and surfacing API-reference limits in the guide cut them from 16% to 2%.", "recommendation": {"advice": "State exceptions and limits at the step they change, keep one value per fact across guide, reference and changelog, and keep llms.txt entries short enough to reach the agent; these cut missed facts from 27.5% to 0%.", "playbook": "rag-retrieval", "playbook_url": "https://wpnews.pro/playbooks/rag-retrieval"}, "alternates": {"html": "https://wpnews.pro/news/how-do-agents-use-documentation-and-how-can-we-help-them", "markdown": "https://wpnews.pro/news/how-do-agents-use-documentation-and-how-can-we-help-them.md", "text": "https://wpnews.pro/news/how-do-agents-use-documentation-and-how-can-we-help-them.txt", "jsonld": "https://wpnews.pro/news/how-do-agents-use-documentation-and-how-can-we-help-them.jsonld"}}