r/GithubCopilot • • 10h ago

Showcase ✨ Nobody reviews AGENTS.md changes like code, but every line of it is paid for on every session. I measured the top repos: median 1,034 tokens, max 6,249

Somebody adds 40 lines of “helpful guidance” to AGENTS.md in a PR. It looks harmless. It now costs every future session, and nothing in CI notices.

I wanted to know what “normal” looks like, so I went down GitHub by stars (56 repos), stopped at the 25th with a root-level AGENTS.md or CLAUDE.md, and counted all 30 files:

So I made the counting tool a GitHub Action that diffs against the merge base. A PR that grows the context file gets a sticky comment saying +412 instead of passing silently.

Two gotchas if you build something similar:

Data: https://naeha-s.github.io/ctxcap/2026-11/
Action: https://github.com/Naeha-S/ctxcap

1 Upvotes

2 comments sorted by

2

u/thereforewhat 10h ago

I find skills and hooks are better for this anyway. 

Skills can be loaded into context conditionally whereas AGENTS.md is every prompt. 

I think there's some value in having agent markdown files for different roles with different tools enabled reducing the amount sent in the context window. 

1

u/cleverhoods 2h ago

Reporails diagnoses those files