ctxcap
AGENTS.md4 starsChanged 9 days agoMITView on GitHub
Diagnose repository context for coding agents.
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 35,266 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository5 other files it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/ctxcap.mdcCursor rule
- llms.txtllms.txt
- ctxcapSkill
- context-budgetSkill
The file
We split this AGENTS.md into the rules it gives an agent
6 rules. About 0 are common, 0 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 6
Run npx ctxcap why for ranked context/skill file sizes, named MCP servers, stale references, and high-confidence risky-content findings.
- Very specific: line 9
Run npx ctxcap --json for machine-readable context-file counts.
- Very specific: line 10
Run npx ctxcap --stale for broken paths and commands.
- Very specific: line 12
Use npx ctxcap --plan --budget <n> only when you intend to trim.
- Very specific: line 15
No runtime network calls or telemetry.
- Very specific: line 19
Run it before and after you edit one.
≈ “Common” is an estimate: at least 1 in 5 of the 45,344 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
ctxcap
Diagnose repository context for coding agents.
Start here
Run npx ctxcap why for ranked context/skill file sizes, named MCP servers, stale references, and high-confidence risky-content findings. Costs are approximate; this report does not know which on-demand skills or live MCP tools are active in a session.
Checks
- Run
npx ctxcap --jsonfor machine-readable context-file counts. - Run
npx ctxcap --stalefor broken paths and commands. - Recognizable credentials are reported with values redacted. Remove and rotate exposed secrets.
- Use
npx ctxcap --plan --budget <n>only when you intend to trim; review edits before applying.
Constraints
No runtime network calls or telemetry. No configured MCP server is launched by ctxcap why. Counts are approximate; compare deltas, not absolutes.
<!-- ctxcap:begin -->npx ctxcap@1.6.0 why diagnoses repository context sources, skills, stale references, and risky content.
Run it before and after you edit one; review the fix for each finding.
<!-- ctxcap:end -->Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

