Skip to content

ci(agent-files): raise the llms-full.txt cap to 8 MB to match the MCP (LIN-5175) - #408

Merged
RathodDarshil merged 1 commit into
mainfrom
darshil/llms-full-8mb
Nov 27, 2026
Merged

RathodDarshil merged 1 commit into
mainfrom
darshil/llms-full-8mb

Conversation

@RathodDarshil

Copy link
Copy Markdown
Collaborator

Docs PRs that add text fail the build because llms-full.txt is now 1,999,922 bytes and the docs check caps it at 2,000,000. The MCP that reads this file has accepted up to 8,000,000 since mcp-server#36 (17th November 2026), which is the version running in prod. This PR raises the docs check to the same 8 MB.

Related: LIN-5175, which raised the MCP limit.

Changes

  • scripts/check-agent-files.ts: cap is now MCP_MAX_BYTES = 8_000_000, with a note on where the number comes from.
  • README.md: the llms-full.txt row says 8 MB.
Before After
Docs check cap 2,000,000 bytes 8,000,000 bytes
MCP cap (prod prod-mcp-v0.24.0-c65378e) 8,000,000 8,000,000
Live llms-full.txt 1,999,922 bytes unchanged

Testing

  • bun run check and bun run build:relay pass: "llms-full.txt 167 pages (2.00 MB)".
  • Padded the built file to 3.0 MB: check passes. Padded to 8.1 MB: check fails with "the MCP reads at most 8,000,000".
  • Opus pre-push review: Critical/Major none. It confirmed the docs check counts bytes and the MCP counts UTF-16 units, so the docs check is never looser than the MCP. Nothing else reads llms-full.txt (glaze and hazelnut read llms.txt; semantic search calls the backend).
  • Not tested: the MCP reading a file above 2 MB on prod. It will first happen when a docs PR pushes the file past 2 MB.

Risk

🤖 Generated with Claude Code

… (LIN-5175)

The docs check still capped llms-full.txt at 2,000,000 bytes, but the MCP's
search_documentation has read up to 8,000,000 since mcp-server#36. main was 78
bytes under, so docs PRs that add text failed the build.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@RathodDarshil
RathodDarshil merged commit 2f3e293 into main Nov 27, 2026
5 checks passed
@RathodDarshil
RathodDarshil deleted the darshil/llms-full-8mb branch November 27, 2026 11:44
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.

1 participant