delivery
Lands pull requests with proof, cleans up after them, and ships the delivery
agents and instructions for fanning work out to subagents.
Ported from the omp-plugins delivery plugin (1.4.3 plus the land-fetch fix).
delivery_hygiene_report and the worktree-reaper agent were not ported: use
git worktree list for an inventory. A receipt for a branch whose worktree still exists
means delivery_cleanup has not run yet (or delivery_land could not finish it).
Install
opencode plugin add 'github:srobroek/harness-plugins::path:plugins/delivery/opencode'
The implementer agents spawn explore, operator and researcher. Nested
subagents need experimental.subagent_depth of at least 2 in your config.
Tools
| Tool |
What it does |
delivery_land |
Proves a pull or merge request landed (merging it at most once) and writes one landing receipt. |
delivery_cleanup |
Removes the receipt's worktree and local branch after proving the landing and the bead close-out, then writes a continuation receipt. |
Both tools take JSON Schema input and declare an output schema, so Code Mode
callers get typed results. The same fields (without the full receipt) are stored
in the tool result's metadata. Both tools honour cancellation: an interrupt ends
the running git, gh or glab command. delivery_cleanup stops honouring it
once git worktree remove starts, so a removal is never left half done.
delivery_land
Inputs: pr, and when needed merge_method (squash by default, merge,
rebase), repo, repoPath, remote, expectHeadSha, worktree, beadId,
setupAutoDelete, requireApproval, requireGreenChecks, queueWaitSeconds.
Requires Git 2.38 or newer: the content proof compares the landed tree with
git merge-tree --write-tree. An older or unreadable Git refuses before any merge is issued.