Agent tooling
accepted ADR-0017 engineering/ADR-0017-agent-tooling
agent: hosts: [claude-code]Status
Section titled “Status”Accepted
What is this file? A question governance asks your repository, with the answer it recommends. While it says
status: proposed, you may edit it freely.revision:dates the question, not the file: you do not fill it, and it only moves when the question changes. rejected is a full answer: when the question does not apply here, rule rejected, remove the wholetraits:block, and say what stands in for it. ADR-0001 explains the mechanics.
Context
Section titled “Context”Once this repository rules an ADR, an agent knows what was decided, not
how to carry it out. ADR-0006 says commitlint; nothing says how to set
it up. Skills package that know-how: instructions, sometimes scripts, that
an agent loads when the task calls for them. Several governance ADRs name
the skills that fit them in a Suggested skills line in their References.
Skills are also a way in for content nobody reviewed. A skill fetched from
the network on each run can change between two sessions; a skill committed
to the repository can pre-approve tools through its allowed-tools field.
What reaches the repository, from where, and pinned how, is the question.
governance targets Claude Code first, and covers opencode and
GitHub Copilot CLI too: one repository can be worked on with several,
by different contributors.
While this key is empty, an agent does not know which hosts’ project
settings the repository expects, and installs skills however the last
guide it read suggested. All three read AGENTS.md, where ontrack writes
the rules this repository accepted; opencode does not read CLAUDE.md.
Decision
Section titled “Decision”What governance recommends, and why.
| Key | Recommended value | Reason |
|---|---|---|
agent.hosts |
[claude-code] |
the agent governance’s ADRs are written for, and the one whose project settings can declare and pin the skills a repository relies on |
List every host the repository’s contributors work with: a team where
some use Claude Code and others opencode rules
[claude-code, opencode], and the rules of both apply. A contributor
working with Copilot CLI adds copilot. [] says the
repository declares no agent tooling: the rules below do not apply, and
the Suggested skills lines are only reading material.
The list of plugins lives in each host’s own files, not in a trait: the host reads them, and a trait copying them would drift.
What governance fixes when the list holds claude-code.
- Plugins first, through the repository’s own marketplace. The
repository keeps a marketplace in
marketplace/.claude-plugin/marketplace.json, with a name of its own (not an upstream marketplace’s name, nor a reserved one). Each plugin it uses gets an entry there, and.claude/settings.jsonpoints at that directory throughextraKnownMarketplacesand turns each plugin on throughenabledPlugins. - Pin every entry to a commit. Each entry’s
sourcecarries asha, the full 40-character commit of the plugin’s own repository:githubwithrepo,urlwith a git URL, orgit-subdirwithurlandpathfor a plugin inside a larger repository. A third-party marketplace is never used directly, because its entries may not be pinned: pinning that marketplace’srefdoes not stop an unpinned entry from following its repository’s head. Updating a plugin means changing ashain a pull request. - Vendor as a last resort. A skill that no marketplace publishes is
copied into
.claude/skills/<name>/, fetched at a tag, checked against a hash, and committed. The pull request that adds it is reviewed like code,allowed-toolsincluded. opencode reads.claude/skills/too, so a repository with both hosts keeps one copy. - Forbidden: an entry with no
sha, a third-party marketplace enabled directly, a skill declared through apackage.jsonkey (it would reach every repository that installs the package), and a skill run throughnpx -y(it resolves a different version on every run). - Skills an OpenSpec schema lists are installed only on explicit request in the session, as ADR-0016 rule 3 says.
What each contributor still has to do. enabledPlugins installs
nothing. After accepting the workspace trust dialog for the repository,
each contributor runs, once per plugin:
claude plugin install <plugin>@<marketplace> --scope projectUntil then, /plugin reports the plugin as enabled in project settings but
not installed. If a contributor already has the same plugin from its
upstream marketplace, they turn that copy off in their untracked
.claude/settings.local.json ("<plugin>@<upstream>": false), since two
enabled plugins with one name conflict. The marketplace/ path is resolved
against the repository’s main checkout, so every worktree shares it.
Neither the marketplace nor vendored skills load in cloud sessions.
What governance fixes when the list holds opencode.
- The configuration is committed as
opencode.jsonat the root, and as.opencode/opencode.jsononly when the repository needs one. opencode also acceptsopencode.jsonc, but the ADR-0022 check reads onlyopencode.json. - Pin every plugin. Each entry under
pluginsnames an npm package at an exact version (opencode-acme-plugin@1.2.0), or a Git specification ending in a full 40-character commit hash. opencode checks any other form for updates at startup. A range, a tag or a bare name is forbidden. Updating a plugin means changing a version or a hash in a pull request. - A local plugin under
.opencode/plugins/is committed, and the pull request that adds it is reviewed like code. - Vendor as a last resort, as for
claude-code: a skill goes under.claude/skills/<name>/, which opencode reads..opencode/skills/is for a skill only opencode uses. - Skills an OpenSpec schema lists are installed only on explicit request in the session, as ADR-0016 rule 3 says.
opencode.json (the versions are examples; write the ones you reviewed):
{ "plugins": [ "opencode-acme-plugin@1.2.0", "@acme/opencode-plugin@0.4.1" ]}opencode installs these plugins on startup: there is no per-contributor install step.
What governance fixes when the list holds copilot. copilot means
GitHub Copilot CLI. Copilot CLI reads extraKnownMarketplaces,
enabledPlugins and hooks from .claude/settings.json, the marketplace
it points at, and .claude/skills/, so the repository keeps the Claude Code
files above, and their rules 1 to 5 apply as they are.
- Each contributor trusts the folder in Copilot (Copilot lists trusted
folders under
trustedFoldersin~/.copilot/config.json). Copilot CLI then installs each enabled plugin by itself, at the commit its entry pins: there is no install step. Outside a trusted folder, it reads neither the plugins nor the hooks. .github/copilot/settings.jsonholds no plugin list. That file takes precedence over.claude/settings.jsonfor the plugins it names, so a committed one holds neitherenabledPluginsnorextraKnownMarketplaces: the list stays in one place.- Copilot CLI does not read
permissions. A rule that must hold for it is aPreToolUsehook in.claude/settings.json, as ADR-0022 shows.
Read from Copilot CLI 1.0.112 on 2026-11-15. Copilot’s cloud coding agent
and Copilot in VS Code were not tested, and copilot does not cover them.
Departing from a rule (vendoring everything to work offline, say) is declared in your own ADR, with its reason.
What the two Claude Code files look like (the SHAs are examples; write
the commits you reviewed). marketplace/.claude-plugin/marketplace.json:
{ "name": "your-repo-tools", "owner": { "name": "Your Name" }, "plugins": [ { "name": "arc42-toolkit", "source": { "source": "github", "repo": "MSiccDev/arc42-toolkit", "sha": "0123456789abcdef0123456789abcdef01234567" } }, { "name": "docs-hygiene", "source": { "source": "git-subdir", "url": "melodic-software/claude-code-plugins", "path": "plugins/docs-hygiene", "sha": "89abcdef0123456789abcdef0123456789abcdef" } } ]}.claude/settings.json:
{ "extraKnownMarketplaces": { "your-repo-tools": { "source": { "source": "directory", "path": "./marketplace" } } }, "enabledPlugins": { "arc42-toolkit@your-repo-tools": true, "docs-hygiene@your-repo-tools": true }}Adopted as recommended: claude-code, the only agent host this
repository has files for (.claude/skills/, .claude/commands/).
Ruled again on revision 3, which renames agent.host to agent.hosts: [claude-code], the same answer. The repository has no opencode or Copilot CLI files.
Consequences
Section titled “Consequences”Positive
Section titled “Positive”- Every contributor and every agent gets the same skills, at the same commit, from a list kept in the repository, even when the upstream marketplace pins nothing.
- Updating a skill is a reviewed pull request that changes a SHA, never a silent change between two sessions.
- A vendored skill is read in review before it can pre-approve a tool.
Negative
Section titled “Negative”enabledPluginsinstalls nothing: a contributor who skipsclaude plugin installworks without the skills and may not notice.- Pinned SHAs go stale; someone has to bump them, by hand or with a tool.
- The repository maintains a marketplace file of its own, one entry per plugin.
- The policy is Claude Code’s. Another agent host needs its own ADR.
Neutral
Section titled “Neutral”- At the time of this ruling
.gitignoreignores all of.claude/, and the repository has neither a marketplace nor a committed.claude/settings.json: the OpenSpec skills in use are local copies, outside review. - Restricting which marketplaces may be used at all
(
strictKnownMarketplaces) is a managed setting, set by an administrator, outside any repository and outside this ADR.
Alternatives Considered
Section titled “Alternatives Considered”The repository’s own marketplace, vendoring as a last resort
Section titled “The repository’s own marketplace, vendoring as a last resort”Recommended, for the reasons above.
Upstream marketplaces, pinned by ref
Section titled “Upstream marketplaces, pinned by ref”Less to maintain: declare each upstream marketplace with a commit SHA as
its ref. But an upstream entry that points at another repository without
a sha still follows that repository’s head, and the consuming repository
cannot fix someone else’s marketplace file.
One ADR per agent host
Section titled “One ADR per agent host”Keeps each host’s rules apart, but AGENTS.md and .claude/skills/ are
shared by both, and ADR-0022 would have to read one ADR per host to find
the deny.
Vendor every skill
Section titled “Vendor every skill”Everything under review and available offline, but each update is a manual copy, and the repository carries the content of every skill it uses.
A trait per ADR listing its skills
Section titled “A trait per ADR listing its skills”Puts the skill next to the decision, but copies what
.claude/settings.json already holds, and couples every ADR’s answer to
plugin names that change.
No policy
Section titled “No policy”Each contributor installs what they like. Nothing to maintain, and no two sessions are guaranteed the same tools.
References
Section titled “References”- Suggested skills:
plugin-structureandskill-developmentfromplugin-dev@claude-plugins-official;checkfromskill-quality@melodic-software, before vendoring a skill. - Original to governance; no surdesrails SDR. The vendoring rule follows the one surdesrails SDR-0013 applies to its Angular skill.
- ADR-0001: how governance ADRs are ruled on, and why
Suggested skillslines change norevision. - ADR-0016: skills listed by an OpenSpec schema.
- Claude Code documentation: plugins for a team, marketplace reference and skills, read on 2026-11-14.
- opencode documentation: config, plugins, skills and instructions, read on 2026-11-15.
- GitHub Copilot CLI documentation: plugins, plugin reference and configuration directory, read on 2026-11-15, and tests with Copilot CLI 1.0.112 the same day.
The key.
| Key | What it holds | Allowed values |
|---|---|---|
agent.hosts |
the agents whose project settings this repository uses | a list of claude-code, opencode, copilot; [] for none |
What the check does not see. It refuses an empty key, a value that is
not a list, and an unknown host. It reads neither the settings files nor the
marketplace file: an entry with no sha or no exact version passes it, and
review catches it.
An empty key is not an answer: this one is required. The value is written in this file and nowhere else; whoever needs it links here. See ADR-0001 for the check command.
Revisions. What changed in the question at each revision, and what a repository that already ruled must re-answer.
- Revision 2:
agent.host(one value) becameagent.hosts, a list ofclaude-codeandopencode, with rules foropencode. Re-answer: write your former value as a one-item list (agent.hosts: [claude-code]), oragent.hosts: []fornone; addopencodeif contributors use it. - Revision 3:
copilot(GitHub Copilot CLI) joinsagent.hosts, with its rules. Nothing to re-answer unless contributors use Copilot CLI: then addcopilot, and thePreToolUsehooks ADR-0022 shows.
