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.
- amplifier-agentSkill
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
- Very specific: line 6
After making changes, prek run --all-files and uv run --all-packages python scripts/check.py --runtime must pass before the work is done.
- Distinctive: line 17
Every feature or fix answers these, in order:
- Distinctive: line 28
Tests: Add unit or integration tests where they help implementation or pin precise internal behavior an evaluation cannot observe.
- Distinctive: line 32
Never modify this file unless explicitly told.
- Distinctive: line 36
Every file is read later by someone with no memory of the session, often a machine.
- Distinctive: line 37
No status in artifacts: no "not implemented yet", "for now", "coming soon".
- Distinctive: line 38
Never describe the format inside an instance of the format.
- Distinctive: line 39
When working from a spec, fixture, or reference implementation, copy the structure, never the prose.
- Very specific: line 49
Keep __init__.py files empty unless the contract requires an export there.
- Very specific: line 50
Use pathlib, Path.open over open, and .parents[i] over repeated .parent.
- Very specific: line 52
Never add a bare *, keyword-only marker.
- Distinctive: line 53
Only characters a keyboard types: no fancy arrows or typographic quotes.
- Distinctive: line 54
Read a dependency's source to learn its types and behaviour rather than guessing.
- Distinctive: line 55
When something fails, investigate from first principles rather than blaming the environment.
≈ “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.
Files
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-filesanduv run --all-packages python scripts/check.py --runtimemust 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:
- 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.
- 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.
Pages about internals (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 thisdocs/development/,docs/DEVELOPMENT.md) change freely but stay accurate. - Evaluations. Is the behavior covered by a task in
evaluations/? Add one when it is not, and keepevaluations/README.mdcurrent when the harness changes. - 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
uvmanages packages and projects; start withuv --help. Add dependencies withuv add <package>, then match the version bound convention of neighbouring entries inpyproject.toml.tyis the type checker. Never use# type: ignoreor# ty: ignore; leave the issue and raise it.ruffowns lint and style. A rule wrong for one file gets aper-file-ignoresentry with a reason, never an inlinenoqa, 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__.pyfiles empty unless the contract requires an export there. - Use
pathlib,Path.openoveropen, 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
pnpmruns frompackages/typescript.pnpm check(Biome, thentsc --noEmit) andpnpm testmust pass.tsconfig.jsonstays strict;biome.jsondecides style. Tests undertest/usenode:testand 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 innames.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
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
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.

