Skip to content

feat(opencode): move OpenCode install and entrypoint into an agent kit #485

Description

@mogul

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions