Skip to content

Publish llms.txt and llms-full.txt for coding agents - #82

Merged
czj merged 2 commits into
mainfrom
llms-txt
Nov 25, 2026
Merged

czj merged 2 commits into
mainfrom
llms-txt

Conversation

@czj

@czj czj commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

Coding agents know little about this gem: it is newer than most of their training data, and its website is HTML written for people. The llms.txt convention (https://llmstxt.org) gives them a short index and one Markdown file to read instead.

script/llms_docs.rb writes both into docs/ from the README and the website's pages, and the Docs job fails when they fall behind. The same script ships in super-slim, agentry, gamba, crumbly and maptain.

  • An index: docs/llms.txt lists every page with its <title> and meta description, the benchmarks, changelog and source under Optional.
  • One file to read: docs/llms-full.txt is the README, then every page but the home page converted to Markdown (code blocks with their language, tables, absolute links). Numbers a page loads with JavaScript point to benchmarks.json instead.
  • Kept current: bundle exec rake docs:llms rewrites them, docs:llms:check runs in CI (the job is now named Docs). Nokogiri is pinned like Rouge, since the check compares bytes.
  • Bot sync: the weekly bot-sync pull request rewrites the two files with the pages it renders, so it stays green.
  • Pointed to: a line in the README, and a rule in AGENTS.md.
Sizes

docs/llms.txt: 1687 bytes. docs/llms-full.txt: 58409 bytes, about 14k tokens, from the README and 4 pages.

script/llms_docs.rb writes an llms.txt index and an llms-full.txt Markdown copy of the README and website pages into docs/; the Docs CI job checks them.

Assisted-by: Claude Opus 5.5 [Claude Code]
@czj
czj enabled auto-merge (squash) November 25, 2026 12:34
Comment thread script/llms_docs.rb Fixed
Comment thread script/llms_docs.rb Dismissed
Takes the text of the title instead of stripping tags with a regular expression, which CodeQL flagged as incomplete sanitization. The output is the same.

Assisted-by: Claude Opus 5.5 [Claude Code]
@czj
czj merged commit 628ae6e into main Nov 25, 2026
19 checks passed
@czj
czj deleted the llms-txt branch November 25, 2026 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants