How do I get Claude Code to deploy after the pull request merges?
Tares deploys after a merge when you ask for a releaser the first time you run tares factory crew up. The releaser is a Claude Code session in your software factory for Claude Code that tags and deploys. Without one, every ticket ends at merged on main.
How it works
The software factory for Claude Code is a crew of Claude Code sessions on your machine: an orchestrator, a reviewer and builders. A builder opens a pull request, the reviewer posts a verdict, and the builder merges once the reviewer passes it and CI is green. Your merge setting decides whether that happens on its own (L4-ship) or waits for your yes (L3-review).
Releasing is a separate choice, and it is off unless you ask for it. When you turn it on, a releaser joins the crew:
- It tags and deploys after work is merged.
- It is one session that serves every project the crew has.
- If you turn on
idle_wake, a release request is one of the events that wakes it, so it sits idle until there is a release to make.
Tares holds the plan, the tickets, the reviews and your answers, so a releaser that restarts carries on from the record. The sessions that keep the crew running are covered in Run autonomous, self-running Claude Code sessions.
Set it up
The order below is the same for every setup. Steps marked local apply to a local Tares, and the step marked cloud applies to Tares Cloud.
-
Check that Claude Code is signed in, that
ghis signed in with write access to the repos the crew works in, and thatgit,jqandcurlare installed.gh auth login -
Install the CLI.
uv tool install tares # or: brew install glassflow/tap/tares -
Local: start Tares.
tares up -
Local: in a second terminal, start the MCP endpoint every crew session shares. The crew reaches a local Tares only through it.
tares mcp --transport streamable-http -
Cloud: sign in and pick your workspace in the browser. There is no MCP endpoint to start.
tares login -
Give Tares access to GitHub. On a local Tares, add a token or App under Settings > GitHub. On Tares Cloud, choose Connect GitHub.
-
Bring up the crew. The first run asks how far the crew may go: whether it merges on its own after review and green CI or waits for your yes, whether it releases, whether a second model checks every commit, how many builders run at once, and anything you always allow. Say yes to releasing. Tares keeps your answers.
tares factory crew up -
Plan a project. When you hand it to the crew, the orchestrator picks it up.
tares factory spec "what you want to build"
Run tares factory doctor at any point to check everything the crew needs. Build a software factory with Claude Code has the full setup.
What you get
- A crew that carries a ticket from the plan through review and merge, then on to a tag and a deploy, with the releaser doing the last step.
- Your say over merging and releasing as two separate settings. A project can still wait for your yes before every merge while the rest of the crew merges on its own.
- Questions that still reach you. The orchestrator is the only session you talk to, and it brings you what needs you, one at a time with a recommendation. Attach to it to answer.
tares factory crew attach orchestrator- A record on Tares of the plan, tickets, reviews and your answers, so a restarted crew continues instead of starting over.
When something else fits
- If you want tickets to stop at merged on main and deploy by your own process, leave the releaser off. That is the default, and the crew stops there.
- If you would rather drive a single project in your own Claude Code session than hand it to the crew, run
tares factory sessionand name the project. For a project the crew already has, the session asks whether to take it over. Say yes and the crew stops: its builders push what they have and write their progress, and your session carries on from their branches and pull requests. Say no and the crew keeps the project.
Related
Still stuck? Get help