Check 39.08 · llms.txt and AI formats (experimental)

Evaluate llms-full.txt for documentation

Decide whether your documentation should publish an llms-full.txt: size in tokens, real readers, splitting by section, Mintlify, GitBook and Docusaurus tools.

Priority
Experimental
Difficulty
Intermediate
Estimated time
2 to 4 h
Free, no account: your progress is saved in this browser.

Ask an AI to check this point on your site

Opens the assistant with a ready-made question: this check, its goal and your site URL.

For Gemini, Copilot or another assistant, copy the question. The link opens the chosen service directly: nothing goes through this site.

In short

llms-full.txt is a single file that gathers the full text of a documentation set in Markdown. It is not part of the llmstxt.org proposal: it is a convention adopted by documentation platforms. It is useful when the documentation is short enough to fit in a model's context and a developer gives it to their assistant to read. Beyond that, files per section or just the Markdown versions of the pages work better. Once this check is done, you have measured your documentation and chosen between a full file, files per section, or none.

Why it matters

The llms.txt proposal describes an index: a short file listing the pages, which the agent reads before following the useful links. Its version 2, published in August 2026, confirms this way of reading and removes the llms_txt2ctx tool that the first version described for expanding the file into a full context. The “all-in-one” file does not appear in it. It spread through the platforms: Mintlify, GitBook, and the Docusaurus and VitePress plugins generate it, often by default.

Its benefit is concrete: a developer pastes a single URL into their coding assistant and gives it the whole documentation in one request, instead of hundreds of pages. Its limit is just as concrete: size. Measured on November 25, 2026:

Documentation Size of llms-full.txt
Cloudflare developer documentation (global file) about 72 MB
Anthropic's Claude Platform about 56 MB
Vercel about 13 MB
OpenAI (developers.openai.com) about 10 MB
Cloudflare Workers (file for that product only) about 5.6 MB
Svelte about 1.3 MB
GitBook about 0.5 MB
VitePress about 0.2 MB

Stripe, for its part, publishes an llms.txt but no llms-full.txt. These figures change every week; they show the gap between a small documentation set and a large one.

To estimate the volume in tokens (the units of text the model processes), the usual approximation is one token per four bytes; Cloudflare uses it to estimate the savings from its Markdown conversions. A 1 MB file therefore represents roughly 250,000 tokens, and a file of several tens of megabytes far exceeds what a model reads in one go. The agent then has to truncate, search within the file or give up. Mintlify, for that matter, adds a note about possible truncation when its file exceeds 100 KB.

What it improves

  • Coding assistants A short documentation set becomes usable in a single request, without page-by-page navigation. This is the most concrete use.
  • Your customers' integrations A single file is easy to import into an internal documentation search tool.
  • Generative engines' indexing crawlers No documented use. No practice guarantees a citation or a recommendation.
  • Ranking in Google or Bing No effect. Google states that no special AI text file is needed for its AI features.
  • Costs A possible negative effect. A file of several megabytes downloaded regularly by crawlers consumes bandwidth.

How to check

1. Does the file exist, and how large is it?

curl -s -o /dev/null -w "%{http_code} %{content_type} %{size_download} bytes\n" https://docs.example.com/llms-full.txt

A 200 with a text/plain or text/markdown type: the file exists. A 200 text/html indicates an error page or home page served in its place.

2. How many tokens, and how many pages?

curl -s https://docs.example.com/llms-full.txt -o llms-full.txt
wc -c < llms-full.txt | awk '{printf "%.1f MB, about %d tokens\n", $1/1048576, $1/4}'
grep -c '^# ' llms-full.txt

The last command counts level-1 headings, usually one per page.

3. Is the content usable? Open the file and check three points: each page starts with its title, the source URL of each page is given, and no component leftovers (<Tabs>, import, HTML tags) clutter the text.

4. Is the file up to date? Compare a recently modified page on the site and in the file.

How to implement

Step 1 — Measure the documentation

If the file does not exist yet, measure the source: add up the size of the Markdown files in the documentation repository.

find docs \( -name "*.md" -o -name "*.mdx" \) -print0 | xargs -0 cat | wc -c | awk '{printf "%.1f MB, about %d tokens\n", $1/1048576, $1/4}'

