1. Introduction

The llms.txt proposal [1] asks sites to publish a Markdown file at /llms.txt. It contains an H1 title, an optional blockquote summary, optional free text, and zero or more H2 sections whose bodies are “file lists” of Markdown links with optional descriptions. Agents and crawlers use these files to decide what to fetch. Several parsers exist. We ask whether they produce the same title, section structure and link list for the same file, and how often a parser fails outright on input another parser accepts.

AnswerDotAI publishes the proposal and the Python llms-txt package [1, 2]. npm hosts several TypeScript or JavaScript parsers, including @25xcodes/llmstxt-parser [3] and parse-llms-txt [4]. Other projects (for example LlmsTxtKit for .NET) document their own behavioural tests. We found no published differential that runs one fixture corpus and a real-file sample through the reference Python parser and independent JavaScript parsers and reports per-file disagreement. Method: differential testing [5].

3. Method

Subjects and versions. llms-txt 0.0.7 on CPython 3.13.5. @25xcodes/llmstxt-parser 1.2.0 and parse-llms-txt 0.0.10 on Node v24.22.1. The versions are in results/versions.txt.

Entry points. Python: llms_txt.parse_llms_file(text). JavaScript: parseLLMSTxt(text) from @25xcodes/llmstxt-parser and parseLlmsTxt(text) from parse-llms-txt.

Normalisation. Each runner maps its parser’s output to {ok, title, summary, sections:[{name, links:[{url,title,description}]}]} (js/run_js.cjs, py/run_py.py). An exception gives ok=false with the message. analyze.py marks a fixture as agreeing only if (a) all three returned without exception, (b) the non-null titles are identical, (c) section counts are equal, and (d) the ordered URL lists are equal. Summaries and descriptions are recorded but not used in the agreement test (see §4.4).

Fixtures. Fourteen small files (Appendix A): a happy path; a file with no summary; Optional sections; a duplicate H2; an H3 nested under an H2; relative links; HTML in a description; *, - and + bullets; a fenced code block in a section; a file with no H1; an empty file; a file with only a title; and a file that ends without a trailing newline.

Reproduce.

git checkout c4e98664f5d9f5b7f345897c339bf553d0dea4ea
cd llmstxt-parsers/js && npm ci && cd ..
python3 -m venv .venv && .venv/bin/pip install llms-txt==0.0.7
PATH=$PWD/.venv/bin:$PATH PY=.venv/bin/python ./run_all.sh

Folder at the pinned commit: https://github.com/buildngrowsv/pubroot-[REDACTED_SECRET]-parsers/

On 2026-11-09 we re-ran run_all.sh from a clean export of that commit. results/js.json, results/py.json and results/summary.json came out byte-identical to the committed files.

4. Results on synthetic fixtures

The parsers disagreed on 11 of 14 fixtures (Appendix B). The three that agreed (basic, optional_section, multi_optional) all have a title, a blockquote summary and only - [title](url) lines in their sections.

4.1 One root cause dominates. All 11 disagreements include a Python exception, so the 11/14 headline mostly measures the reference parser’s strictness. Reading the installed source explains the two messages:

  • TypeError: 'NoneType' object does not support item assignment (9 fixtures). parse_llms_file strips the text before the first H2 and matches it against ^#\s*title\n+(>\s*summary)?\n+info. Both \n+ are required. When nothing follows the H1 line (no summary and no free text), or there is no H1 at all, re.search returns None and the next line, d['sections'] = …, fails. This affected no_summary, duplicate_h2, html_in_desc, nested_heading, relative_links, truncated, only_title, missing_title and empty_file. Their problem is the bare header, not the feature each fixture was built to test.
  • AttributeError: 'NoneType' object has no attribute 'groupdict' (2 fixtures). Every non-blank line inside an H2 section goes through parse_link, which requires -\s*\[title\](url). A * bullet (bullet_variants) or a code-fence line (code_fence) does not match, and the parser fails.

4.2 JavaScript versus JavaScript. The two JavaScript parsers disagreed on 2 of 14. On bullet_variants, @25xcodes returned the * and - links (2) while parse-llms-txt returned only the - link (1); neither returned the + link. On nested_heading, @25xcodes produced two sections (Docs with 0 links and Sub with 1), while parse-llms-txt produced one section (Docs with 1 link). They agreed on the other 12, including relative links (kept verbatim by both), HTML in descriptions (kept verbatim, entities not decoded) and duplicate H2 names (kept as two sections by both).

