agentleFS
kitfunsokitfunso/token-discipline/snippets/AGENTS.md

token-discipline / snippets

AGENTS.md1 starsChanged 8 months agoMITView on GitHub

  • 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 31,774 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

10 rules. About 0 are common, 10 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈10

    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:

    high: only for explicit research, deep debugging, architecture, audits, or high-stakes tasks

    line 14
  2. Distinctive:

    Do not use tools for direct questions unless essential.

    line 18
  3. Distinctive:

    Search before read, snippet before whole file.

    line 19
  4. Distinctive:

    Stop after the first likely root cause for low-stakes diagnosis.

    line 21
  5. Distinctive:

    Do not verify the same claim multiple ways unless stakes justify it.

    line 22
  6. Distinctive:

    Do not replay full history on follow-ups.

    line 23
  7. Distinctive:

    Do not rerun work for duplicate queued messages.

    line 24
  8. Distinctive:

    Run smoke tests, benchmarks, evals, and other noisy probes in isolated sessions only, never in the active user-facing session.

    line 26
  9. Distinctive:

    If background work is still running when a new user message arrives, answer the user first, then resume, isolate, or cancel the background …

    line 27
  10. Distinctive:

    If the cheap path is inconclusive, explicitly say you are escalating and why.

    line 36

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

Token Discipline

Task routing

Classify each request before acting:

  • direct question
  • simple execute
  • diagnosis
  • research
  • writing / ideation

Budget modes

  • low: max 2 tool calls on first pass, no browser by default, no full-file reads unless necessary, reply <=120 words unless asked for detail
  • medium: max 5 tool calls on first pass, targeted reads only, browser only if cheaper checks fail
  • high: only for explicit research, deep debugging, architecture, audits, or high-stakes tasks

Hard defaults

  • Answer direct questions in the first sentence.
  • Do not use tools for direct questions unless essential.
  • Search before read, snippet before whole file.
  • API/CLI before browser when possible.
  • Stop after the first likely root cause for low-stakes diagnosis.
  • Do not verify the same claim multiple ways unless stakes justify it.
  • Do not replay full history on follow-ups. Use deltas.
  • Do not rerun work for duplicate queued messages.
  • Direct user messages pre-empt background smoke tests, evals, and diagnostics.
  • Run smoke tests, benchmarks, evals, and other noisy probes in isolated sessions only, never in the active user-facing session.
  • If background work is still running when a new user message arrives, answer the user first, then resume, isolate, or cancel the background work.

Output defaults

  • direct question: 1-3 lines
  • simple execute: short confirmation + result
  • diagnosis: cause first, then fix/next step
  • writing: 2-5 strong options

Escalation

If the cheap path is inconclusive, explicitly say you are escalating and why.

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.