The set of supported agents lives in one place: agents.json at the repo
root. Every registry-driven wiring and marketplace check (scripts/check-marketplace.sh,
scripts/check-qwen-marketplace.sh, scripts/check-plugin-wiring.sh,
scripts/check-opencode-wiring.sh, via scripts/lib/registry.sh) enumerates
agents from that registry, so a new agent needs no edits to those checks —
register it and they pick it up. Two places still hardcode per-agent detail
and need a line each: scripts/check-package-versions.sh (the crate↔manifest
pairs) and the Justfile footprint-regen/smoke recipes (which enumerate
the Claude marketplace plus opencode/plugins/*/).
- Copy the template front directory.
claude-code/plugins/example/is the template Rust plugin front end; duplicate the agent directory closest to the new host's format and rename it to the new agent'sdir. - Add one entry to
agents.jsonwith all eight fields:id,dir,plugins,marketplace(a path like.claude-plugin/marketplace.json, ornullwhen the host has no marketplace manifest),manifestPattern(with{plugin}for the per-plugin manifest path),artifactSuffix,sourceUrlBase, andnotPublished(plugin stems the checks skip, e.g.example). - If the agent has a marketplace (
marketplaceis notnull), regenerate the host manifests:bash scripts/gen-marketplaces.sh. - Run the gate command —
bash scripts/gen-marketplaces.sh --check(the same step CI runs, plus thejust gen-marketplacesrecipe) — and the wiring checks (just marketplace qwen-marketplace wiring opencode-wiring). The registry-driven checks pick the new agent up with no script edits; add its line toscripts/check-package-versions.shand its footprint/smoke coverage to the Justfile (see above).
- Delete the agent's directory.
- Drop its entry from
agents.json. - Regenerate (
bash scripts/gen-marketplaces.sh) and re-run the gate command from step 4 above.
Support is best-effort by design: an agent nobody registers in agents.json
is invisible to all gates — nothing fails, nothing checks it.
The Qwen Code fronts (for example opencode-ctl-mcp-qwen) are outside the footprint gate: the footprint tool
reads only the Claude Code ${CLAUDE_PLUGIN_ROOT} placeholder and defers Qwen's ${extensionPath}${/} form
(tools/plugin-footprint/src/manifest.rs:16), so a new Qwen front is not registered in any footprint list.
The delta cap compares fresh measurements against the merge-base document.
If the base document itself is stale, the correction PR trips the cap with
zero new source bytes. Procedure: verify with
git diff origin/main...HEAD -- <measured dirs> (must be empty of measured
inputs), admin-merge with footprint-override: <reason> in the merge
message. Each use is greppable via git log --grep=footprint-override.
Never push tags by hand — per-package *-v* tags are created only by
release-please after its bump PR merges, and tag protection enforces it.
In particular never run git push --tags: it pushes every local tag,
including stale or experimental ones, and each matching tag mints a real
release. Footprint gate overrides use footprint-override: <reason> in the
merge message (see the footprint recipe notes in the Justfile).
Marketplace source.url entries are tag-pinned
(releases/download/<package>-v<version>/<file>), rendered from each
package's own manifest by bash scripts/gen-marketplaces.sh. There is no
latest anywhere: one repo-wide latest cannot serve nine packages.
After every release-please bump PR, the committed marketplaces are stale by
construction (manifests moved, urls did not), and CI fails the bump PR on
bash scripts/gen-marketplaces.sh --check plus the host wiring checks. Procedure: check
out the release-please branch (release-please--branches--main), run
bash scripts/gen-marketplaces.sh, commit, push. Merge the bump PR only
once that commit is green. The new marketplace points at the about-to-exist
release; dist + bundle workflows attach the zips within minutes of the tag.
Two GitHub behaviors have bitten this repo; both are silent (no error, no run, nothing anywhere to say why):
- Tags created by release-please never trigger tag-push workflows.
release-please pushes with the default
GITHUB_TOKEN, and GitHub does not start workflow runs forGITHUB_TOKEN-created pushes. Concretely: after every release PR merges, its tags exist and its GitHub releases exist (empty), but dist never builds and no bundle workflow ever fires. Until release-please runs under a PAT (open issue), backfill by hand: delete each empty release (gh release delete <tag> --yes), delete each remote tag, recreate the identical tag at the identical commit, and push. - Never push more than ~3 tags for one commit in a single push. Past that,
GitHub assumes a mistake and silently starts zero runs. Push tags one at
a time (
git push origin <tag>, confirm the run appears, repeat).