4.3 Empty and title-only files. Both JavaScript parsers returned an empty structure for the empty file and for the title-only file, while the Python parser raised. A crawler that treats an exception as “no llms.txt” and one that treats an empty structure as “llms.txt with nothing in it” will record different site states.

4.4 Summary field. This field was not part of the agreement test. On the three fixtures the Python parser accepted, its summary was empty and the blockquote line (with its >) appeared in info instead. The regex needs at least one newline after the summary, and the stripped header has none when the blockquote is the last line before the first H2. Both JavaScript parsers returned the blockquote text as the summary.

5. Real-world sample

To test whether these differences matter outside synthetic files, we wrote down 16 well-known documentation hosts before fetching anything. On 2026-11-09 (15:40 UTC) we fetched https://<host>/llms.txt from each with curl, following redirects. One host returned 404 and was dropped, which left 15 files (360,627 bytes in total). Appendix C lists each final URL, byte count and SHA-256 prefix, so a reader can check whether a live file has since changed. We ran the same three runners on these files without modification.

Python parser. It raised on 8 of 15 files, every time with AttributeError from parse_link. The first offending line in each file was: prose under an H2 (bun.sh, platform.claude.com, docs.stripe.com, mintlify.com, nextjs.org), a - bullet with no link (svelte.dev, vercel.com), and a --- horizontal rule (zod.dev). The proposal describes H2 sections as file lists, so these files arguably stretch the format, but they are what publishers actually ship. On the 7 files it accepted, its titles, section counts and URL lists matched both JavaScript parsers exactly. Its summary was populated on 2 of those 7 (uv, Perplexity); on llmstxt.org’s own file, Hono and LangGraph the blockquote ended up in info, as in §4.4.

JavaScript parsers. Titles agreed on all 15. Section counts differed on 3 of 15: platform.claude.com (17 vs 5), docs.stripe.com (43 vs 27) and nextjs.org (9 vs 5). In each case the @25xcodes count equals the file’s H2 count plus its H3 count (5+12, 27+16, 5+4), and the parse-llms-txt count equals the H2 count. This is the nested-heading behaviour from §4.2 at real scale. Link counts differed on 2 files (Stripe 476 vs 478, Next.js 52 vs 54), while the sets of unique URLs were identical (469 and 52). The difference lies in how many duplicate links each parser keeps; we did not trace the mechanism.

Hypothesis: an agent that relies on the reference Python parser and skips files it cannot parse will drop more than half of the popular documentation sites in this sample from its llms.txt index. An agent that uses section names to choose what to fetch will see a different, coarser or finer, menu depending on its JavaScript parser.

6. Threats to validity

  • Synthetic fixtures. The 14 fixtures were hand-written by us to hit edge cases and are deliberately tiny. Several (nine) also have a bare header, which masks the feature they were meant to test in the Python parser. We report this rather than re-cut the fixtures after seeing the results.
  • Sample selection. The 15 real files come from a convenience list of well-known developer-documentation hosts, chosen before fetching but not at random. They are not representative of all llms.txt files, and the 8/15 rate should not be read as a population estimate. Live files change, so the hashes in Appendix C pin what we parsed, and the files themselves are not redistributed in the supporting repository.
  • Normalisation choices. Our adapters decide what counts as a “section” and a “link” for each parser’s output shape. A different adapter could, for example, count the Python parser’s Optional handling or the JavaScript parsers’ extra fields differently.
  • Versions. One version per parser. The proposal and parsers are young and may change; parse_llms_file is generated from a notebook and may be rewritten.
  • Scope. We did not test .NET or other-language parsers, token estimation, or the llms-full.txt companion files.

7. Conclusion

On the same inputs, the reference Python llms.txt parser fails on any file whose header is just a title and on any H2 section containing a line that is not a - [title](url) link. That accounts for all 11 synthetic disagreements and for 8 of 15 real documentation files. The two JavaScript parsers are lenient but differ in how they treat * bullets and H3 headings, which on real files changed section counts by up to a factor of 3.4. Consumers should pin a parser, catch failures explicitly, and avoid treating section structure as stable across tools.

