agentleFS
MicrosoftKnown publishermicrosoft/amplifier-agent/AGENTS.md

amplifier-agent

AGENTS.md8 starsChanged 59 days agoMITView on GitHub

amplifier-agent is the Amplifier agent as a library: Python and TypeScript bindings and an HTTP face over one replaceable engine. Pages about internals (docs/development/, docs/DEVELOPMENT.md) change freely but stay accurate. 3. Evaluations. Is the behavior covered by a task in evaluations/? Add one when it is not, and keep evaluations/README.md current when the harness changes. 4. Tests. Add unit or integration tests where they help implementation or pin precise internal behavior an evaluation cannot observe. - For a new feature,…

  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.

    Of the AGENTS.md files we read, the 11,773 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

Show its rules and text

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

14 rules. About 0 are common, 10 are distinctive, and 4 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.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    After making changes, prek run --all-files and uv run --all-packages python scripts/check.py --runtime must pass before the work is done.

    line 6
  2. Distinctive:

    Every feature or fix answers these, in order:

    line 17
  3. Distinctive:

    Tests: Add unit or integration tests where they help implementation or pin precise internal behavior an evaluation cannot observe.

    line 28
  4. Distinctive:

    Never modify this file unless explicitly told.

    line 32
  5. Distinctive:

    Every file is read later by someone with no memory of the session, often a machine.

    line 36
  6. Distinctive:

    No status in artifacts: no "not implemented yet", "for now", "coming soon".

    line 37
  7. Distinctive:

    Never describe the format inside an instance of the format.

    line 38
  8. Distinctive:

    When working from a spec, fixture, or reference implementation, copy the structure, never the prose.

    line 39
  9. Very specific:

    Keep __init__.py files empty unless the contract requires an export there.

    line 49
  10. Very specific:

    Use pathlib, Path.open over open, and .parents[i] over repeated .parent.

    line 50
  11. Very specific:

    Never add a bare *, keyword-only marker.

    line 52
  12. Distinctive:

    Only characters a keyboard types: no fancy arrows or typographic quotes.

    line 53
  13. Distinctive:

    Read a dependency's source to learn its types and behaviour rather than guessing.

    line 54
  14. Distinctive:

    When something fails, investigate from first principles rather than blaming the environment.

    line 55

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

amplifier-agent is the Amplifier agent as a library: Python and TypeScript bindings and an HTTP face over one replaceable engine.

Orientation

  • Set up with uv run setup-for-dev.py. docs/DEVELOPMENT.md has every command for linting, formatting, type checking, testing, and building.
  • After making changes, prek run --all-files and uv run --all-packages python scripts/check.py --runtime must pass before the work is done.
  • Releases follow RELEASING.md.
  • Sources of truth, in order:
    contracts/VISION.md   why the project exists and what it will not build
    contracts/*.v1.md     language-neutral shape and laws: names, records, vocabularies, ordering, defaults
    docs/                 the current interface of each binding and the HTTP face
    evaluations/          real tasks with real models, through every surface
    tests/                implementation aids; part of no contract
  • Authority runs one way: contract, then binding, then engine. Where code and a contract disagree, the code is wrong.
  • Every feature or fix answers these, in order:
    1. Vision and contracts. Does it fit? If one must change, stop and raise it. Contracts change rarely, by owner-ratified amendment with a dated changelog entry.
    2. Public surface. Does it change what callers see? Update every place that describes it in the same change. A breaking change without a contract change needs explicit sign-off.
      docs/                     concepts, per-binding reference and names.md, http, install, configuration, providers
      README.md                 repo overview and quickstart
      packages/*/README.md      per-package install and first use
      skills/amplifier-agent/   the integration skill agents use to build on this
      Pages about internals (docs/development/, docs/DEVELOPMENT.md) change freely but stay accurate.
    3. Evaluations. Is the behavior covered by a task in evaluations/? Add one when it is not, and keep evaluations/README.md current when the harness changes.
    4. Tests. Add unit or integration tests where they help implementation or pin precise internal behavior an evaluation cannot observe.
  • For a new feature, follow .agent/skills/amplifier-agent-new-feature/. For a bug, follow .agent/skills/amplifier-agent-bugfix/.
  • Other branches hold code written before the contracts. It is not a reference: do not read it or port from it. If something there looks load-bearing, raise it.
  • Failures name what went wrong and how to fix it. The caller is usually an agent.
  • Never modify this file unless explicitly told.

Writing

  • Every file is read later by someone with no memory of the session, often a machine. This covers help text, docstrings, comments, and error messages.
  • No status in artifacts: no "not implemented yet", "for now", "coming soon". Progress lives in the issue queue and git history.
  • Never describe the format inside an instance of the format.
  • When working from a spec, fixture, or reference implementation, copy the structure, never the prose.
  • Be concise, prefer code blocks over tables, and never write em dashes.

Python development

  • uv manages packages and projects; start with uv --help. Add dependencies with uv add <package>, then match the version bound convention of neighbouring entries in pyproject.toml.
  • ty is the type checker. Never use # type: ignore or # ty: ignore; leave the issue and raise it.
  • ruff owns lint and style. A rule wrong for one file gets a per-file-ignores entry with a reason, never an inline noqa, unless the flagged name is part of the contracted surface.
  • Comments record only what code cannot: rationale, trade-offs, links to specs, non-obvious domain facts.
  • The existing code is the style reference. Follow the Google Python Style Guide where it is silent.
  • Keep __init__.py files empty unless the contract requires an export there.
  • Use pathlib, Path.open over open, and .parents[i] over repeated .parent.
  • Tests use pytest and pytest-asyncio. Narrow optionals with assert value is not None.
  • Never add a bare *, keyword-only marker; write plain parameters and call them by keyword.
  • Only characters a keyboard types: no fancy arrows or typographic quotes.
  • Read a dependency's source to learn its types and behaviour rather than guessing.
  • When something fails, investigate from first principles rather than blaming the environment.

TypeScript development

  • pnpm runs from packages/typescript. pnpm check (Biome, then tsc --noEmit) and pnpm test must pass.
  • tsconfig.json stays strict; biome.json decides style. Tests under test/ use node:test and may use non-null assertions; src/ may not.
  • The binding is written against the contracts, not ported from Python.
  • Contract names may be respelled to TypeScript conventions, such as camelCase for fields callers construct (docs/typescript/names.md). Record the mapping in names.md.

Commits and pull requests

  • State facts and rationale only. Never internal working steps, plan files, session transcripts, or any non-public artifact.

Key Files

@contracts/README.md @contracts/VISION.md @docs/DEVELOPMENT.md

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.