amplifier-app-opencode
AGENTS.md3 starsChanged 38 days agoMITView on GitHub
amplifier-app-opencode makes Amplifier Agent the agent inside opencode 2.x: a Python package that installs an opencode plugin, and the plugin that runs Amplifier's HTTP face. - Sources of truth, in order: amplifier-agent's contracts/http-face.v1.md and docs/http/ for the face, opencode's plugin API at the tested version (reference/opencode in the workspace), then this repo's README. - The face is the only interface to Amplifier. A feature that needs more from Amplifier is a change to the face in amplifier-agent first, released before…
- 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,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.
The file
We split this AGENTS.md into the rules it gives an agent
3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 39
Run long e2e jobs detached and poll.
- Distinctive: line 43
Every file is read later by someone with no memory of the session.
- Distinctive: line 46
Never modify this file unless explicitly told.
≈ “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.
Files
amplifier-app-opencode makes Amplifier Agent the agent inside opencode 2.x: a Python package that installs an opencode plugin, and the plugin that runs Amplifier's HTTP face.
Orientation
src/amplifier_app_opencode/cli.py amplifier-opencode: install, uninstall, doctor, face
src/amplifier_app_opencode/cleanup.py finds and removes what 0.4.x generated
src/amplifier_app_opencode/face.py runs amplifier-agent-http's face for the plugin
src/amplifier_app_opencode/plugin_bundle/amplifier/ generated by `make plugin`; never edit by hand
plugin/src/ the opencode plugin's server part (TypeScript, built with bun)
plugin/tui/ the opencode plugin's TUI part, copied as source
tests/ unit tests for logic that is hard to get right
tests/e2e/ Digital Twin Universe suites; its own uv project
.agents/digital-twin-universe/ the e2e profile- Sources of truth, in order: amplifier-agent's
contracts/http-face.v1.mdanddocs/http/for the face, opencode's plugin API at the tested version (reference/opencodein the workspace), then this repo's README. - The face is the only interface to Amplifier. A feature that needs more from Amplifier is a change to the face in amplifier-agent first, released before this repo depends on it.
- The version matches the amplifier-agent release it is built against. Bump
versioninpyproject.tomland theamplifier-agent-httpref together. - The opencode version the plugin is tested against is the one the e2e profile installs. Moving it means reading
opencode's changelog for plugin API changes and running
make e2e.
Checks
make check # ruff, ty, tsc, and the plugin bundle is up to date
make test # pytest and bun test
make e2e # needs Docker and OPENAI_API_KEY; SUITE=<name> runs one suitemake checkandmake testpass before work is done. Changes to install, the plugin, or the face command also passmake e2e.- Prove behavior with e2e suites that install and run as a user would. Add unit tests only for logic that is hard to get right; never mock opencode or the face to test the plugin.
- Run long e2e jobs detached and poll; a tool timeout must not kill a run and orphan its universe.
Writing
- Every file is read later by someone with no memory of the session. No status in artifacts.
- Be concise, prefer code blocks over tables, never write em dashes.
- Conventional commits without a scope:
feat:,fix:,test:,docs:,chore:. - Never modify this file unless explicitly told.
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.

