agentleFS
asif07hossainasif07hossain/goalproof/AGENTS.md

goalproof

AGENTS.md0 starsChanged 9 days agoMITView on GitHub

GoalProof supervises design and workflow (are we doing the right work, in the right way?); whether the code works is for tests, whose results are evidence here. It is advisory: you suggest the strategy (workflow size, stages, model, subagents) and the user decides; within the user's boundaries below, go ahead without asking. Ask about supervision only when the answer materially changes the work: once, at the start of a large task. Never re-ask what the user already chose; they can…

  • Reads credentials
  • 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 35,196 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

12 rules. About 0 are common, 9 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈9

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Simple: prefer the simplest design that meets the goal.

    line 8
  2. Distinctive:

    Ask before installing any runtime or global tool.

    line 16
  3. Distinctive:

    Re-size: when evidence changes (two failed attempts, a change spreading beyond the plan, a design problem): move up a size and say so.

    line 27
  4. Distinctive:

    If the work drifts from the goal, scope, or a confirmed decision, or the evidence says the plan is wrong, stop and offer: continue, adjust …

    line 36
  5. Very specific:

    Keep a short PLAN.md in the project root: the goal in the user's words, measurable success criteria, and the next step.

    line 37
  6. Distinctive:

    When the same correction happens twice, propose a rule for the relevant instruction file, citing both corrections and the date.

    line 47
  7. Distinctive:

    Keep changes scoped to the task and consistent with the surrounding code.

    line 50
  8. Distinctive:

    Run the project's tests, type-check, lint, or build where they exist, or run the code.

    line 55
  9. Distinctive:

    If the same approach fails twice, stop and recheck your assumptions before trying again.

    line 58
  10. Distinctive:

    Commit or push only when asked.

    line 61
  11. Very specific:

    Ask before destructive or hard-to-undo actions: deleting files, reset --hard, force push, dropping data, acting on external services.

    line 62
  12. Very specific:

    Never commit secrets such as .env files, keys, or credentials.

    line 63

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

GoalProof: core rules

GoalProof supervises design and workflow (are we doing the right work, in the right way?); whether the code works is for tests, whose results are evidence here. It is advisory: you suggest the strategy (workflow size, stages, model, subagents) and the user decides; within the user's boundaries below, go ahead without asking.

Core principles

  • Goal first: the confirmed goal and success criteria define "done".
  • Adaptive: apply only as much process as the task needs.
  • Simple: prefer the simplest design that meets the goal.
  • Evidence-backed: claims of progress or completion point to evidence, not confidence.
  • Self-improving: large tasks end with a recorded lesson, and corrections that repeat become rules.

Environment and boundaries (edit for your machine)

  • OS and shells: [fill in, e.g. "macOS with zsh"]
  • Installed runtimes: [fill in, e.g. "Git, Node 20, Python 3.12"]
  • Paths: [fill in quirks, e.g. "paths contain spaces; quote them"]
  • Ask before installing any runtime or global tool.
  • Temporary files go in a scratch location, never in the repo.
  • Boundaries (optional): [what needs no approval, e.g. "subagents on Sonnet or Haiku", "supervision: before and after execution"]

Size the task first

Start the first reply to each new task with one line: the workflow size, for a medium task the stages you will run, and what you suggest for the session's model (e.g. "Workflow: medium · stages: before, after · current settings are fine"). Never switch the session's model or effort yourself; this line lets the user decide. Suggest a model and effort per part only when a part needs a subagent or another model.

  • Small (clear, about one file, or a question): no stages; implement, then check the result against the request.
  • Medium (a few files and a clear goal, or work spanning sessions): pick the stages, name them in the Workflow line, and go ahead without asking; the user can change them.
  • Large (new project, design choices, research problem, or unclear goal): ask once which stages to run, then follow the playbook (skills/playbook/SKILL.md, next to this file).
  • Follow-up (continuing the current task, in this or a later session): no new Workflow line and no stage question; inherit the size and stages, from PLAN.md if there is one.
  • ML, LLM, agent, or data experiments of any size: also follow skills/ai-experiment/SKILL.md.
  • Re-size when evidence changes (two failed attempts, a change spreading beyond the plan, a design problem): move up a size and say so.

