Skip to content
Ask Sera Search
Ask SeraAnswers from our guides, research and news Search
Learn
Guides
Research
Sectors
Platforms
News
Tools
About

llmstxt.org (Jeremy Howard)Documentation

llms.txt version 2.1 allows relative links with a Base URL line

Version 2.1 of llms.txt lets file lists use relative links with a Base URL line, allows H3 subheadings and drops the Optional section. Docs sites feel it most.

By Promptly Found

  • Links in file lists can now be relative. They resolve against an optional Base URL: line, or else against the address the file was fetched from.
  • H3 and deeper subheadings are allowed in the top details section. H1 stays reserved for the title and H2 for file-list sections.
  • Each H2 section can open with a short summary paragraph before its links.
  • The Optional section convention is gone from the specification. Sections use ordinary descriptive headings.

#llms.txt moves to version 2.1

On November 28, 2026, Jeremy Howard updated the llms.txt proposal to version 2.1, three and a half months after version 2. The changes page lists three edits to the file format: relative links with an optional base URL, subheadings in the top section, and a summary paragraph for each section. The Optional section convention is dropped. Nothing changes in how agents find the file or a page's markdown copy.

The v2.1 (November 2026) entry on the llms.txt changes page, with "allows relative URLs in file lists" and "has been dropped from the specification" highlighted
The v2.1 entry on the changes page. Screenshot from llmstxt.org, with highlights added.

The v2.1 notes give cost as the reason. Repeating a site's full origin on every link "wastes tokens", especially on documentation sites with dozens of pages. Bare relative links work when an agent fetches the file from the docs host. They break when the same file is read from disk, pasted into a prompt or fetched from a mirror such as raw GitHub.

Version 2.1 allows relative links and adds a standalone Base URL: line in the top section, after the summary. Relative links resolve against it. Without it, they resolve against the address the file was fetched from. Parsers add a trailing / if it is missing, and links to other sites stay absolute. The cut-down FastHTML file in the proposal shows the pattern:

Text
Base URL: https://www.fastht.ml/docs/

## Docs

- [FastHTML quick start](tutorials/quickstart_for_web_devs.html.md): A brief overview of many FastHTML features

That link resolves to https://www.fastht.ml/docs/tutorials/quickstart_for_web_devs.html.md.

Our read: a tool that predates version 2.1 sees the Base URL: line as ordinary text. If it resolves relative links the usual way, against the file's own address, and the base URL points somewhere else, for example a root /llms.txt with a base of /docs/, it builds the wrong addresses. A file at /docs/llms.txt with a base of /docs/ resolves the same either way.

The Format section of llms.txt v2.1, with the Base URL line and the reserved H1 and H2 headings highlighted, followed by the mock example
The file format in version 2.1. Screenshot from llmstxt.org, with highlights added.

#Subheadings, section summaries and the end of Optional

The top details section can now hold H3 and deeper subheadings, so longer guides can group their notes. H1 stays reserved for the title and H2 for file-list sections, which, in the v2.1 notes, lets parsers keep the subheadings in the preamble "without breaking section splitting".

Each H2 section can start with a brief summary paragraph before its list, to help agents decide which section's links to follow.

The Optional section is no longer part of the specification or its examples. Version 2 had already taken away its mechanical meaning, a list of links that tools could leave out, but kept it as a convention. Our read: an ## Optional heading is now an ordinary section with an unhelpful name, and an agent has no reason to skip it.

#What to check

  • Open your /llms.txt and any file under a subpath. If one has an ## Optional section, give it a heading that says what its links are.
  • Run the file through the llms.txt checker. It follows version 2.1: it reads the Base URL: line, accepts H3 subheadings in the top section and notes relative links that have no Base URL to resolve against.
  • Before you shorten a docs file to relative links, check whether copies of it get read away from your site, for example from a GitHub repository. Those copies need the Base URL: line to resolve.
  • If you parse llms.txt files in your own tools or audits, update them to accept the Base URL: line, H3 subheadings in the top section and a summary paragraph under each H2.

#What the proposal doesn't say

  • Whether any agent or tool already reads the Base URL: line. Neither page names one.
  • What happens when a Base URL: line points to a different host from the one serving the file.