The AI Search Manual

CHAPTER 25

llms.txt: What It Is, What It Doesn’t Do, and the Narrow Cases Where It’s Actually Useful

Published December 1, 2026

Last updated December 1, 2026

A woman in a 1970s department store studies a red portable record player beside a computer displaying a picture of the same record player

In the final week of May 2026, Google managed to argue both sides of the llms.txt debate in under seven days.

First, its guidance on optimizing for generative AI features included a section labeled, in plain language, "mythbusting." The message to site owners was that you do not need special machine-readable files or markup to appear in generative AI search. Days later, the Chrome team shipped an llms.txt check inside Lighthouse's experimental Agentic Browsing audits, with documentation explaining that without the file, agents may spend more time crawling a site to understand its structure.

When Google’s team was pressed on the contradiction, John Mueller said llms.txt is not done for search, but is part of the good hygiene of a website (akin to CTAs). It will not help with site discovery. It can, however, help websites with heavy, jargon-filled documentation communicate it to AI bots and agents so they can parse it more quickly and efficiently (i.e., without wasting tokens). It’s important to note that such bots can read HTML just fine, yet llms.txt provides a more efficient pathway to key information if processed. Mueller added that the average site owner or web administrator doesn't need to think about this, mainly because such sites wouldn't see a high volume of AI agent traffic in their log files to begin with.

In this chapter, we will demystify what llms.txt is, what it does and doesn’t do, and where and how it should be implemented. We will also walk through the research and pinpoint the exact cases where it can be useful, along with the scenarios where over-investing time in llms.txt and relying on it as a shortcut to AI Search visibility (GEO) are unfounded.

What Is llms.txt?

llms.txt is a plain-text Markdown file, placed at your site's root (yourdomain.com/llms.txt, publicly accessible), that gives AI systems a structured directory of your most important content and tells them what they'll find at each link.

It was proposed in September 2024 by Jeremy Howard, co-founder of Answer.AI and fast.ai, and exists to solve a few concrete problems:

  • Small context windows: LLMs can only hold so much text at once, and most websites exceed that limit in full, so a curated map is more practical than the whole site.
  • Token consumption: Every token spent parsing a bloated page is a real cost to both users and the LLM companies footing the compute bill.
  • Expensive conversion: Stripping HTML, JavaScript, ads, and navigation into clean, LLM-friendly text is both lossy and resource-intensive.
  • Fewer formatting tokens: Plain-text Markdown carries far less structural noise than rendered HTML, and it exposes hidden or tabbed content a scraper might miss, which is exactly why Mastercard's developer platform tells agents to prefer its Markdown files over its HTML pages.
  • Compounding agentic latency: For an agent that retrieves in multiple steps, each extra fetch magnifies end-to-end latency dramatically (one study found search-agent latency amplified by over 83× where single-shot retrieval stayed stable), so cutting navigation steps matters far more than it does for one-shot retrieval.
  • Over- and under-fetching: Without a map, an agent either grabs too much (wasting context and money) or too little (missing the answer); in agentic retrieval-augmented generation (RAG), every extra token is a real cost, and a curated index narrows it toward the pages that matter.
  • Sustainable retrieval: Navigating only to query-relevant pages is more efficient over the long run than parsing an entire website on every request; research on agent-native retrieval shows pre-compiled links can cut an agent's reading to roughly 2.5–3.9 pages per query, and academics strongly urge widespread adoption of this standard to make retrieval more sustainable.
  • Consistency and grounding: Pointing agents at authoritative, pre-flattened source material keeps answers consistent across interactions and reduces the room for hallucination.

The file gives the model a curated, pre-flattened map, so it doesn't have to guess what is important or crawl everything to find out.

Who llms.txt Is Designed For

llms.txt is a protocol designed for LLM-based models (e.g., ChatGPT, Claude, Gemini) and the agentic systems built on top of them. But the thing that actually visits your site and fetches the file is rarely the model itself. It's usually one of two things:

  • An AI agent or assistant acting on a user's behalf — for example, a coding assistant pulling your documentation into its context, or a browsing agent completing a task on your site.
  • An AI crawler or bot collecting content for a platform.

llms.txt is written for all of them. Throughout this chapter, when we say a system "reads" or "honors" the file, we mean this layer of agents, assistants, and bots — not the raw model weights. The mental model is a familiar one: sitemap.xml tells a search engine where your pages are for SEO; llms.txt tells an AI agent which content matters and what's in it.

What an llms.txt File Must Include

Only two elements are strictly required:

  • An H1 header with the name of your project, product, or site.
  • A blockquote (or, in practice, an opening summary) describing what it is.

Everything after that is adaptable to your own site's structure, products, entities, content, and links — and if you stop at the two required lines, the file is effectively useless. The value is entirely in what you add next: a short description and well-chosen resource sections.

For the description, aim for the kind you'd give a new team member: precise enough to be useful, short enough to be read. This is covered in depth in the implementation guide in the appendix.

Here's a sample of how an llms.txt file might look for ipullrank.com:

# iPullRank
> iPullRank is an enterprise SEO and content marketing agency specializing in
> Relevance Engineering, Generative Engine Optimization (GEO), and AI Search
> strategy. This file points AI agents to our highest-value reference content.

## Learn AI Search & GEO
- [The AI Search Manual](https://ipullrank.com/ai-search-manual): 25-chapter guide to being visible in AI Search. (~180k tokens)
- [How AI Mode Works](https://ipullrank.com/how-ai-mode-works): Patent-based breakdown of Google's AI Mode. (~12k tokens)

## Services
- [Relevance Engineering](https://ipullrank.com/services/relevance-engineering): What it is and how we deliver it. (~3k tokens)
- [Generative AI Services](https://ipullrank.com/services/geo): AI Search strategy engagements. (~3k tokens)

## Optional
- [Case Studies](https://ipullrank.com/case-studies): Client results across SEO and content. (~5k tokens)
- [Best of Mike King](https://ipullrank.com/resources/best-of-mike-king): Founder's foundational talks and writing. (~4k tokens)

Token counts above are illustrative, included to show the "budget context before fetching" convention rather than to report exact figures. And yes, there's an irony in using iPullRank as the worked example: our own guidance in Content Engineering for LLM-Centric Discovery lists llms.txt among the files most sites don't need.

How to Organize an llms.txt File So It's Valid

After the description come zero or more resource sections, each introduced by an H2 heading and containing a list of links. Each link should carry a short description telling the agent what it will find there — a hierarchical, annotated list of documentation pages rather than a bare set of URLs. The strong recommendation is to link to Markdown, which balances structure and readability for a machine consumer; HTML tends to be verbose and noisy, and formats like CSV rarely document functionality well (The implementation guide covers exact link formatting and the syntax quirks of tools that audit these files).

A few conventions make a file useful rather than merely valid:

  • Organize by task or intent, not by product hierarchy. Group links around what someone would want to do ("Tutorials," "API," "Quickstart"), not around your internal org chart or catalog structure.
  • Write descriptions for the agent, not for marketing. Each line should state plainly what's at the link.
  • Consider token counts per page. Some implementations annotate each link with an approximate token count so an agent can budget how much context to pull before it fetches anything.

We'll return to this later in the chapter with a detailed, org-by-org walkthrough of how a company should approach building its llms.txt — customized to its own site structure, products, entities, and knowledge base — rather than generating a generic file and hoping for the best. If you want to jump ahead, visit the accompanying implementation guide.

What llms.txt Isn't: Common Misconceptions, Myths, and the Risks They Carry

This is where most bad advice starts, so it's worth being blunt about three things llms.txt is not.

It is not a robots.txt-style directive. Despite the filename, it controls nothing and blocks nothing. There's no Disallow: equivalent. It's a "here's the good stuff" file, not a "stay out" file. Anyone framing it as access control for AI crawlers has misread the spec.

It is not the same as publishing Markdown copies of your pages. This is the most consequential confusion, because unlike the index file — which is cheap and harmless — maintaining a parallel .md version of every page (or a giant flattened llms-full.txt of your whole site) carries real downside, and the evidence for upside is thin. It has not paid off for the companies that tried it.

Google's John Mueller has pushed back on serving Markdown pages built for LLM crawlers, calling the idea "stupid," questioning why a bot needs a page no user ever sees, and noting that bot-only versions edge toward cloaking. Bing has reportedly said the practice can double crawl load, commonly referred to as ‘index bloat’: two crawlable surfaces for the same content, doubling the fetch budget you spend with no matching gain in retrievability or citation accuracy. And as Jono Alderson argues, the moment you publish a machine-only representation you create a second candidate version of reality, one the system now has to reconcile against your real pages — reintroducing exactly the trust and verification problems the file was meant to remove.

Flattening to Markdown strips not just clutter but judgment and context, and the systems that matter converge on the human-facing page anyway, because it's the cheapest thing to fetch and the easiest to validate. The llms-full.txt dump adds its own risk: handing crawlers and competitors your entire content library in one file is oversharing, not optimization.

The index file is like a map; your full-text pages are the territory — and maintaining a second copy of your territory is a maintenance burden most sites take on for no measurable return.

It is not a ranking or citation signal for AI Search — no matter how the tooling vendors frame it. This is the crux, and it follows from something Ahrefs' Ryan Law put plainly: llms.txt is a proposed standard, and anyone can propose a standard. He joked that he could propose please-send-me-traffic-robot-overlords.txt; unless the major providers agree to honor it, it means nothing. SEO consultant Mark Williams-Cook later made this hypothetical real by demonstration with cats.txt — a parody "standard" that asks you to describe your site in Markdown, include a cat image "for validation," and drop it in your /.well-known/ folder. It is exactly as officially supported as llms.txt (which is to say, not at all), and bots dutifully fetched it anyway.

"But it surfaced information nothing else had." This is the strongest counter-argument, and it deserves a straight answer. Some practitioners report that an AI system did surface content from their llms.txt — occasionally information that existed nowhere else in crawlable form. The most-cited case is an experiment where a team submitted their llms.txt to Google Search Console and saw it cited in AI Mode within days. But look at what actually happened: the file was submitted and indexed as an ordinary URL. It surfaced because it became a normal indexed document that retrieval could pull from — not because AI Mode honors an llms.txt protocol. You'd get the identical result from any indexed page carrying the same text (and most llms.txt pages are indexed). That's not evidence the convention works; it's evidence that a text file, once indexed, behaves like every other text file.

Two consequences follow, and both undercut the visibility pitch. First, if the "unique information" lives only on a surface built for machines and never appears on the site a human visits, you've drifted into cloaking-adjacent territory — the divergence between the human and machine web that Google's guidelines exist to discount, and the pattern Mueller flagged for bot-only Markdown.

Second, where self-published, uncorroborated claims do surface, they surface narrowly. Notice which queries triggered citations in this case study: direct, brand-specific lookups. An agent doing a direct lookup of your site can retrieve and repeat what you say about yourself. But broad-intent synthesis works differently — it favors claims corroborated across multiple independent sources, and a lone file vouching for itself has none.

So the information can appear when someone asks about you (i.e., your brand) by name and the agent goes hunting for validation, while staying invisible in the broader, higher-value queries where you're competing to be recommended at all. That's the opposite of the general AI Search visibility the file is sold to deliver: a self-referential surface that answers "what does this company say about itself," not "who's the best option for this need."

Hidden in every llms.txt crawl log, there's a lesson: agents will ping any file you publish — real or not. But that fetch tells you nothing about whether the file specifically shaped an answer. Presence is not adoption. A convention is only as real as the systems that have committed to reading it — and if we're talking about AI Search specifically, so far none have.

Options for Expanding the File

The spec includes a clever mechanism for controlling context size: a special ## Optional section. Links placed there are treated as lower-priority and can be dropped when a reader needs to save tokens. That produces three tiers:

  • llms.txt: The base file: intro, description, and resource sections with links left unexpanded.
  • llms-ctx.txt: The same with linked content expanded inline, excluding the Optional section.
  • llms-ctx-full.txt: Everything expanded, Optional section included.

You don't build these by hand. The llms-txt library generates them from your source file (via the llms_txt2ctx CLI or as a Python module), and a companion tool, pysymbol-llm, can auto-generate an apilist.txt API reference from your existing docstrings. On an nbdev/Quarto project, both can be wired into the build so the files regenerate on every render.

The judgment call: expansion is worth it only when a real tool will consume the extra context, so only for developer documentation feeding AI coding assistants. If you're a marketing, ecommerce, or content site with no docs and no agent use case, the context variants and API lists are maintenance you'll never see a return on. Build the base file if you must; skip the machinery.

The Bottom Line

To summarize, llms.txt is a real, sensible convention designed to solve several genuine but narrow problems:

  • Giving LLMs a concise, pre-flattened map of your content so they don't have to parse messy HTML or crawl everything to understand your structure.
  • Saving tokens and context for AI coding tools consuming developer documentation and API references.
  • Letting an agent orient itself on your site at browse time with less crawling.
  • Deliberately managing how much context a consumer pulls in, through the Optional section and the ctx / ctx-full variants.
  • Serving as a clean, structured input for your internal team work — entity research, content audits, and site-structure analysis.

That being said, llms.txt is also the most over-adopted and over-hyped "tactic" in the current toolkit, sold widely as an approach that will improve AI Search and agentic retrievability and citations of site content. Tens of thousands of sites have added it for a purpose it was never designed to serve and, as far as anyone can measure, does not serve.

The goal of the rest of this chapter is to separate those two things cleanly, so you know exactly when the file earns its place on your roadmap and when it is a distraction dressed up as a quick win.

What Each Major System Honors

Here is the state of support as of mid-2026. The pattern is consistent: no major LLM or AI Search provider has committed to consuming llms.txt as a retrieval or ranking input.

System/layer

Uses llms.txt for AI Search visibility?

What it actually does

Google AI Overviews / AI Mode

No

Relies on standard crawling and indexing; the "mythbusting" guidance states special files are not needed for generative AI search

OpenAI (ChatGPT, ChatGPT Search)

No commitment

No documented use of the file for retrieval or citation

Anthropic (Claude)

No commitment for ranking

Publishes its own llms.txt for its docs; Claude Code fetches dev-doc files at browse time

Perplexity

No commitment

In the wild, fetched llms.txt less often than a chat app's link-preview bot

Chrome / Lighthouse (agentic browsing)

Audits for presence; optional

Treats the file as a token-saving aid for agents browsing your site; a missing file scores "Not Applicable," not "fail"

AI coding tools (Claude Code, Cursor, and similar)

Yes, in practice

Consume a curated docs index to save tokens and context while assisting developers

Two entries deserve emphasis because they are the source of most of the confusion.

Google folded llms.txt into its Agent2Agent (A2A) protocol in 2025, which sounds like endorsement. It is closer to nesting one proposed protocol inside another. Google has not committed to crawling the file for Search, and its own AI features guidance points the other way.

The Lighthouse audit is real, but read what it is: a check inside agentic browsing, a layer concerned with how an agent navigates your live site in real time, not how your content gets retrieved into an AI Overview or a ChatGPT answer. The audit even marks absence as Not Applicable, which is about as soft a signal as a check can give. Treating a discoverability nicety for browse-time agents as a visibility lever for AI Search conflates two different layers of the stack (see The Evolution of Information Retrieval: From Lexical to Neural for why retrieval and browsing are not the same pipeline).

The Evidence: Two Studies, One Verdict for llms.txt

The strongest reason to stop treating llms.txt as an AI Search tactic is that two independent studies, using different data and different methods, reached the same conclusion.

Nobody fetches it. Ahrefs analyzed server logs and live traffic across 137,000 domains in May 2026. Among the 28% that published an llms.txt file (an upper-bound figure, since Ahrefs' user base skews technical and SEO-aware), 97% of those files received zero requests for the month. No bots, no humans, nothing. Of the 3% that were fetched at all, 96% of requests came from bots, and 77% of those bots were not AI tools — they were SEO auditors, tech-profiling crawlers, general web crawlers, and the GEO/AEO tools built to study llms.txt itself. Among the named AI agents that did fetch files, GPTBot led, and Claude Code came second, both of which point to developer-documentation and coding-assistant use, not AI Search retrieval. The detail that should end the debate: Slackbot's link-preview bot fetched llms.txt files more often than PerplexityBot did.

The most telling finding of all is that AI bots made zero requests for llms.txt files that did not exist. They never go looking. A file nothing seeks out cannot create discovery.

Even when it exists, it does nothing measurable. SE Ranking came at the question from the opposite direction, analyzing roughly 300,000 domains for any relationship between publishing llms.txt and getting cited by LLMs. Adoption in their broader sample was about 10%. They found no correlation between the file and AI citations, in both statistical analysis and a machine-learning model. The sharpest result: removing llms.txt as a variable from their XGBoost model actually improved its accuracy, meaning the file behaved as noise rather than signal.

So the two failure modes stack. Ahrefs shows almost nothing requesting the file. SE Ranking shows that even where it is present, it does not move citations. Mueller's "temporary crutch" framing may be the most accurate one-line summary of these experiments and the adoption to date.

The Narrow Cases Where llms.txt Is Useful

None of this makes llms.txt worthless. It makes it specific. There are three situations where the file does real work, and the common thread is that the consumer is an agent or tool operating at browse time on documentation, not a search system deciding what to cite.

1. Developer documentation consumed by AI coding tools. This is the original use case and the one that still holds up. If your product has docs that developers feed into Claude Code, Cursor, or a similar assistant, an llms.txt index (and clean Markdown docs behind it) saves tokens and improves how those tools navigate your reference material. This is why Anthropic, Mintlify, Cloudflare, and other dev-doc-heavy properties publish them. The file pays off because real tools really fetch it for real tasks.

2. Agentic browsing efficiency. As more workflows route through agents that navigate your live site to complete a task (covered in From Search to Action: The Era of AI Automation), a concise map of your key pages can reduce how much an agent has to crawl to orient itself. This is the Lighthouse rationale. It is a real, if currently small, benefit, and it is forward-looking rather than something paying off today, because the agentic browsing market is small today, though growing. One place this might be useful is an ecommerce site with a massive product catalog.

3. Your own analysis. A flattened, Markdown-clean version of your site is a useful input for you or your team — for entity research, content auditing, site-structure analysis, and feeding your own internal tooling. Several SEO practitioners build the file primarily for this reason and treat any external benefit as incidental.

Notice what is absent from this list: "appearing in ChatGPT answers," "winning AI Overviews," "earning Perplexity citations." Those are the reasons most teams adopted the file, and they are precisely the outcomes the evidence does not support.

How to Build an llms.txt Without Over-Investing

If you fall into one of the valid cases, the file is cheap to produce, and cost is the whole point: keep the investment proportional to a narrow, mostly-future benefit. The build differs by organization type, and the full decision matrix, a starter template, and a validation checklist live in the implementation guide in the appendix.

The short version:

  • WordPress and WooCommerce sites can generate the file automatically. Yoast SEO added one-click llms.txt generation across its WordPress, WooCommerce, and Shopify products, so there is no manual upkeep. Keep in mind that Yoast's "control the narrative" framing oversells the visibility payoff relative to what the studies show.
  • Documentation platforms like Mintlify generate llms.txt natively. If your docs are the asset, this is the case that justifies the file, so turn it on.
  • Custom and enterprise sites can use a generator (Firecrawl and others) for a first pass, then wire regeneration into CI so the file stays current as content changes. A stale index is worse than none, because it actively misdirects the few tools that read it.

Across all of them, the same rule applies: do not build hundreds of .md page copies or a giant llms-full.txt unless you have a specific consumer that will use them. Unmaintained machine-readable files are a liability, and there are better ways to surface content to agents for most websites that fall outside the genuine use cases.

The Strategic Call: Where This Belongs on Your Roadmap

The mistake is not publishing llms.txt. The file is cheap and harmless. The mistake is budget — the hours, the vendor spend, and the strategic attention that get diverted toward a file with no demonstrated effect on AI Search visibility, and away from the things that demonstrably do move it.

If your goal is to be retrieved, cited, and surfaced inside AI answers, the levers are the ones this manual has been building toward, not a text file at your root. Your content has to be relevant to the constellation of subqueries a system generates during fan-out (Query Fan-Out, Latent Intent, and Source Aggregation). Your entities have to be unambiguous and consistent across your footprint so systems can categorize what you offer and who you serve (How to Appear in AI Search Results (The GEO Core) and Relevance Engineering in Practice (The GEO Art)). And your content architecture has to cover the specific contexts your audience carries, not just exist in a tidy index (Content Engineering for LLM-Centric Discovery). None of that is replaced, shortcut, or meaningfully helped by an llms.txt file.

One important note before we wrap up: agents already consume several established surfaces, and those deserve your attention before any speculative protocol.

If your goal is to be legible to automated pipelines and browsing agents, invest where the machines actually look:

  • RSS/Atom feeds: For content-heavy and publishing sites, a clean, complete feed is the single highest-leverage thing you can offer an agent. Feeds are pre-structured, noise-free, and universally parseable, which is why every agent framework ingests them out of the box — and why heavy-JavaScript sites with no feed routinely get dropped from automated curation pipelines.
  • Clean semantic HTML with server-side rendering: The human-facing page is the surface agents converge on, because it's the cheapest to fetch and easiest to validate; content buried behind client-side JavaScript is content an agent may never see.
  • Schema.org structured data: A widely honored machine-readable layer that describes your entities and their relationships, rather than a speculative file that describes them to no one.
  • Feeds, APIs, or an MCP server: For data-heavy, commerce, or real-time content (inventory, pricing, availability), structured endpoints are becoming the integration layer that agentic systems retrieve from directly.
  • XML sitemaps: The unglamorous discovery file that AI and search crawlers demonstrably do use, unlike llms.txt.

And for the broad-intent queries where you're competing to be recommended at all, the most important surface isn't one you own: earning genuine mentions on the independent, high-authority sources an AI system already cites is what corroborates your claims — the exact validation a self-referential file (or a self-published listicle naming you the best alternative) can never provide.

So treat llms.txt for what it is. If you ship developer documentation, publish llms.txt and maintain it, because real tools fetch it. If you are preparing for an agentic future, add it as low-priority hygiene and move on. If you are doing your own content analysis, generate one and use it internally. But if a tool, a plugin upsell, or a vendor pitch is telling you that llms.txt is how you win AI Search visibility, hold it against the evidence: 97% of these files are never read, and the ones that are get read mostly by bots that are not even AI tools. The file solves a small problem well. Asking it to solve the big one is how you spend a quarter optimizing for an audience that never shows up.

We don't offer SEO.

We offer
Relevance
Engineering.

If your brand isn’t being retrieved, synthesized, and cited in AI Overviews, AI Mode, ChatGPT, or Perplexity, you’re missing from the decisions that matter. Relevance Engineering structures content for clarity, optimizes for retrieval, and measures real impact. Content Resonance turns that visibility into lasting connection.

Schedule a call with iPullRank to own the conversations that drive your market.

Blue trophy with a gold star on a base labeled "The Rank Report", holding analytics printouts, with yellow blocks, a rising line graph and "+40%"

APPENDICES

The appendix includes everything you need to operationalize the ideas in this manual, downloadable tools, reporting templates, and prompt recipes for GEO testing. You’ll also find a glossary that breaks down technical terms and concepts to keep your team aligned. Use this section as your implementation hub.

//.eBook

The AI Search Manual

Cutout of a retro robot and a young man reading a map together

The AI Search Manual is your operating manual for being seen in the next iteration of Organic Search where answers are generated, not linked.

Want digital delivery? Get the AI Search Manual in Your Inbox

Prefer to read in chunks? We’ll send the AI Search Manual as an email series—complete with extra commentary, fresh examples, and early access to new tools. Stay sharp and stay ahead, one email at a time.

Want the AI Search Manual

In Bites-Sized Emails?

We’ll break it up and send it straight to your inbox along with all of the great insights, real-world examples, and early access to new tools we’re testing. It’s the easiest way to keep up without blocking off your whole afternoon.

Retro robot and a young man reading a map together, overlaid with yellow pixel shapes