Agent tooling
proposed checked A convention of ontrack-engineering 0.6.0. How ontrack ruled on it.
traits: agent: hosts:Status
Proposed
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
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
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 }}Everything below disappears when you rule, from this sentence up to the Consequences heading, which stays.
How to rule: five steps, all in this file. Read all of them before doing any, because the last one deletes the other four, and do them in one commit.
- Write the value of each key under
traits:in the frontmatter, or, if you rule rejected, remove the wholetraits:block. - Change
status:from proposed to accepted or rejected. - Fill
date:andauthors::date:asYYYY-MM-DD, the day you rule;authors:, the names of the people who decided, without email addresses. - Rewrite the Positive, Negative and Neutral lists under Consequences for your verdict: what it makes easier, and what it costs.
- Last, delete this block, from its first sentence up to the Consequences heading, which stays. In its place, write the reason for your decision wherever you depart from the recommendation, or, if you adopt it as is, one line that says so.
The first step is the one people forget: a decision written only in prose leaves an agent guessing. This is what the frontmatter looks like once filled, and it is the one part of the file an agent reads without interpreting it:
---adr: ADR-0017slug: agent-toolingtitle: Agent toolingstatus: acceptedrevision: 3date: 2026-11-14authors: [Your Name]supersedes: []check: npx --no-install ontrack-engineering-check ADR-0017traits: agent: hosts: [claude-code]---The check: line stays. Once this ADR is accepted, ontrack check
runs it from your repository’s root. It reads agent.hosts and checks
only that each host’s settings file is committed, not what it says:
claude-codeandcopilot:.claude/settings.json;opencode:opencode.jsonor.opencode/opencode.json.
It reads none of them: an entry with no sha or no exact version passes,
and review catches it. [] has nothing to check. A host it does not know
fails, and so does the revision 1 key agent.host, with the line to write
in its place.
The Alternatives Considered below were weighed by governance without knowing your context. Weighing them against yours is still to do, and it is what makes a decision different from an accepted default.
Consequences
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
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 covers Claude Code, opencode and Copilot CLI only. Another host, Copilot’s cloud coding agent included, is a revision of this ADR.
- A repository with Claude Code and opencode maintains two sets of settings, and the same plugin may not exist for both. Copilot CLI shares Claude Code’s.
Neutral
- 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
The repository’s own marketplace, vendoring as a last resort
Recommended, for the reasons above.
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
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
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
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
Each contributor installs what they like. Nothing to maintain, and no two sessions are guaranteed the same tools.
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.
