Toolbox

Global skills are baked at build; per-repo installs refresh on demand

Status: accepted — supersedes ADR 0001

The question comes from #1462. A toolbox is now usually opened on a parent folder (~/projects) and the developer cds into individual repos. Two Init Sequence families handled agent skills, and neither fits that:

~/.agents/skills (Codex, pi) is container-local and empty after every recreate, so whatever replaces the global half has to keep restoring itself.

Decision

Global skills: bake from the release tag at build, copy if different at start. The worktrunk pattern, generalised.

Per-repo tools: no automatic refresh, an explicit command.

Considered options

Keep the per-repo gate and run it from the shell, per cd. A chpwd hook could find the repo the developer entered and run ADR 0001's gate there. It would make the gate live again, but it puts installers that write tracked files behind a directory change, which is the "image upgrade hands you a dirty tree" surprise ADR 0001 existed to contain, now on every first cd after an upgrade. It also only covers zsh: an agent started in a pane never runs the hook. Rejected; the explicit command does the same work when the developer asks.

Stamp the global skills by version (as 20-cf.sh does with a marker). Copy-if-different reaches the same result with no stamp to keep in step, and it also repairs a skill edited or half-deleted by hand. Rejected.

Keep fetching the gh skill at start. It resolved the latest cli/cli release, not the bundled gh, and it needed the network on every start. Rejected.

Consequences