ticket-runner runs the unattended half of the
mattpocock-skills chain. You plan with its skills; it
takes every ready Ticket to a merged pull request while nobody watches.
The chain is split in two. Planning is yours: /grilling, /to-spec and /to-tickets (or
/triage) turn a feature into small GitHub issues, each labelled ready-for-agent, with a
checklist of Acceptance Criteria and its blockers linked. Execution is the pipeline's. For
every such issue whose blockers have closed, it:
- claims the issue and creates a branch and a git worktree for it
- runs a headless
claude -psession that implements it with/implementand runs your tests - runs a second, fresh session that tries to prove the Acceptance Criteria are not met
- rebases, opens a pull request, waits for CI and squash-merges: the pipeline runs no tests on the branch itself, so the CI you set up on your pull requests is what gates the merge
One failure buys one fix session and a second pass. Anything it still cannot finish goes back
to you, labelled ready-for-human, with a draft pull request and a comment saying what failed.
Sessions run on your Claude plan, and an ANTHROPIC_API_KEY your shell exports is kept from
them; run --api-key bills them to that key instead. A session stopped by the rate limit, by the
API failing on its side, or by the key running out of credit or into its spend limit costs
nothing: the issue goes back on the board, the Run says what stopped it, and when the limit
resets where it can, and the next Run carries on from where it stopped.
It fits a repository where:
- you plan with
mattpocock-skills, set up once with/setup-matt-pocock-skillsand GitHub Issues as the tracker, and each Ticket is small enough for one session - there is a test or typecheck command for the sessions to run, and your pull requests run it in CI: without CI, a pull request merges code nothing ran
- the machine running it has Node 22 or newer,
git, an authenticatedgh, andclaudewith themattpocock-skillsplugin, version 1.3.0 or later
It merges to your base branch without asking. It is for repositories where that is what you want.
In the repository you want it to work in (the Target):
npx ticket-runner init # set the Target up and report what is still missing git add .gitignore CLAUDE.md ticket-runner.json docs/agents .claude/skills/ticket-runner git commit -m "chore: set up ticket-runner" && git push npx ticket-runner run # work through every ready issue
init writes a few files for you to review and commit: .gitignore lines, a conventions
document, a section in CLAUDE.md and a Claude skill. It also creates the triage labels and
turns on squash merging and branch deletion on merge. It commits nothing, and a session reads
those files only once they are on your base branch, so push them before the first run.
To keep it, install it globally:
npm install -g ticket-runner
| Command | What it does |
|---|---|
ticket-runner init |
Set this repository up, and report what only you can put right |
ticket-runner run |
Work through every ready issue, one at a time |
ticket-runner run 12 14 |
The same, taking only #12 and #14 |
ticket-runner run --lanes 2 |
Two issues at once |
ticket-runner run --api-key |
Bill every session to your ANTHROPIC_API_KEY, not your Claude plan |
ticket-runner stop |
Ask the Run in progress to finish what it holds and take no more |
ticket-runner remove |
Take the pipeline out of this repository |
ticket-runner -v |
Print the version |
A Run can also be started from the Claude app, in a Claude Code cloud session on the Target:
say "run it". A cloud session always runs on your plan, so it refuses --api-key.
ticket-runner remove # in the Target: what init wrote and what Runs left behind npm uninstall -g ticket-runner # the global install
remove asks first (--yes skips the question), commits nothing, and reports what it left
alone on purpose, such as open pull requests and the issues it commented on. npx leaves nothing
behind but its cache.
The project wiki explains the pipeline in depth:
- Install and remove
- Planning the work
- Running
- Configuration
- From Ticket to merge
- Hand-offs, stopping and resuming
- Internals
The vocabulary is defined in GLOSSARY.md, the decisions in
docs/adr/, and the conventions for working on the pipeline itself in
CONTRIBUTING.md.