Size, tokens and timeouts: TOO_LARGE / FILE_SIZE / TOKEN_ESTIMATE / TIMEOUT / BUDGET_EXCEEDED

How large is too large for llms.txt, how tokens are estimated, and what fetch timeouts and an exhausted request budget mean and how to handle them.

About 2 min readError codes covered: TOO_LARGEFILE_SIZETOKEN_ESTIMATETIMEOUTBUDGET_EXCEEDED

This group of checks answers whether the size of the file still suits its use as context.

TOO_LARGE / FILE_SIZE: file size

Fetching has a size limit (currently 2 MB after decoding). Exceeding it triggers TOO_LARGE; the report states only the fact that the content was truncated and does not infer deletions from incomplete content. FILE_SIZE is the size observation itself. llms.txt is meant to be an index, not the full text: more than a few hundred KB usually means body text was stuffed into the index file. Consider splitting it into documents at subpaths and linking to them from the entries.

TOKEN_ESTIMATE: how to read the token estimate

The report gives the token estimate and the name of the method (the estimation method is recorded by version in the report metadata). It is an estimate, used for judging size, and makes no claim to match the tokenizer of any model.

TIMEOUT: fetch timeout

A single fetch has a time limit. A timeout is not a broken link: the report records one timeout observation and the conclusion about the file does not change. When the server responds slowly (especially when a dynamic route falls back to serving a large file), check first whether the web server serves static files directly.

BUDGET_EXCEEDED: request budget exhausted

The link health check has a per-hop request budget for each task (anonymous tasks and file tasks have different budgets). When the budget runs out, the check wraps up early and the report states the coverage explicitly (how many were planned for sampling, how many actually completed). It does not describe “not finished” as “all healthy”.

Test environment and results

Environment: Node v24.18.0, the llmstxtdb check engine, tested on 2026-10-05. An empty file tested at tokenEstimate=0 and the report clearly gave the conclusion “empty file” (a real 0 is not the same as “not counted”); parsing a 1 MB file with compliant structure took about 0.7–1.1 seconds; in the over-limit truncation scenario the report carried the truncation note and drew no conclusion about the missing content (covered by a regression test).

After shrinking the file, go back to the online check to verify the size and tokens.