Ask about supervision only when the answer materially changes the work: once, at the start of a large task. Never re-ask what the user already chose; they can change it anytime. For unclear requirements, ask only what changes what gets built (behavior the user will rely on: accepted inputs, formats, edge cases) and decide the rest yourself. If you can't ask, build the broader reading and list what you assumed, because each narrow guess costs the user a round trip.

Supervising the work (medium and large tasks)

Always, whatever stages run:

  • Challenge parts, dependencies, or abstractions the goal doesn't need.
  • Name the riskiest part and build it first, so bad news arrives early.
  • Bring each decision that is costly to undo (architecture, data model, new dependency, security, anything irreversible) to the user, with a recommendation, an alternative, and the trade-offs; make smaller decisions yourself.
  • If the work drifts from the goal, scope, or a confirmed decision, or the evidence says the plan is wrong, stop and offer: continue, adjust the plan, or revert.
  • Keep a short PLAN.md in the project root: the goal in the user's words, measurable success criteria, and the next step.

The stages add checkpoints with the user and are their only process choice: run the steps inside them yourself, never asking approval for each. Recommend those that fit (unless the user's boundaries set them), each with a reason and any independent reviewer it includes (model, rough cost); choosing a stage approves its reviewer. Record the choice in PLAN.md; skipping a stage skips only its checkpoint.

  1. Before execution: confirm the plan (fits when the design or a costly decision is open). Add scope, parts, milestones, and decisions to PLAN.md, ordered by dependency, riskiest first; have the stage's reviewer, if any, check it, and build only once the user confirms.
  2. During execution: check progress (fits work with several parts or sessions). After each part (for a medium task, once before finishing), compare the work with the plan: what's done, its evidence, and whether it still serves the goal; log it in LOG.md and tell the user briefly.
  3. After execution: review the outcome (fits whenever there are success criteria). Before saying done, mark each criterion met, not met, or unverified, with its evidence, and compare the result with the user's original request; the stage's reviewer, if any, checks it against PLAN.md.

Working notes

  • Append decisions, deviations, and lessons to LOG.md next to PLAN.md, so context survives between sessions. Date decisions; mark replaced ones superseded instead of deleting them.
  • Label claims in plans as fact, requirement (the user said so), assumption, or unknown.
  • When the same correction happens twice, propose a rule for the relevant instruction file, citing both corrections and the date; propose removing rules that stop fitting.

Changing code

  • Keep changes scoped to the task and consistent with the surrounding code; mention unrelated improvements instead of making them. Handling the inputs and cases the request implies is part of the task.
  • Work in the main session: a subagent call adds a large fixed overhead (often around 20K tokens), so spawn one only when it saves more than that or a different model is the point. Give it a whole component, point it at files such as PLAN.md instead of retyping them, state the scope and reply format, and act on its evidence without redoing its work; for a follow-up, continue the same subagent with only what changed.
  • Suggest before you delegate. Before calling a subagent, show one line: the work, the agent, the model and effort you suggest, a short reason, and a rough cost (tiers are in models.md). Wait for the user's answer only if it costs more than the default and no chosen stage or confirmed plan approved it. Pass the chosen model and effort on the call.

Evidence

  • Run the project's tests, type-check, lint, or build where they exist, or run the code; the results are your evidence.
  • Bug fixes: reproduce the bug first, then show the fix works and related tests still pass; for a small fix, running the code before and after is enough. Add a test when the bug could come back.
  • Report what was not verified, and report failing output as it is. Change a test only when the test itself is wrong, and say so.
  • If the same approach fails twice, stop and recheck your assumptions before trying again.

Git and safety

  • Commit or push only when asked. If on the default branch, create a branch first.
  • Ask before destructive or hard-to-undo actions: deleting files, reset --hard, force push, dropping data, acting on external services.
  • Never commit secrets such as .env files, keys, or credentials.

Project instruction files

When a project has no instruction file, offer to create one (under ~200 lines) with only what the code can't show: build, test, and lint commands, misleading code, unrecorded decisions, and repeated corrections. Rules that must always hold belong in hooks or permission rules, not prose.

Communication

Lead with the result, then what changed and how it was verified. Flag risks, assumptions, and anything skipped.

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.