Intent
Move OpenCode-specific install/start ownership out of core acq behavior and into an OpenCode agent kit, following ADR-0030's agent-install contract.
Parent: #473
ADR: #474
Scope
- Provide an OpenCode agent kit with content-pinned installation.
- Prefer
nix profile install github:NixOS/nixpkgs/<rev>#<agent> when OpenCode is available through the selected nixpkgs rev.
- Use a sha256-pinned release binary pattern if nixpkgs cannot supply the agent.
- Declare the OpenCode entrypoint in the agent kit.
- Remove or retire the unpinned
npm install -g opencode-ai fallback as a contract path.
- Ensure any agent-populated image is treated as an artifact derived from applying the kit, not as behavior source-of-truth.
Deferred Decisions
- Exact image-building/caching automation can be deferred until after the kit path works from a generic devenv base.
- Provider config rendering is tracked separately.
Acceptance Criteria
- OpenCode can be installed from a generic devenv-enabled, agent-less base through the kit.
- The installed OpenCode version is content-pinned.
- Re-running create/run is idempotent.
- Current
acq run opencode . UX remains stable through the migration.
- Tests or live verification cover a clean sandbox path without an OpenCode-populated base image.
Orchestration Notes
Implementation should be done by an authoring sub-agent and reviewed by an independent adversarial review sub-agent. Review findings must be addressed before the increment is accepted.
Intent
Move OpenCode-specific install/start ownership out of core
acqbehavior and into an OpenCode agent kit, following ADR-0030's agent-install contract.Parent: #473
ADR: #474
Scope
nix profile install github:NixOS/nixpkgs/<rev>#<agent>when OpenCode is available through the selected nixpkgs rev.npm install -g opencode-aifallback as a contract path.Deferred Decisions
Acceptance Criteria
acq run opencode .UX remains stable through the migration.Orchestration Notes
Implementation should be done by an authoring sub-agent and reviewed by an independent adversarial review sub-agent. Review findings must be addressed before the increment is accepted.