What is llms.txt?
llms.txt is a convention proposed for the LLM era: a single Markdown file at your site root that tells AI assistants, crawlers, and agents exactly what your site is about and which pages matter most.
Think of it as robots.txt for understanding instead of crawling, and sitemap.xml for humans instead of machines. One plain-text file, no JavaScript required, instantly parseable by every model and agent.
# agentechip.com
> DevBytes: Practical engineering content for AI-era developers.
## Core pages
- [Home](https://agentechip.com): DevOps & AI content hub
- [DevBytes](https://agentechip.com/posts): Daily engineering articles
Why it matters in 2026
-
LLMs and agents read it directly. ChatGPT, Claude, Perplexity and agent frameworks increasingly check
/llms.txtbefore scraping a site. If the file is missing, they guess from crawled noise. -
GEO (Generative Engine Optimization) is the new SEO. When an AI answers "best way to run local LLMs on a Mac", it cites sources it can parse. A clean
llms.txtmassively improves your odds of being the cited source. - Zero cost, zero risk. It's a static text file. No CDN, no build step, no analytics. Ship it today.
- It compounds with sitemap.xml. Sitemaps tell crawlers where pages live; llms.txt tells models why they matter and how to summarize them.
The format (30 seconds to learn)
- A top-level
#heading with your site name - An optional
>blockquote with a one-line description -
## Sectionswith Markdown links[Title](URL) - Optional
## Noteswith usage guidance for LLMs
That's the whole spec. Order matters: most important links first.
How to generate it automatically (for large sites)
If you have hundreds or thousands of pages, hand-writing is a trap. The practical pipeline:
- Pull your
sitemap.xmland extract all URLs. - Fetch each page's
<title>and meta description (parallel, politely). - Emit
llms.txt(top-level) +llms-full.txt(every page) + a JSON report. - Deploy to
/llms.txtat the site root.
We dogfood this on agentechip.com/llms.txt — 2,600+ pages generated in under 7 minutes with a plain Python stdlib script.
Make it yours
If you run a technical site and want this done in five minutes, I packaged the exact script (stdlib-only, no dependencies, parallel fetch, markdown output, JSON report) as a small product:
It includes the generator script, README, and a worked example you can adapt. Ship your llms.txt today — your future AI visitors will thank you.
Top comments (0)