agentleFS
mollendorff-aimollendorff-ai/forge/AGENTS.md

forge

AGENTS.md11 starsChanged 8 days agoApache-2.0View on GitHub

No exceptions and no skipping, in every crate (the main crate, forge-wasm, validation/gnumeric, validation/r). Switching a rule off is not fixing the code. validation/repo/src/no_skipping.rs counts each way round these rules, the test files outside the code they test included. The counts may only fall, to zero (roadmap T1-NO-SKIPPING): the test fails when one rises, and when one falls without its budget being lowered in the same change. Never raise a budget or lower a coverage floor. The one exception is…

  • 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,117 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 repository4 other files it gives its agents.

The file

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

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    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. Very specific:

    No exceptions and no skipping, in every crate (the main crate, forge-wasm, validation/gnumeric, validation/r).

    line 5

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

Working on Forge

Rules that are not negotiable

No exceptions and no skipping, in every crate (the main crate, forge-wasm, validation/gnumeric, validation/r). Switching a rule off is not fixing the code.

  • 100% test coverage. Lines, functions and regions, measured by cargo llvm-cov over everything outside tests/. A test asserts a result; one that only runs the code does not count. No code compiled only for or only without the coverage run (cfg(coverage), cfg(not(coverage)), cfg_attr(coverage, ...)), no coverage(off), and no ignored test (#[ignore], or ignore inside a cfg_attr): a test that cannot run in CI is fixed until it can. CI fails below the floor in .github/workflows/ci.yml; the floor only rises, to 100 (roadmap T1-COVERAGE-GATE), and make coverage already fails below 100.
  • Pedantic linting. cargo clippy --locked --all-targets -- -D warnings passes on stable and on the oldest supported Rust (rust-version in Cargo.toml), with the pedantic, nursery and cargo groups on in every crate. No #[allow(...)] or #[expect(...)], alone or inside a cfg_attr, and no lint set to "allow" in a Cargo.toml, multiple_crate_versions included: fix the code, or the dependency.
  • Formatting. cargo fmt --all -- --check passes, with no #[rustfmt::skip] and no ignore in rustfmt.toml.
  • Tests are inline, all of them. Every test is in a #[cfg(test)] mod tests inside the file it tests: no tests/ folder in any crate, and no test module in a file of its own (mod foo_tests;). A test of the command line or the MCP server calls the same code in-process (the command's run, the tool's handler) rather than starting the binary.
  • No file over 1,500 lines, its tests included. A longer file is split into modules by what it does; moving its tests out is not a split.

validation/repo/src/no_skipping.rs counts each way round these rules, the test files outside the code they test included. The counts may only fall, to zero (roadmap T1-NO-SKIPPING): the test fails when one rises, and when one falls without its budget being lowered in the same change. Never raise a budget or lower a coverage floor. The one exception is a duplicate crate version that a core, stable library brings and that has no fix on our side (see "Libraries before code of our own"): the maintainer may allow it, in the same change that adds it.

Libraries before code of our own

Prefer a stable, well-maintained library to code of our own. Size alone is never the reason to replace one while Forge Studio's WebAssembly module is under the ceiling of ADR-070 (3,000,000 bytes gzipped); code of our own needs its own merits (more correct, simpler, or what the library cannot do). Forge's names are Unicode (hypothèses.coût_unitaire, 假设.单价): whatever matches them must too. The rule against crates in two versions does not compete with keeping a core, stable library: getrandom and its r-efi are allowed twice for jsonschema (ADR-072).

A library that brings a second version of a crate is not replaced for that reason. The duplicate is allowed in clippy.toml with the library and the reason written next to it, and counted in validation/repo/src/no_skipping.rs. The maintainer decides it, and no one else may raise that count. The allowance ends when the library stops bringing the duplicate, and the count then falls with it. It covers only duplicate versions of crates. No other lint, and no rule above, may be switched off for a library.

Working in lanes

Forge is worked on by several sessions at once, each in one lane. A lane owns some paths and has its own roadmap; they are listed under lanes: in .asimov/project.yaml, which asimov reads (asimov --lane <id>). A session's lane is the first line of its handoff, or ASIMOV_LANE.

LaneIts workRoadmap
engineWhat exists, made better: the engine's answers and speed, validation/, CI, releases, the repository's hygiene (supply chain, SBOM, Scorecard, metadata).asimov/roadmap/engine.yaml
manualThe guide, the examples, the READMEs, --help text, the skill, the prompts: for people and agents using Forge.asimov/roadmap/manual.yaml
featuresNew behaviour in the engine and its surfaces (command line, Studio, MCP, REST), with its ADR and its --help.asimov/roadmap/features.yaml
architecturedocs/architecture/ and the ADR index, MAINTAINING.md, EMBEDDING.md, CONTRIBUTING.md.asimov/roadmap/architecture.yaml
  • Take work only from your lane's roadmap, as it is on main (fetch first). Work you find that is another lane's goes at the end of that lane's backlog, saying what you found; you do not do it.
  • Change only the paths your lane owns, the shared ones (changelog.d/, validation/repo/) and other lanes' backlogs. A new feature's guide page and architecture page are items the features lane files for the manual and architecture lanes.
  • A change's changelog entry is a new file in changelog.d/ (how). Only the engine lane edits CHANGELOG.md, changes the version and makes a release.
  • A finished item moves to its lane's done: list with a dated built: line. .asimov/roadmap.yaml keeps the project's state and what was done before the lanes.
  • docs/SESSIONS.md has how a session works here: committing, the checks CI runs, pull requests, the handoff.

Proposing the next step

Whenever you propose what to do next, give each step the model and the effort level to run it with, and say why in a few words. For example:

StepModelEffortWhy
Fix the parser's nesting limitSonnet 5.5mediumA contained change with a clear test

Choose for the work, not the default: a wrong answer in the engine or a large gate deserves a stronger model or more effort than a mechanical change.

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.