Two tracks take a business outcome to a verified draft pull request:
| Select | Repository agreement | Result |
|---|---|---|
Discovery (discovery) |
.opencode/discovery.yaml |
An approved story revision and its linked tests and artifacts: the Discovery Package. |
Delivery (delivery) |
.opencode/delivery.yaml |
An architecture review, tested implementation and criterion-by-criterion QA evidence in a draft PR. |
With OpenCode v2 (tested with 2.4.2) and a connected model, run:
opencode plugin add github:StuartStephens/opencode-easy-delivery
opencode plugin list
If you installed from npm or pinned a tag, remove that exact target first;
use opencode plugin list to identify it. If you already use the bare GitHub
target, just update. The package uses your configured model and leaves your
default agent alone.
Select Discovery or Delivery in an interactive session. Even “Hello” checks that track's agreement in the current worktree. If missing, Workflow Setup reads the repo and proposes rules for a maintainer to approve. Discovery learns your definition of ready, references, destinations, and case/guide requirements. Delivery learns branch and worktree conventions, architecture, tests and coverage, QA evidence, environments, approvals and promotion steps. Environment Setup helps users run an app when needed; discovery needs no build environment or database access.
opencode run --agent discovery "Draft only in chat. I need time zones on exports so I can compare incidents. I don't know the click path. Help me design the test; do not publish."
opencode run --agent delivery "Check whether story STORY-17 and its linked tests are ready for delivery. Intake only; do not edit or publish."
Discovery designs executable tests with stable criterion IDs and records assumptions, constraints, risks and the approval of a specific revision. The package can be a linked work item, repo document or reviewed chat text; you don't have to maintain a second copy. Separate test-case artifacts and process guides are independently configurable. Approving discovery never starts delivery.
For implementation, Delivery reads both agreements. A complete, approved external story can go straight to architecture review without a Discovery session or another sign-off. If a required test, link or approval is missing, Delivery identifies the gap and pauses. If the repo hasn't defined readiness, it starts Discovery setup before implementing.
Delivery works in a dedicated Git worktree, checks the agreed test against the baseline, implements, and repeats the test. The validation package maps each criterion to observed evidence, replay steps and remaining human checks. For visual workflows this may be a recording with timestamps showing the outcome. Deployment guidance does not authorize merging or production deploys.
The orchestrators can delegate outcome analysis, test design, specification review, architecture review, TDD implementation and validation. You stay with the selected track; only the orchestrator publishes the approved artifacts.
Merging a verified change to main makes it available through the GitHub
target. No version bump, release PR, tag or registry publish is needed.
For the bare target, check and apply a newer commit explicitly:
opencode plugin check github:StuartStephens/opencode-easy-delivery
opencode plugin update github:StuartStephens/opencode-easy-delivery
To uninstall, run opencode plugin remove github:StuartStephens/opencode-easy-delivery.
If installed with a different target, use that exact target. Repo agreements
and application code remain yours.
Use Node.js 24+, npm, Git, tar, and the OpenCode CLI on PATH:
npm ci
npm test
CI checks PRs and pushes to main. The smoke test packs the actual plugin,
installs two Git revisions into an isolated profile, verifies the primary
agents, specialists and skills, and removes the plugin without disturbing
other settings. No model credentials needed. For manual behavior checks,
exercise the tracks with disposable stories.
This repo uses chat-only Discovery and its own Delivery agreement.