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

Keep the file up to date

Keep llms.txt accurate: events that require an update, automatic link checks via cron, GitHub Actions or Laravel, cache purging and a review routine.

Priority
Experimental
Difficulty
Intermediate
Estimated time
1 to 2 h, then ongoing
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

An llms.txt file goes stale as soon as a listed page changes address, disappears or stops being authoritative. Maintaining the file means three things: knowing which events require an update, automatically checking that every link still returns 200, and reviewing the content at fixed intervals with a designated owner. Once this check is done, an error in the file is detected in less than a week, not at the next audit. The format remains experimental: no file is better than a wrong file.

Why it matters

The llmstxt.org proposal describes a file that agents consult to choose which pages to read. It says nothing about maintenance, and no mechanism tells agents that it has changed: there is no standardized update date, nor any equivalent of the lastmod tag in sitemaps.

A file that is no longer maintained causes three kinds of damage:

  • Dead links: the agent hits a 404 error and gives up or looks elsewhere.
  • Redirected links: each link costs an extra request, and the landing page is not always equivalent to the old one.
  • False information: a summary describing a discontinued offer or a smaller service area is read as an official statement.

Automatically generated files do not solve everything. They follow the site's structure, but they also pick up its errors: drafts published by mistake, test pages, a description never reviewed.

What it improves

  • Reliability of the links followed by agents that read the file.
  • Consistency between llms.txt, the sitemap and the pages, see align canonicals, sitemap and internal links (opens in a new tab).
  • Accuracy of the official information picked up by an agent.
  • Controlled cost An automatic check replaces an exhaustive manual review.
  • Citations and ranking No demonstrated effect. No practice guarantees a citation or a recommendation.

How to check

Three questions let you assess the current state in five minutes.

1. Do all the links return 200?

curl -s https://example.com/llms.txt \
  | grep -o -E '\]\(https://[^)]+\)' | sed -E 's/^\]\(//; s/\)$//' | sort -u \
  | while read -r url; do
      printf "%s %s\n" "$(curl -s -o /dev/null -w '%{http_code}' "$url")" "$url"
    done | grep -v "^200"

No output: the file is healthy. Otherwise, every line is a link to fix.

2. When did the file last change?

curl -s -o /dev/null -D - https://example.com/llms.txt | grep -i -E "last-modified|cache-control|age:"

A last-modified more than a year old on a site that publishes every month is a warning sign. For a file versioned in Git, git log -1 --format=%cd -- public/llms.txt gives the date of the last change.

3. Does the file still describe the company? Reread the title and summary: name, offer, area and audience must match the current About page.

How to implement

Step 1 — List the triggering events

Include this table in the team's publishing procedure:

Event Action in llms.txt Who
A reference page is created (offer, pricing, major guide) Add the link and its note Writer
A listed page is deleted Remove the link, or replace it with the page that supersedes it Writer
URL change or redirect Replace with the final URL Developer
A product or service is discontinued Remove the link and check the summary Marketing
New version of the documentation or API Link the maintained version, remove the old ones Developer
Change of name, area or offer Rewrite the title and summary Executive or marketing
Domain change or switch to HTTPS Regenerate every link, see use absolute URLs (opens in a new tab) Developer
Redesign Rebuild the file from the redirect plan Project manager

Step 2 — Set a review routine

Frequency Check Time
Weekly, automatic HTTP code of each link 0 min, alert on failure
Quarterly Review of the summary, the notes and the selection of pages 30 min
Yearly, or during a redesign Reassessment of the file's value, see measure the benefit before investing further (opens in a new tab) 1 h

Assign a named owner, as for any content that changes: see assign an owner to each piece of content (opens in a new tab).

Step 3 — Prefer generation over copying

A file generated from the same data as the site (routes, content database, documentation navigation) follows URL changes without intervention. Keep manual writing for the title, the summary and the notes, and generate the links when your tool allows it. The methods for each environment are in list the main pages (opens in a new tab).

Good to know: the proposal does not provide for an update date in the file. If you add a “Last reviewed” line in the notes, it must reflect a real review. A date changed automatically with no change in content is misleading.

Choose the method that suits your hosting.

Shared hosting

If the hosting provider offers scheduled tasks (Cron Jobs in cPanel, Scheduled Tasks in Plesk), save this script as ~/bin/check-llms.sh:

#!/usr/bin/env bash
set -u

failures=0

for url in $(curl -s https://example.com/llms.txt | grep -o -E '\]\(https://[^)]+\)' | sed -E 's/^\]\(//; s/\)$//' | sort -u); do
  code=$(curl -s -o /dev/null -w '%{http_code}' "$url")

  if [ "$code" != "200" ]; then
    echo "$code $url"
    failures=$((failures + 1))
  fi
done

if [ "$failures" -gt 0 ]; then
  echo "$failures failing link(s) in llms.txt"
  exit 1
fi

Make it executable (chmod +x ~/bin/check-llms.sh), then schedule it every Monday at 7 a.m.:

0 7 * * 1 /home/utilisateur/bin/check-llms.sh

Cron emails any output of the command to the address configured in the control panel: the script writes nothing when all is well.

GitHub Actions

If the site is versioned on GitHub, create .github/workflows/llms-txt.yml:

name: llms.txt check

on:
  schedule:
    - cron: '0 6 * * 1'
  workflow_dispatch:

jobs:
  check-links:
    runs-on: ubuntu-latest
    steps:
      - name: Check the llms.txt links
        run: |
          curl -fsS https://example.com/llms.txt -o llms.txt
          failures=0
          for url in $(grep -o -E '\]\(https://[^)]+\)' llms.txt | sed -E 's/^\]\(//; s/\)$//' | sort -u); do
            code=$(curl -s -o /dev/null -w '%{http_code}' "$url")
            echo "$code $url"
            if [ "$code" != "200" ]; then failures=$((failures + 1)); fi
          done
          test "$failures" -eq 0

A failing link makes the job fail; for a scheduled workflow, GitHub notifies the person who last modified the cron line. To integrate it with your other checks, see integrate SEO, performance and accessibility tests into CI/CD (opens in a new tab).

Laravel

Versions Laravel 12 and 13.

Create app/Console/Commands/CheckLlmsTxtLinksCommand.php:

<?php

namespace App\Console\Commands;

use Illuminate\Console\Command;
use Illuminate\Support\Facades\Http;

class CheckLlmsTxtLinksCommand extends Command
{
    protected $signature = 'check-llms-txt-links';

    protected $description = 'Check that every link of llms.txt answers 200 without redirect';

    public function handle(): int
    {
        $content = Http::get(url('/llms.txt'))->throw()->body();

        preg_match_all('/\]\((https:\/\/[^)\s]+)\)/', $content, $matches);

        $urls = collect($matches[1])->unique();

        $failures = $urls->filter(function (string $url): bool {
            $this->info("Checking `{$url}`...");

            $status = Http::withoutRedirecting()->get($url)->status();

            if ($status !== 200) {
                $this->error("{$status} {$url}");
            }

            return $status !== 200;
        });

        $this->comment("Checked {$urls->count()} links, {$failures->count()} failing.");

        return $failures->isEmpty() ? self::SUCCESS : self::FAILURE;
    }
}

Schedule it in routes/console.php:

use Illuminate\Support\Facades\Schedule;

Schedule::command('check-llms-txt-links')
    ->weeklyOn(1, '7:00')
    ->emailOutputOnFailure('[email protected]');

emailOutputOnFailure assumes mail sending is configured. From the command line, the command uses APP_URL: check that it is set to https://example.com in production.

WordPress

Versions WordPress 6.6 and later; Yoast SEO and Rank Math in their November 2026 versions.

Yoast states that its file is generated and refreshed automatically; Rank Math does not document how often it regenerates. After a significant change (a listed page deleted, permalinks changed), open /llms.txt and check the result; with Rank Math, use the preview link at the top of the Edit llms.txt tab. Links entered by hand in Additional Content do not follow URL changes: check them at each quarterly review. For a static file, apply the cron method above.

Wix

Versions Wix dashboard, paid plans with a custom domain, November 2026.

Wix maintains the file automatically as long as you have not edited it. As soon as you edit it (SEO & GEO, Go to llms.txt, More Actions > Edit file), automatic updates stop: you become responsible for every change. Reset to Default restores automatic generation, at the cost of your edits.

Cloudflare

Versions Cloudflare dashboard, all plans, November 2026.

By default, Cloudflare does not cache .txt files other than robots.txt. If a cache rule does, purge https://example.com/llms.txt after each change in Caching > Configuration, Custom Purge, or in your deployment script:

curl -s -X POST "https://api.cloudflare.com/client/v4/zones/$CF_ZONE_ID/purge_cache" \
  -H "Authorization: Bearer $CF_API_TOKEN" \
  -H "Content-Type: application/json" \
  --data '{"files":["https://example.com/llms.txt"]}'

The API token must have the cache purge permission for the zone.

Nginx

Versions Nginx 1.24 and later.

Limit how long intermediaries cache the file, so that a fix becomes visible quickly:

location = /llms.txt {
    charset utf-8;
    add_header Cache-Control "public, max-age=3600";
    try_files $uri =404;
}

One hour is a compromise, not an official recommendation. Reload: sudo nginx -t && sudo systemctl reload nginx.

Common mistakes

  • Updating the sitemap and forgetting llms.txt: include the file in the same publishing procedure.
  • Checking the HTTP code without rereading the text: a link returning 200 may lead to a page that no longer says what the note announces.
  • Editing a generated file (Wix, WordPress plugin) without knowing that automatic updates stop or that the change will be overwritten.
  • Keeping a redirected link because it “works”: replace it with the final URL.
  • An automatic review date with no real review.
  • Forgetting secondary files (/docs/llms.txt, per-language files) in the automatic check.
  • No one designated: without an owner, the quarterly review never happens.

Frequently asked questions

How often should the llms.txt file be updated?

Update the llms.txt file whenever a page it lists is created, deleted or changes URL, and whenever the offer or the name changes. In addition, check the links automatically every week and review the text every quarter. The llms.txt proposal sets no frequency: the pace at which your site changes determines it.

Should llms.txt include an update date?

The llms.txt proposal does not provide for one, and defines no date field. You can add a last-reviewed mention in the header notes if it corresponds to a real review. Avoid a date changed automatically at each generation with no change in content: it would suggest a check that never took place.

Do WordPress plugins update llms.txt on their own?

Partly. Yoast SEO states that its llms.txt file is generated and refreshed automatically, while Rank Math does not document how often it regenerates. In both cases, links entered by hand do not follow URL changes, and a page published by mistake can appear in the file. Check the file after every significant change to the site and at each quarterly review.

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