Deliver an authorized multi-ticket plan in parallel along its task graph: each ready ticket goes to a background implementer subagent in its own worktree, merges into an integration branch, which unlocks the next batch, followed by one review and cleanup. Use when the plan has dependency edges with at least two tickets ready at once and the host supports background subagents and git worktrees; otherwise use implement directly.
---
name: ship
description: "Deliver an authorized multi-ticket plan in parallel along its task graph: each ready ticket goes to a background implementer subagent in its own worktree, merges into an integration branch, which unlocks the next batch, followed by one review and cleanup. Use when the plan has dependency edges with at least two tickets ready at once and the host supports background subagents and git worktrees; otherwise use implement directly."
---
# Parallel delivery
Goal: implement, review, and close out a plan with dependency edges on a single integration branch.
Preconditions: the plan has dependency edges with at least two items ready at once, and the host supports background subagents and git worktrees. Otherwise use `implement` and work through the items in order; sequential delivery needs no orchestration layer. If scope or acceptance is unclear, go back to `brainstorm` or `plan`; if a root cause is unknown, use `diagnose` first.
1. Create a single integration branch. Optionally dispatch one exploration subagent first that writes its code and documentation notes to a shared directory outside the repo, so later implementers read them instead of each exploring again.
2. The frontier is every item whose dependencies have all merged into the integration branch. Compute it from the branch itself, not from tracker blocked-by counts: those only update when a blocker closes, so mid-run they are stale. Dispatch one background implementer subagent with a fresh context per frontier item, each in its own worktree and branch.
3. Dispatch with context pointers (plan path, ticket number, notes path, relevant commits) rather than restated content. The dispatch prompt explicitly requires following `implement`, with behavior changes red-then-green via `tdd`, because subagents do not inherit the skills loaded in this session.
4. Each implementer, before starting and before any edit, confirms its worktree is based on the integration branch and resets onto it if not; before reporting done, it merges the integration-branch tip into its own branch so landing it is a fast-forward.
5. When an implementer finishes, the orchestrator or a merger subagent merges its branch into the integration branch, then recomputes the frontier from the branch and immediately dispatches newly ready items.
6. Items whose checks depend on untracked files (gitignored fixtures, local databases, credentials) are checked in the main checkout with the integration branch checked out: a worktree holds only what git tracks, and a test that silently skips there has not passed.
7. Run `review` once, after every item has merged; a mid-run review reads unbuilt items as missing and sets off a fix-review loop. Hand all findings to one fresh implementer subagent, then recheck only the fixed points.
8. After the fixes, merge the integration branch into the main branch (open a PR instead if the project works through PRs), close out with `cleanup`, and remove every worktree and ticket branch.
Only the orchestrator writes `.harness/`; subagents deliver commits and a short report. Writing state from one place keeps it from drifting across branches.
At any stage, if you reach an authorization boundary or a trade-off the user must decide, stop and explain; do not decide for the user.
This mode suits parallelism you can watch and steer within a session; for truly unattended batch execution, a deterministic script or CI loop is faster, cheaper, and more reliable.
End with a delivery summary: the outcome of each ticket, merge conflicts, review findings and how they were fixed, and remaining items.