Skip to content

ticket-runner ​

Humans plan, the pipeline executes.

ticket-runner runs the unattended half of the mattpocock-skills chain. Planning a feature takes judgement, so it stays with humans, in their own sessions: /grilling, /to-spec and /to-tickets (or /triage) turn it into GitHub issues, each with checkbox Acceptance Criteria, its blockers linked and the ready-for-agent label. Carrying an issue from there to a merge is repetitive, so the pipeline does it unattended, driving /implement where a human would have typed it. For each Ticket it has a headless Claude Code session implement the work, has a second session try to prove the criteria are not met, opens a pull request, waits for the CI the repository runs on it and squash-merges, or, on a Target that merges by hand, hands the green pull request to a human to merge. Whatever it cannot finish goes back to a human with a draft pull request and a comment.

Why it exists ​

After Planning, every Ticket still needs an attended session: open it, paste the Ticket, wait, review, commit, merge, close, then go and find the next unblocked Ticket. Ten Tickets are ten sessions. The Frontier, the Tickets nothing blocks any more, never moves by itself, because nothing closes Tickets. The pipeline ends your part when Planning ends: one command drains the Frontier and leaves merged code behind.

When it fits, and when it does not ​

It fits when:

  • Planning has produced agent-sized Tickets, with checkbox criteria and native blockers.
  • The repository has a test or typecheck command, and its pull requests run it in CI: the pipeline runs no Check on a Ticket's branch, so the CI you set up is what gates the merge.
  • You want the work merged while you are away: overnight, or started from the Claude app.

It does not fit when:

  • The work needs a human's judgement midway. A Run asks nobody anything; a Ticket it cannot finish reaches a human only as a Hand-off.
  • No checkbox can grade the criteria. The verify Stage grades the - [ ] lines and any defect the branch itself made, and a verdict of nothing but unverifiable fails: it is no evidence to merge on.
  • Nothing may merge without a person's review, and you want the pipeline to merge anyway. A pull request is squash-merged as soon as its CI passes; nobody approves it first. A Target that sets merge to false gets each green Ticket as a Hand-off instead, its pull request ready for a human to review and merge.
  • The repository has no tests, or no CI on its pull requests. A Run refuses to start without a Check command, unless the config says "checks": [], and the pipeline runs none on a Ticket's branch either way: a pull request with no CI merges code nothing ran.

Quick Start ​

You need Node 22 or newer, git, an authenticated gh, and claude with the mattpocock-skills plugin, version 1.3.0 or later. Installation has the full list.

bash
npm install -g ticket-runner

cd ~/code/acme        # the repository you want it to work in
ticket-runner init    # set it up, and report what only you can fix
git add .gitignore CLAUDE.md ticket-runner.json docs/agents .claude/skills/ticket-runner
git commit -m "chore: set up ticket-runner" && git push
ticket-runner run     # take every ready Ticket to a merge

A Stage reads what init wrote only once it is on the base branch, so push it before the first Run, through a pull request if the repository asks for one.

To try it before installing anything, type npx ticket-runner wherever these pages say ticket-runner: see Try it without installing.

A Run takes only issues that Planning made usable: labelled ready-for-agent, with - [ ] criteria, and blocked only through GitHub's own blocked by links.

The whole flow ​

From Ticket to merge walks the execution half one step at a time. What a Hand-off and a Release each leave, and what you do about them, is on Hand-offs, stopping and resuming.

The guide ​

PageRead it for
Install and removeRequirements, the npm install, init, what a Run requires of a Target, remove, uninstalling
Planning the workWhat makes an issue a Ticket: Specs, Acceptance Criteria, native blockers, labels, the guards
Runningrun, --lanes, --api-key, a narrowed Run, stop, -v, the summary and exit codes, logs, running from the Claude app
ConfigurationEvery field of ticket-runner.json
From Ticket to mergeThe Stages, the fix budget, Lanes and the Landing, rebase conflicts, what the board is told, Notes
Hand-offs, stopping and resumingHand-off, Release, Stop against kill, Stranded Tickets, handing a Ticket back, the Run lock and the state branch
InternalsPorts and adapters, a map of the modules, versions, the ADRs, working on the pipeline itself

The words the pipeline uses (Ticket, Run, Stage, Lane and the rest) are defined once, in the glossary.