agentleFS
kstenerudkstenerud/yoloai/AGENTS.md

yoloai

AGENTS.md219 starsChanged 7 months agoMITView on GitHub

yoloAI runs AI coding CLI agents inside disposable sandboxes (containers, Tart VMs, macOS Seatbelt) with a copy/diff/apply workflow. Go binary, no runtime deps beyond the backend. Public beta: breaking changes are allowed, but must be recorded — rule 1. This is the contract for changing yoloAI, and the canonical instruction file for every agent working on it. CLAUDE.md imports it. Keep it short; detail lives behind the pointers. Docs last swept: 2026-07-15 (D116, D124). Docs drift silently — nothing executes…

  • 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,337 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 repositoryOne other file it gives its agents.

The file

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

3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    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:

    No other tier has that backstop.

    line 24
  2. Distinctive:

    Search will put you there — plans read like specs, and an archived plan reads exactly like a live one.

    line 42
  3. Very specific:

    Never a bare Claude, never a 🤖 Generated with footer.

    line 97

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

AGENTS.md

yoloAI runs AI coding CLI agents inside disposable sandboxes (containers, Tart VMs, macOS Seatbelt) with a copy/diff/apply workflow. Go binary, no runtime deps beyond the backend. Public beta: breaking changes are allowed, but must be recorded — rule 1.

This is the contract for changing yoloAI, and the canonical instruction file for every agent working on it. CLAUDE.md imports it. Keep it short; detail lives behind the pointers.

Docs last swept: 2026-07-15 (D116, D124). Docs drift silently — nothing executes prose. If that date is more than ~3 months ago, say so, unprompted, before relying on a doc being right. Bump it when a sweep lands. Why this exists: general-principles.md §16.

Deprecations reviewed: 2026-07-17 (D127) — nothing due; next 2026-09-12. Compatibility code is invisible once written, so it is never retired. docs/contributors/deprecations.md registers each with the date it was incurred and a per-entry due date. If today is past the date above, read the register and say so, unprompted — the owner decides what retires, but only if asked. This is a nag, not a gate: nothing fails, ever. Bump the date when a review lands.

The marker is a claim, so treat it as one. When first written it named a sweep that had never opened architecture/, which at that moment documented a mode retired two releases earlier and a package that has never existed — the drift-detector's own first reading was wrong. D124 made it true and gated the names, so architecture/ now fails loudly rather than drifting quietly. No other tier has that backstop.

Where things are

Docs are organised by role. Pick your tier, then read that directory's README.md:

TierDirectory
Users — running yoloAIdocs/
Integrators — embedding it as a librarydocs/integrators/
Contributors — changing itdocs/contributors/

Two you will want by name: architecture/where-to-change.md maps a change onto the files that make it. backend-idiosyncrasies.md catalogues backend behaviour that contradicts its own docs — read it before diagnosing any backend problem; add to it when you find more.

Nothing under docs/contributors/archive/ is a specification. It is frozen and unmaintained, and it usually describes code that has since moved; each file says so in its own opening lines. Search will put you there — plans read like specs, and an archived plan reads exactly like a live one. Use it for "did we consider X?", never to build from. The live answer is in the tiers above, and if the only thing that answers your question is archived, that is a gap to file, not a source.

next-release.md stages whatever ships next: it carries the next release version (a fact — it escalates on its own when something breaking lands) and points at the work considered for the cut. It is permanent and drains at each release, like ## Unreleased. It never carries an item's status, and never its own reason — an entry there is an ID and the record's own title, nothing more. "What's left for this release?" and "why is this in?" are both answered by following its links, never by trusting the page. Finishing an item does not remove its line; entries stay until the release drains the file, because "done" is the record's to say and a list that shortens as work lands is a checkbox wearing a disguise. Repoint the link if the record moved; leave the entry. The scope reason lives in the record, in a - **Rides:** field naming the kind of release the fix needs (any / breaking / a migration) and which half qualifies when only one does. Add that field to anything you propose for a release. It exists because a reason composed on the staging page cannot be checked against anything, so a right one and a wrong one read identically — and both duly happened, in opposite directions, on the same day.

