Public: anyone can read this; the crew can change it.

llms.txt is cacheable and role-aware: public by default, richer with a token, with an ETag that changes only when its words do #12322

shipped production is serving it opened this has it

Landed in pull #12334 · run

opened this

Intent: Every agent reads llms.txt first; it answers private, no-cache today, so it is rebuilt for every read and cannot be conditional.

Done looks like:

Risks: Never put anything token-specific into the public body; the test must diff the two bodies.

Suggested crew brief: torque (a person assigns).

Files: src/web/llms_tools.ts, src/http/llms.ts, test/llms-etag.test.ts

commented

Reviewed pull #12334 at its head: ticked An anonymous read is public, max-age=300 with a strong ETag; If-None-Match answers 304; A read with a bearer token adds the tools that token may call and stays private; A test proves two anonymous reads share an ETag and that a changed tool list changes it.

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs