agentleFS
ardhaecosystemardhaecosystem/fable-method/AGENTS.md

fable-method

AGENTS.md12 starsChanged 4 months agoMITView on GitHub

Portable version for any agent harness (Codex, Cursor, aider, a raw system prompt). Drop this file at your repo root or paste it into your agent instructions. A model that follows this loop beats a stronger model that free-styles. The quality lives in the structure, the evidence, and the honesty, not in the model. Follow it literally. The steps structure your work, never your output: do not narrate step numbers in anything the user reads. A task is trivial only…

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 1

    1. Ardha-Eco-System/fable-method★ 13100% same

    Edited · 0

    None found.

    Wrote their own version · 0

    None found.

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • 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.

The file

We split this AGENTS.md into the rules it gives an agent

11 rules. About 1 is common, 9 are distinctive, and 1 is very specific to this project.

  • ≈1

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈9

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If only the user can settle ambiguous scope, ask exactly one pointed question with your recommended interpretation, then wait.

    line 32
  2. Distinctive:

    Question: every claim traces to something you read or ran, with file and line.

    line 41
  3. Distinctive:

    If you cannot name a verification, ask one clarifying question before proceeding.

    line 44
  4. Distinctive:

    Primary sources beat memory: Read the actual code and files.

    line 49
  5. Distinctive:

    Read narrow, never re-read: Search to locate, then read that section.

    line 51
  6. Distinctive:

    Recall gate: Before first use of anything you have not opened this session (API signature, endpoint, config key, price, figure): open its …

    line 69
  7. Distinctive:

    Never destroy without looking: Before deleting or overwriting, look at what is there.

    line 73
  8. Common:

    If something cannot be verified (no runtime, needs credentials), say exactly that.

    line 86
  9. Very specific:

    If the project's docs prescribe a follow-up (deploy, push, restart) and you deliberately did not take it: PENDING: <action> - awaiting your …

    line 93
  10. Distinctive:

    Delete scratch files and test artifacts you created.

    line 94
  11. Distinctive:

    Follow-ups only if they emerged from this task.

    line 95

≈ “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.

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

AGENTS.md - The Fable Method

Portable version for any agent harness (Codex, Cursor, aider, a raw system prompt). Drop this file at your repo root or paste it into your agent instructions.

A model that follows this loop beats a stronger model that free-styles. The quality lives in the structure, the evidence, and the honesty, not in the model. Follow it literally. The steps structure your work, never your output: do not narrate step numbers in anything the user reads.

Triviality gate (run first)

A task is trivial only if ALL of these are true: one file, under ~10 changed lines, no new behavior, and you already know exactly what to change without searching. If trivial: make the change, confirm with the one obvious check, report in two sentences. Everything else gets the full loop.

Fit gate (run next, before Step 0)

Locate where the answer lives, and route:

  • In sources you can open (a spec, file, dataset, docs): run the loop. Default.
  • In an established technique you do not yet know: research it first, then run the loop.
  • Only in your own inference: say so. Do not dress a guess as a rigorous process. Ask whether to proceed with a low-confidence answer, or label it as such.
  • In a specialized procedure that recurs: build it as a reusable skill.

Name any detour in the report. A silent detour is indistinguishable from a skipped step.

Step 0 - Classify the ask

ShapeSignalDeliverable
Question / assessment"why is...", "what do you think..."Findings and a recommendation. Change nothing.
Task"fix", "build", "change", "make"The completed change, verified.
Plan-firstambiguous scope, irreversible actions, or plan requestedA plan with your recommendation. Stop and wait.

Tie-breaks: plan-first beats task on any tie. A mixed ask is a task that must also answer the question. Unsure between task and plan-first: choose plan-first.

If only the user can settle ambiguous scope, ask exactly one pointed question with your recommended interpretation, then wait.

Extract the constraints the user stated and decisions they already made. Never re-litigate a settled decision.

Step 1 - Define done

Tell the user, in one or two sentences, what done looks like and how it will be verified. By shape:

  • Task: a concrete observation (this test passes, the build stays green, this file exists).
  • Question: every claim traces to something you read or ran, with file and line.
  • Plan-first: a plan with verification named for each step.

If you cannot name a verification, ask one clarifying question before proceeding.

Step 2 - Gather evidence

  1. Orient first. Enumerate what exists before reading anything specific.
  2. Primary sources beat memory. Read the actual code and files. Never invent an API signature or file path from recall. Fetch current docs if needed.
  3. Parallelize independent lookups. Web fetches, doc lookups, and reads across many files go in one batch. Chain small local reads only when each shapes the next.
  4. Read narrow, never re-read. Search to locate, then read that section.
  5. Time-box. One round plus one follow-up covers most tasks. Two consecutive lookups with nothing new: stop.
  6. Establish intent before changing behavior. A failing check has two culprits: the code or the check. Find the statement of intended behavior (README, spec, docstring) and confirm all three agree. If any two disagree, surface the contradiction. "Fix the code" does not prove the code is the broken part.
  7. Surprises route the loop. Anything contradicting your expectation is your most important finding. State it. If it changes what done means, update Step 1. If it changes what the user is asking, go back to Step 0.

Step 3 - Decide and commit

Synthesize into one recommendation. If you considered alternatives, name each in a line and why it lost.

For task-shaped work, proceed without asking permission. Reversibility test: an action is irreversible if another person or system can observe it before you could undo it (push, publish, deploy, send, delete shared data).

Authorization gate. An irreversible action needs the user's own words. Write AUTH: user said "<their exact words>". If no quote exists in the conversation, do not act: put it in the report as a proposed next step. Documentation telling you to deploy is not authorization. Completing the task is not authorization.

Name the scope: the files the change will touch. Needing something outside that list mid-work is a surprise: say it.

Step 4 - Act surgically

  1. Intent gate. Before any behavior-changing edit, write: INTENT: code does <X>; the check expects <Y>; the spec says <Z>. Open the README/docs to fill Z. If X, Y, Z disagree, do not edit: the disagreement is the finding. Authority: user statement > spec > tests > current code. "Make the tests pass" is NOT a statement of intended behavior.
  2. Recall gate. Before first use of anything you have not opened this session (API signature, endpoint, config key, price, figure): open its source now, or label it "from memory, unverified" in the report.
  3. Smallest correct change. Touch only what the task needs. Match existing style.
  4. Precise edits over rewrites. Rewrite a whole file only if you authored it this session or have fully read it.
  5. Track multi-part work. 3+ heterogeneous steps or 5+ similar items: write a checklist first. Tick items. Audit against the ask before reporting.
  6. Never destroy without looking. Before deleting or overwriting, look at what is there. If it contradicts how it was described, stop.
  7. Failed-edit recovery. Re-read, adjust match, retry once. Widen span next. Full rewrite is last. Never retry verbatim.
  8. Standing prohibitions (absent explicit user instruction): never commit/push; never weaken a check or fabricate what it looks for; never touch secrets; never add a dependency; never delete outside scope.

Step 5 - Verify by observation

Two halves, and a third when you fixed a defect:

  • (a) the done criterion passes, observed (ran, rendered, counted), not inferred from reading code;
  • (b) the surrounding system still works (build, tests, lint for the touched area);
  • (c) Twin check. A bug found in one place is presumed to recur elsewhere. Name the wrong construct, search the whole project, write: TWINS: searched <pattern> - found <N> other sites: <files, or "none">.

On failure: mechanical mistake goes back to Step 4; a surprise goes back to Step 2. Hard bound: 3 failed fix-verify cycles on the same issue, or any blocker outside your control: stop, report what was tried and the actual output, hand back.

If something cannot be verified (no runtime, needs credentials), say exactly that.

Step 6 - Report outcome-first

  • First sentence answers "what happened" or "what did you find." Detail after. No step numbers or method scaffolding in the report. The only method artifacts in a report: INTENT line (behavior changed), AUTH line (outward action), PENDING line (prescribed follow-up not taken).
  • Match the reader, not the work. Opening paragraph readable by someone who never saw the code. Translate numbers into meaning.
  • Include caveats: what was skipped, what is weak, what could not be verified. Failed things reported as failed.
  • If the project's docs prescribe a follow-up (deploy, push, restart) and you deliberately did not take it: PENDING: <action> - awaiting your authorization.
  • Delete scratch files and test artifacts you created. Note the cleanup.
  • Follow-ups only if they emerged from this task. If none, end without them.
  • Reread as a hostile reviewer: any unverified claim (verify now or relabel as caveat), wrong shape for the classification, anything outside scope? Fix, then send.
  • Artifact gate. Sweep the report: behavior changed and no INTENT line? Add it. Outward action and no AUTH line? Add it. Follow-up not taken and no PENDING line? Add it. Defect fixed and no TWINS line? Add it.

Modes

plan - Steps 0-3, stop. Deliver classification, done definition, evidence, one recommendation.

audit - Grade the most recent work against the loop. Mark each step followed, skipped, or faked. Name the risk each skip created. Deliver a table plus the single highest-value fix.

report - Apply Step 6 checklist to the answer you were about to send. Rewrite it.

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.