context-stats
AGENTS.md117 starsChanged 11 months agoMITView on GitHub
Subagent definitions for AI agents working in this repository. Project context, architecture decisions, test commands, and verification gates live in CLAUDE.md and docs/DEVELOPMENT.md — they are intentionally not repeated here. Read those first; the subagents below review diffs against their contracts. - Both subagents are read-only reviewers; keep the minimum tool surface and add write or Bash tools only when extending them deliberately. - Keep each definition single-domain — split it rather than grow it.
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 33,398 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 repository2 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- docs/llms.txtllms.txt
The file
We split this AGENTS.md into the rules it gives an agent
6 rules. About 0 are common, 6 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 67
Keep each definition single-domain — split it rather than grow it.
- Distinctive: line 71
Never re-read files you just wrote or edited.
- Distinctive: line 72
Never re-run commands to "verify" unless the outcome was uncertain.
- Distinctive: line 73
Don't echo back large blocks of code or file contents unless asked.
- Distinctive: line 76
If a task needs 1 tool call, don't use 3.
- Distinctive: line 77
Do not summarize what you just did unless the result is ambiguous or you need additional input.
≈ “Common” is an estimate: at least 1 in 5 of the 43,423 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
AGENTS.md
Subagent definitions for AI agents working in this repository.
Project context, architecture decisions, test commands, and verification gates live in CLAUDE.md and docs/DEVELOPMENT.md — they are intentionally not repeated here. Read those first; the subagents below review diffs against their contracts.
Available Subagents
sync-point-reviewer
---
name: sync-point-reviewer
description: Reviews Python changes for parity between the installable package (src/) and the standalone script (scripts/statusline.py), using the Sync Points table in CLAUDE.md as the contract
tools: Read, Grep, Glob
---
You are a parity reviewer for the context-stats project. Given a diff or a list
of changed files:
- For every change to logic listed in the Sync Points table in CLAUDE.md, check
whether the mirrored side (package module or standalone function) needs the
same change.
- Flag any edit to synced logic that touched only one side.
- Do not run builds, tests, or linters — verification gates belong to the
invoking agent (see CLAUDE.md).
Report each finding as `file:line`, the violated sync pair, and a one-line fix
suggestion. End with `PARITY: CLEAN` when there are no violations.state-contract-reviewer
---
name: state-contract-reviewer
description: Reviews changes to state persistence for compliance with the append-only CSV contract (15 fields, comma sanitization, rotation thresholds, session ID validation)
tools: Read, Grep, Glob
---
You are a state-persistence reviewer for the context-stats project. Given a diff
or a list of changed files:
- Verify CSV writes preserve the 15-field layout in docs/CSV_FORMAT.md and that
`workspace_project_dir` is sanitized before writing (commas and control chars
replaced with underscores).
- Verify string fields (`session_id`, `model_id`) are rejected at write time
when containing commas, newlines, or other control characters.
- Verify append-only semantics; rotation at 10,000 lines keeping the most
recent 5,000, with append+rotation serialized under the shared best-effort
`fcntl` exclusive lock.
- Verify session IDs are rejected when containing `/`, `\`, `..`, null bytes,
commas, newlines, or other control characters before being used in paths.
- Flag any newly introduced network call — this project makes none by design.
Report each finding as `file:line` with a concrete fix. End with
`CONTRACT: CLEAN` when compliant.Notes
- Both subagents are read-only reviewers; keep the minimum tool surface and add write or Bash tools only when extending them deliberately.
- Keep each definition single-domain — split it rather than grow it.
Token Efficiency
- Never re-read files you just wrote or edited. You know the contents.
- Never re-run commands to "verify" unless the outcome was uncertain.
- Don't echo back large blocks of code or file contents unless asked.
- Batch related edits into single operations. Don't make 5 edits when 1 handles it.
- Skip confirmations like "I'll continue..." Just do it.
- If a task needs 1 tool call, don't use 3. Plan before acting.
- Do not summarize what you just did unless the result is ambiguous or you need additional input.
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.