agent-failures.md is its sibling for the component that writes the code. The trigger is an owner correction: when the owner contradicts a claim you made, or asks a question whose answer turns out to be "I was wrong", that is the event — record it there before moving on. Not every fumble; only what reached a durable artifact or would have. A correction is a fact about a repeating behaviour, and it is the only input from which the next gate gets built — the two scripts/check_*.py gates exist because someone wrote the specimen down. On the evidence so far, the owner's question is the most reliable detector in this repo, which is the problem the file exists to fix.

Preparing a PR

Full detail and the reasoning behind each rule: docs/contributors/procedures/pull-requests.md. Ordered by how likely you are to trip — but the numbers are cited from other documents, so a new rule appends rather than inserts. Rule 10 is the newest and belongs about third. Rule 13 belongs last: it only fires on an edit to four narrowly-scoped documents, a narrower surface than any of the other twelve govern.

  1. A user-visible break needs a docs/BREAKING-CHANGES.md entry in the same PR — under ## Unreleased, never under a ## vX.Y.Z heading (those are frozen once tagged). Renamed or removed flags and config keys, changed defaults, newly-rejected input. That file's preamble has the format and the trap. This is the most-missed rule here. A removed or renamed config key or flag is now gated on the PR (scripts/check_breaking_changes.py); a changed default or newly-rejected input is not, and stays yours to notice. A break also escalates the next release version — bump the field in next-release.md when you land one.
  2. Invalidate a name, sweep every surface that names it. Config keys, flags, and agent names are mirrored verbatim into shipped text that nothing typechecks — including internal/cli/helpcmd/help/*.md, which is //go:embeded shipped UI despite living under internal/. make check catches none of this. Append-only history (BREAKING-CHANGES, archive/, decisions/, the *-resolved/*-deferred/*-abandoned sinks) is exempt from the sweep — but not from rule 1. Surface list: see the procedure.
  3. Code commits carry a prose body saying what was wrong or missing and why this fixes it — not a restatement of the diff. feat/fix/refactor/perf. Near-universal here.
  4. Subject is type(scope): summary — feat, fix, docs, test, refactor, build, ci, chore, perf. Imperative, no trailing period (0 of 2137 have one). Breaking gets ! after the scope; never a BREAKING CHANGE: footer. Don't infer the format from git log — pre-June-2026 commits use a superseded convention.
  5. Attribute AI work by model: Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>. Never a bare Claude, never a 🤖 Generated with footer. Humans and bots omit it.
  6. Cite the rationale ID (D<n> decisions, DF<n> findings) wherever you write rationale. Never invent one; never strip one. No decision behind the change? Cite nothing. Allocating a new one? Run scripts/next-id.sh D / scripts/next-id.sh DF; it prints the next free number. Don't grep for the highest — every duplicate ID this repo has had came from a grep that missed a sink.
  7. File the defects you don't fix in design/findings-unresolved.md. Fixing in scope is fine if you record it; silently working around it never is. And its converse: when a fix establishes a convention, the convention graduates out of the finding — into standards/, architecture/, or the interface's own docstring, with the finding citing it rather than holding it. A resolved finding is archaeology: *-resolved.md is append-only history that nothing sweeps and no router points at, so a rule living only there is a rule the next contributor cannot find. Both conventions PR #44 broke were sitting in findings-resolved.md and nowhere else (DF151). Before fixing one, grep for its shape — the same kind of defect on a sibling path or another backend. Three of a kind means the architecture is generating them and the edge is a symptom; and a sibling path may already solve it, making your fix a second mechanism for one job. Naming that in the finding is mandatory; acting on it is a decision (GEN §18).
  8. An idea worth building is a plan file in design/plans/ — not a bullet in a README, which is where a backlog goes to be invisible. Each carries a metadata list under its title: - **Status:** (UNSPECIFIED no design yet / PLANNED designed / IN-PROGRESS partly built / IMPLEMENTED / ABANDONED) and - **Depends on:** (live plan filenames, or —). A one-commit fix needs no plan. design/plans/ holds only the unfinished three: once the work is done or dropped the plan is archaeology, and it moves whole to archive/plans/ in the same PR. Gated, so none of it is something to remember.
  9. Writing a migration? Register it in docs/contributors/deprecations.md with the date you incurred it (D127). A migration is a deprecation: it commits the project to supporting the old form, on the day it lands. Same for any compatibility reader, alias, or shim. The entry costs three lines and is the only thing that will ever make retiring it possible — the register's own audit found 16 such mechanisms, of which 0 recorded a date. And it does not go to main — see rule 12.
  10. Every behavior change in the PR carries a test that fails when that change is reverted (D128, D129, D146). Every is the load-bearing word: count the behavior changes, count the tests that would go red on revert, and make the numbers match — not "the package has tests", and not "the headline fix has one", because the second change in a PR is the one that escapes. Gated on the PR (scripts/check_revert_red.py): it reverts each changed file and reports which ones a test catches. A revert that only breaks the build is not coverage — it proves the change is load-bearing, nothing more, and an added file can report nothing else — so those stay yours to count. A change that genuinely cannot go red in the suite is declared with a Verified-By: trailer naming what you actually ran: a claim on the record, not a bypass. Red-on-revert is necessary and not sufficient — what it cannot prove, and the assertions it is usually missing, are TEST §12.
  11. Multi-commit work goes on a work/<topic> branch, cut from an up-to-date main, merged back into main when it is done, and deleted once merged. A one-commit fix needs no branch. The prefix is there so a branch's name says which procedure it followed — the 2026-08 cleanup found 45 local and 29 remote branches where answering that took reading each one's commits against main, and four had landed their content through a different branch than the one that started it, so "is it merged?" was not even the right question. Outside the scheme and not work: release-vX.Y.Z (release staging, deleted at the tag) and dependabot/… (GitHub's, tied to a PR — deleting one closes it).
  12. A migration never reaches main unreleased (D131). The moment work is known to need one — the moment LibrarySchemaVersion would move — cut release-vX.Y.Z at the escalated version and merge the migration work there. main stays at the last released schema, so building main at any commit gives a binary whose migrations are all already published. Otherwise someone tracking main pulls, is told to run system migrate, gets stamped at a schema that never ships in that form, and is left with on-disk state no released binary can read — orphaned for doing what the tool told them. "Merge the migration last" does not fix this: it shortens the window, and a short window is still open. Non-migration work keeps going to main and must be kept merged into the release branch, which is the real cost and is the price of the guarantee.
  13. A load-bearing architectural claim gets a TestArch_ citation. The test is: if this sentence were false, would a reader give a wrong instruction or build the wrong thing? If yes, write (or find) a test named TestArch_<Claim>, make it genuinely fail when the claim stops holding, and cite it in the prose by its bare name in backticks — `TestArch_ProfileIgnoresPersonalDefaults` — so "is this still true?" is answered by make check, not by trust. Reserve the prefix for this alone; it is what makes scripts/check_claim_citations.py a grep instead of a judgment call. A claim about one of the Python gates takes the same form in pytest — test_arch_<claim>, under a tests/ directory — because the gates are the most-retuned code here and nothing else could cite them (D146). The scope is deliberately narrow — docs/contributors/architecture/*.md, docs/contributors/design/config.md, docs/contributors/principles/*.md, and docs/contributors/decisions/working-notes.md, nowhere else — for the same reason check_citation_provenance.py is scoped to research/*.md (D122): a gate that fires on prose it was never meant to police gets disabled, and findings/plans/docs/GUIDE.md are full of claims that are current status, not standing architectural guarantees. "Nothing — this is a judgment, not a claim" is a legitimate answer. Most sentences in these documents assert an opinion, a tradeoff, or a decision's reasoning, none of which a test can check; only mark the ones asserting a checkable fact about what the code does.

The quality gate

make check must pass before every PR (Claude Code runs it via .claude/settings.json hooks). It is your local gate, not all of CI, and it does not read prose — shipped help text and docs/ sit outside it. See the PR procedure for the CI jobs and required tooling.

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.