agentleFS
luongnv89luongnv89/context-stats/AGENTS.md

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 checking a change actually works.

    Of the AGENTS.md files we read, the 11,773 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.

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
  1. Distinctive:

    Keep each definition single-domain — split it rather than grow it.

    line 67
  2. Distinctive:

    Never re-read files you just wrote or edited.

    line 71
  3. Distinctive:

    Never re-run commands to "verify" unless the outcome was uncertain.

    line 72
  4. Distinctive:

    Don't echo back large blocks of code or file contents unless asked.

    line 73
  5. Distinctive:

    If a task needs 1 tool call, don't use 3.

    line 76
  6. Distinctive:

    Do not summarize what you just did unless the result is ambiguous or you need additional input.

    line 77

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.