Skip to content

AGENTS.md: drop the table of contents - #516

Merged
epeicher merged 2 commits into
trunkfrom
agents-md-drop-toc
Aug 7, 2026
Merged

AGENTS.md: drop the table of contents#516
epeicher merged 2 commits into
trunkfrom
agents-md-drop-toc

Conversation

@epeicher

@epeicher epeicher commented Aug 6, 2026

Copy link
Copy Markdown
Collaborator

What it does

Removes the 31-line table of contents from AGENTS.md. No other content changes.

Rationale

Flagged by a /doctor context audit. AGENTS.md is loaded into agent context on every request, and the TOC is a link list into the same file, trivially reconstructible from the headings, so its ~2,300 characters (~600 estimated tokens) buy nothing. Removing it also takes the file from 41,085 to 38,785 characters, back under Claude Code's ~40,000-character large-memory-file warning threshold.

Open WordPress Playground Preview

Flagged by a /doctor context audit: the TOC is a link list into the
same file, reconstructible from the headings, and its ~2,300 chars
(~600 est. tokens) load into context on every request. Removing it
also brings the file back under Claude Code's ~40k-char large
memory-file warning threshold (41,085 -> 38,785 chars).
@epeicher
epeicher enabled auto-merge (squash) August 6, 2026 16:41
@epeicher
epeicher merged commit 56a50a2 into trunk Aug 7, 2026
5 checks passed
@epeicher
epeicher deleted the agents-md-drop-toc branch August 7, 2026 14:59
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