Do the same for each section (docs/api, docs/guides…): the decision is often made section by section.

Step 2 — Identify the real readers

Reader What it does with the file Size it can handle
Developer who pastes the URL into a coding assistant reads it in full, in one go the context window of their model
Agent navigating from llms.txt prefers targeted Markdown pages not applicable: it follows links
Customer feeding an internal documentation search tool automatic import and chunking high
Training crawler collects it, like any other URL high, at the cost of your bandwidth

If your logs already show requests for /llms-full.txt, identify their user agents: see check whether the targeted systems read these files (opens in a new tab).

Step 3 — Choose the format

The thresholds below are rules of thumb from practice, not a rule of the proposal or of any engine:

Documentation size Recommended decision
Under 100 KB (about 25,000 tokens) a single llms-full.txt
From 100 KB to 2 MB one file per section (getting started, guides, API reference), listed in llms.txt
Over 2 MB one file per product or per section, or none: rely on llms.txt and the Markdown versions of the pages (opens in a new tab)

Cloudflare illustrates the split: its main llms.txt points to an llms.txt per product, and each product has its own llms-full.txt.

Two criteria can tip the decision:

  • How often it changes: a full file regenerated at every deployment is not a problem; a file maintained by hand quickly becomes wrong.
  • Sensitive content: a full file picks up everything, including what the navigation hides. First complete the exclude confidential data (opens in a new tab) check.

Step 4 — Structure the file

Whatever the tool, the file must let a model know where each passage comes from:

# Planifia — Complete documentation

> Documentation for the Planifia API and software. Version 4.2, generated on 25/11/2026.

# Authentication

Source: https://docs.example.com/api/authentification

Every API request requires a token sent in the Authorization header...

# Create a job

Source: https://docs.example.com/api/interventions/creer

Order the pages as in the navigation, from getting started to the reference. Exclude the full changelog, marketing pages and team pages, which use up context without helping to answer.

Documentation platforms

Mintlify generates llms.txt and llms-full.txt at the root of the site, with no setup. Hidden pages and noindex pages are excluded. To replace the generated file, place an llms-full.txt file at the root of the project; deleting it restores automatic generation.

GitBook automatically publishes llms-full.txt at the root of the documentation site. Hidden pages are included: move internal content out of the published space.

Docusaurus

Versions Docusaurus 3 with docusaurus-plugin-llms 0.6.

Install the plugin (npm install docusaurus-plugin-llms --save-dev), then declare it in docusaurus.config.js. This example produces one full file per section in addition to the index:

module.exports = {
  plugins: [
    [
      'docusaurus-plugin-llms',
      {
        generateLLMsTxt: true,
        generateLLMsFullTxt: false,
        excludeImports: true,
        removeDuplicateHeadings: true,
        ignoreFiles: ['interne/**', 'changelog/**'],
        includeOrder: ['demarrage/**', 'guides/**', 'api/**'],
        customLLMFiles: [
          {
            filename: 'llms-full-guides.txt',
            includePatterns: ['guides/**'],
            fullContent: true,
            title: 'Planifia — Guides',
          },
          {
            filename: 'llms-full-api.txt',
            includePatterns: ['api/**'],
            fullContent: true,
            title: 'Planifia — API reference',
          },
        ],
      },
    ],
  ],
};

generateLLMsFullTxt defaults to true: set it to false if you choose to split. Run npm run build and check the files in the build/ folder. Then add the per-section files to your llms.txt, under ## Optional for example.

Generating the file yourself

Without a platform or plugin, a script is enough if the documentation is already written in Markdown. Run it at build time, from the root of the repository:

#!/usr/bin/env bash
set -euo pipefail

base="https://docs.example.com"
out="public/llms-full.txt"

{
  printf "# Planifia — Complete documentation\n\n"
  printf "> Generated on %s from %s.\n\n" "$(date +%d/%m/%Y)" "$base"

  find docs -name "*.md" -not -path "docs/interne/*" | sort | while read -r file; do
    slug="${file#docs/}"
    slug="${slug%.md}"
    printf "\n\nSource: %s/%s\n\n" "$base" "$slug"
    awk 'NR == 1 && /^---$/ { fm = 1; next } fm && /^---$/ { fm = 0; next } !fm' "$file"
  done
} > "$out"

wc -c < "$out"

The awk command strips the YAML front matter at the top of each file, without touching the --- separators in the text. Alphabetical sorting serves as the default order; prefix the folders (01-demarrage, 02-guides) to follow the navigation.

Nginx

Versions Nginx 1.24 and later.

Serve the file as UTF-8, compressed, with a short cache lifetime:

location ~ ^/llms(-full)?[a-z-]*\.txt$ {
    charset utf-8;
    gzip on;
    gzip_types text/plain;
    add_header Cache-Control "public, max-age=3600";
    try_files $uri =404;
}

A text file compresses very well: compression greatly reduces the bandwidth consumed by crawlers. Reload: sudo nginx -t && sudo systemctl reload nginx.

Apache

Versions Apache 2.4.

In the .htaccess file at the root of the documentation site:

AddCharset utf-8 .txt

<IfModule mod_deflate.c>
    AddOutputFilterByType DEFLATE text/plain text/markdown
</IfModule>

<IfModule mod_headers.c>
    <FilesMatch "^llms.*\.txt$">
        Header set Cache-Control "public, max-age=3600"
    </FilesMatch>
</IfModule>

Step 5 — Test with an assistant

Give the file's URL to two or three assistants (Claude, ChatGPT, a coding assistant) and ask five questions whose answers are on different pages. For each question, note: correct answer, source cited, sign of truncation (“the file is too long”, an answer limited to the beginning of the document). Repeat the test with the llms.txt URL alone. If the results are equivalent, the full file adds nothing and can be dropped.

Good to know: this test shows what an assistant does when given the URL. It says nothing about spontaneous use of the file by generative engines, which no vendor documents.

Common mistakes

  • Publishing a file of several tens of megabytes thinking it helps agents: no model reads it in one go.
  • Leaving the default generation without reviewing it: MDX components, imports and internal pages end up in the file.
  • Leaving out the source URLs: the model can neither cite nor point to the right page.
  • Maintaining the file by hand: it drifts from the documentation at the first update.
  • Forgetting to list it: an llms-full.txt or per-section files missing from llms.txt are only discovered by tools that guess their name.
  • Serving the file without compression: the bandwidth consumed by crawlers rises needlessly.

Frequently asked questions

Is the llms-full.txt file part of the llms.txt proposal?

No, llms-full.txt does not appear in the proposal published on llmstxt.org. It is a convention spread by documentation platforms such as Mintlify and GitBook, and by Docusaurus or VitePress plugins. Version 2 of the proposal, published in August 2026, describes an index that the agent reads before following links to Markdown pages, which makes the full file optional.

What is the maximum size for an llms-full.txt file?

No maximum size is set for llms-full.txt. In practice, count about one token per four bytes: a 100 KB file represents roughly 25,000 tokens and remains readable in one go by most assistants, whereas a file of several megabytes exceeds their context window. Beyond a few hundred kilobytes, split it by section or rely on the Markdown pages.

Should llms-full.txt be published in addition to llms.txt?

Publish llms-full.txt in addition to llms.txt only if your documentation is short, generated automatically and read by developers who hand it to a coding assistant. For large documentation, the full file becomes too big to be useful. A well-written llms.txt index, complemented by Markdown versions of the pages or by per-section files, is then more helpful.

Does the llms-full.txt file improve visibility in ChatGPT or Google?

No effect of llms-full.txt on visibility in ChatGPT, Gemini or Google is documented. Google states that no special AI text file is needed to appear in its AI features, and no generative engine vendor describes using this file to choose its sources. Its value is practical: giving an assistant complete documentation when a user asks it to.

Updated on

Topic checklist (PDF)

And now?

In the “llms.txt and AI formats (experimental)” topic

  1. Assess a real use case for llms.txt
  2. Briefly describe the site
  3. List the main pages
  4. List official documentation, products, services and resources
  5. Use absolute URLs
  6. Keep the file up to date
  7. Exclude confidential data
  8. Evaluate llms-full.txt for documentation
  9. Evaluate Markdown versions
  10. Check whether the targeted systems read these files
  11. Measure the benefit before investing further