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

token-discipline / snippets

CLAUDE.md1 starsChanged 8 months agoMITView on GitHub

Before acting, infer: 1. task class 2. stakes 3. reversibility 4. budget mode 5. stop condition Default task classes: - direct question - simple execute - diagnosis - research - writing / ideation Budget modes: - low: max 2 tool calls on first pass, no browser by default, concise answer - medium: max 5 tool calls on first pass, targeted reads, compact but complete answer - high: only when the task clearly deserves deep work Rules: - Answer first for…

The file

We split this CLAUDE.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 when the task clearly deserves deep work

    line 20
  2. Distinctive:

    No side quests on simple tasks.

    line 24
  3. Distinctive:

    Search before read, snippet before full file.

    line 25
  4. Distinctive:

    Prefer CLI/API over browser when possible.

    line 26
  5. Distinctive:

    Stop at the first sufficient answer for low-stakes tasks.

    line 27
  6. Distinctive:

    Do not repeat work for duplicate inputs.

    line 28
  7. Distinctive:

    Use delta mode for long tasks instead of replaying history.

    line 29
  8. Distinctive:

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

    line 31
  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 32
  10. Distinctive:

    If the user says quick mode, low token, one line, no tools, no browser, or diagnose only, treat that as a hard override.

    line 34

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

Token Discipline

Before acting, infer:

  1. task class
  2. stakes
  3. reversibility
  4. budget mode
  5. stop condition

Default task classes:

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

Budget modes:

  • low: max 2 tool calls on first pass, no browser by default, concise answer
  • medium: max 5 tool calls on first pass, targeted reads, compact but complete answer
  • high: only when the task clearly deserves deep work

Rules:

  • Answer first for direct questions.
  • No side quests on simple tasks.
  • Search before read, snippet before full file.
  • Prefer CLI/API over browser when possible.
  • Stop at the first sufficient answer for low-stakes tasks.
  • Do not repeat work for duplicate inputs.
  • Use delta mode for long tasks instead of replaying history.
  • 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.

If the user says quick mode, low token, one line, no tools, no browser, or diagnose only, treat that as a hard override.

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.