Appendix A. Fixtures (exact contents)

Every line below, separator lines included, is indented by four spaces so that it renders as code. Remove the indent to recover the exact file bytes.

--- basic.txt (133 bytes) ---
# Title One

> Optional summary here.

## Docs

- [Home](https://example.com/): main page
- [API](https://example.com/api): API docs
--- bullet_variants.txt (134 bytes) ---
# Bullets

## Docs

* [Star](https://example.com/s): star
- [Dash](https://example.com/d): dash
+ [Plus](https://example.com/p): plus
--- code_fence.txt (75 bytes) ---
# Code

## Docs

```
not a link
```

- [Real](https://example.com/r): real
--- duplicate_h2.txt (97 bytes) ---
# Title Four

## Docs

- [A](https://example.com/a): a

## Docs

- [B](https://example.com/b): b
--- empty_file.txt (0 bytes; empty) ---
--- html_in_desc.txt (78 bytes) ---
# HTML

## Docs

- [X](https://example.com/x): use <code>foo</code> &amp; bar
--- missing_title.txt (46 bytes) ---
## Docs

- [Home](https://example.com/): home
--- multi_optional.txt (145 bytes) ---
# Multi

> Sum

## Docs

- [A](https://example.com/a): a

## Optional

- [B](https://example.com/b): b

## More

- [C](https://example.com/c): c
--- nested_heading.txt (58 bytes) ---
# Nest

## Docs

### Sub

- [X](https://example.com/x): x
--- no_summary.txt (53 bytes) ---
# Title Two

## Docs

- [Home](https://example.com/)
--- only_title.txt (13 bytes) ---
# Only Title
--- optional_section.txt (139 bytes) ---
# Title Three

> Summary

## Docs

- [Home](https://example.com/): home

## Optional

- [Extra](https://example.com/extra): optional notes
--- relative_links.txt (82 bytes) ---
# Rel

## Docs

- [Local](/docs/index.md): local doc
- [Up](../readme.md): parent
--- truncated.txt (58 bytes; no trailing newline) ---
# Trunc

## Docs

- [A](https://example.com/a): incomplete

Appendix B. Full verdict matrix (synthetic fixtures)

Each cell gives the title, number of sections and number of links, or the exception.

#Fixture@25xcodes/llmstxt-parserparse-llms-txtllms-txt (Python)All agree
1basic.txtTitle One; 1 sec; 2 linksTitle One; 1 sec; 2 linksTitle One; 1 sec; 2 linksyes
2bullet_variants.txtBullets; 1 sec; 2 linksBullets; 1 sec; 1 linkerror: AttributeError (groupdict on None)no
3code_fence.txtCode; 1 sec; 1 linkCode; 1 sec; 1 linkerror: AttributeError (groupdict on None)no
4duplicate_h2.txtTitle Four; 2 sec; 2 linksTitle Four; 2 sec; 2 linkserror: TypeError (item assignment on None)no
5empty_file.txtno title; 0 sec; 0 linksno title; 0 sec; 0 linkserror: TypeError (item assignment on None)no
6html_in_desc.txtHTML; 1 sec; 1 linkHTML; 1 sec; 1 linkerror: TypeError (item assignment on None)no
7missing_title.txtno title; 1 sec; 1 linkno title; 1 sec; 1 linkerror: TypeError (item assignment on None)no
8multi_optional.txtMulti; 3 sec; 3 linksMulti; 3 sec; 3 linksMulti; 3 sec; 3 linksyes
9nested_heading.txtNest; 2 sec; 1 linkNest; 1 sec; 1 linkerror: TypeError (item assignment on None)no
10no_summary.txtTitle Two; 1 sec; 1 linkTitle Two; 1 sec; 1 linkerror: TypeError (item assignment on None)no
11only_title.txtOnly Title; 0 sec; 0 linksOnly Title; 0 sec; 0 linkserror: TypeError (item assignment on None)no
12optional_section.txtTitle Three; 2 sec; 2 linksTitle Three; 2 sec; 2 linksTitle Three; 2 sec; 2 linksyes
13relative_links.txtRel; 1 sec; 2 linksRel; 1 sec; 2 linkserror: TypeError (item assignment on None)no
14truncated.txtTrunc; 1 sec; 1 linkTrunc; 1 sec; 1 linkerror: TypeError (item assignment on None)no

Appendix C. Real-world sample (fetched 2026-11-09 15:40 UTC)

Requests to docs.anthropic.com and mintlify.com redirected to the URLs shown. The 16th host on the list (fastht.ml) returned 404 and is excluded.

#Source (fetched URL)BytesSHA-256 (first 16)@25xcodesparse-llms-txtllms-txt (Python)
1https://bun.sh/llms.txt33834cc9c35f7584eefd5Bun; 2 sec; 321 linksBun; 2 sec; 321 linkserror: AttributeError (groupdict on None)
2https://developers.cloudflare.com/llms.txt1678798a8e406e6189697Cloudflare Developer Documentation; 9 sec; 112 linksCloudflare Developer Documentation; 9 sec; 112 linksCloudflare Developer Documentation; 9 sec; 112 links
3https://platform.claude.com/llms.txt979763c64291aac56f187Anthropic Developer Documentation; 17 sec; 886 linksAnthropic Developer Documentation; 5 sec; 886 linkserror: AttributeError (groupdict on None)
4https://docs.astral.sh/uv/llms.txt5145b88bbf0d23164a7cuv; 7 sec; 55 linksuv; 7 sec; 55 linksuv; 7 sec; 55 links
5https://docs.perplexity.ai/llms.txt43170fb97eab00e3a513ePerplexity; 2 sec; 7 linksPerplexity; 2 sec; 7 linksPerplexity; 2 sec; 7 links
6https://docs.stripe.com/llms.txt991939fd8e8be3ad60198Stripe Documentation; 43 sec; 476 linksStripe Documentation; 27 sec; 478 linkserror: AttributeError (groupdict on None)
7https://hono.dev/llms.txt592705b10a86d9b1f5e9Hono; 3 sec; 94 linksHono; 3 sec; 94 linksHono; 3 sec; 94 links
8https://langchain-ai.github.io/langgraph/llms.txt40061624888e411a0697Docs by LangChain: LangGraph (Python); 1 sec; 43 linksDocs by LangChain: LangGraph (Python); 1 sec; 43 linksDocs by LangChain: LangGraph (Python); 1 sec; 43 links
9https://llmstxt.org/llms.txt6378b45bd6172aba507llms.txt; 1 sec; 3 linksllms.txt; 1 sec; 3 linksllms.txt; 1 sec; 3 links
10https://www.mintlify.com/llms.txt688404e928b6c4b626c1Mintlify; 8 sec; 43 linksMintlify; 8 sec; 43 linkserror: AttributeError (groupdict on None)
11https://nextjs.org/llms.txt145927447b2520f11a9a3Next.js; 9 sec; 52 linksNext.js; 5 sec; 54 linkserror: AttributeError (groupdict on None)
12https://supabase.com/llms.txt3298a852f5ea1b51727eSupabase Docs; 4 sec; 42 linksSupabase Docs; 4 sec; 42 linksSupabase Docs; 4 sec; 42 links
13https://svelte.dev/llms.txt167670c9177e2461eaa3Svelte Documentation for LLMs; 3 sec; 7 linksSvelte Documentation for LLMs; 3 sec; 7 linkserror: AttributeError (groupdict on None)
14https://vercel.com/llms.txt53974ab4c962d55a7b4bVercel; 9 sec; 28 linksVercel; 9 sec; 28 linkserror: AttributeError (groupdict on None)
15https://zod.dev/llms.txt221059cb69930767f177bZod; 17 sec; 326 linksZod; 17 sec; 326 linkserror: AttributeError (groupdict on None)

References

  1. J. Howard. The /llms.txt file (proposal). https://llmstxt.org/
  2. AnswerDotAI/llms-txt (Python package llms-txt). https://github.com/AnswerDotAI/llms-txt
  3. @25xcodes/llmstxt-parser. https://www.npmjs.com/package/@25xcodes/llmstxt-parser
  4. parse-llms-txt. https://www.npmjs.com/package/parse-llms-txt
  5. W. M. McKeeman. Differential Testing for Software. Digital Technical Journal 10(1), 1998.