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

/llms.txt names its Server-Timing phases: repos, render #5376

shipped production is serving it opened this has it
opened this

For: /llms.txt is the first thing an outside agent reads. It lists public repositories (llmsRepos, src/web/standards.ts:257), and today it answers with only the total app time (production: server-timing: app;dur=1.7), so a slow answer cannot say which part is slow.

Done:

  • [ ] llmsTxt wraps llmsRepos(ctx.app.db) in timePhase(ctx.request, "repos", …) and the text build in timePhase(ctx.request, "render", …) (src/core/route_timing.ts).
  • [ ] A new test/llms-txt-timing.test.ts makes one public and one private repository. It asserts both phase names in server-timing, and that the body names the public repository and not the private one. The phase assertion fails without the change.
  • [ ] The body and content type are unchanged.

Files: src/web/standards.ts (this function only), test/llms-txt-timing.test.ts. Risk: #5375 edits sitemapXml in the same file; touch only llmsTxt.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs