Part 1: Software factory (cloud)
You set up a software factory: a crew of Claude Code sessions that plans with you, builds, reviews and merges, with Tares keeping the plan and your answers. Then you give it a small test job and watch it go from plan to pull requests merged on main.
Time: about 30 minutes. In our run: 2 minutes to start the crew, 3 minutes to plan with the ready-made spec, 11 minutes from hand-over to the last merge.
This guide uses Tares Cloud: Tares runs in a workspace we host for you. The crew itself is Claude Code sessions on your laptop, on your own Claude plan, in both guides. What changes from the local guide is where Tares runs:
| Local guide | This guide (cloud) | |
|---|---|---|
| Tares | You run tares up on your laptop | Already running in your workspace; you join with a link |
| MCP endpoint | You run tares mcp on your laptop | Your workspace serves it |
| Connecting the crew | Finds the Tares on your laptop by itself | tares login once, to pick your workspace |
| Crew page | 127.0.0.1:8787/crew | https://<your-workspace>.tares-glassflow.com/crew |
The crew, the planning interview, the pull requests and your answers are the same in both guides.
Before you start
- Do the setup: Everyone, then Part 1. You need the
tarescommand fortares loginandtares factory. - Claude Code is signed in on a plan that allows background sessions. The crew runs on your own subscription.
gh auth statusshows you are signed in.- The join link: console.tares-glassflow.com/join/munich-claude , also on Important links. Already joined? Sign in at console.tares-glassflow.com and use the same workspace.
What you build
The factory. A crew of Claude Code sessions running in the background on your own Claude Code plan:
- the orchestrator, which picks up planned projects and starts builders;
- a builder, which works the tickets in your repo, one pull request each;
- the reviewer, which reviews every pull request before it is merged.
Tares holds what they share: the spec, the tickets, the reviews and your answers. Here that Tares is your cloud workspace. The factory works on any repo; nothing in it is specific to tonight.
Its test job. To see the whole loop run once, you give it a deliberately small job. The starter is a link shortener with three endpoints:
POST /linkstakes a long URL and gives back a short code, for exampleaB3_x9.GET /{code}redirects to the long URL.GET /linkslists every link.
It does not count anything: you cannot tell how often a short link was opened. The test job is a
click counter. Every redirect counts as one click, and a new endpoint GET /links/{code}/stats
shows the count for one link.
Steps
Join the workshop
- Open the join link, console.tares-glassflow.com/join/munich-claude , and sign up or sign in. Joining creates your own workspace.
- When it says your workspace is ready, click Open.
Your workspace’s address is https://<your-workspace>.tares-glassflow.com; this guide calls it
your console.
Make your own copy of the starter
Make it in ~/claude-workshop, the folder the setup turned Rius on in, so the crew’s sessions in
your repo are traced. Pick any name:
mkdir -p ~/claude-workshop && cd ~/claude-workshop
gh repo create my-link-shortener --private --template glassflow/factory-workshop-starter
gh repo clone my-link-shortener
cd my-link-shortener
git pullGitHub fills your new copy a few seconds after creating it, so the clone often comes back empty
(“You appear to have cloned an empty repository”). The git pull brings the files in. You should
see app, tests, README.md and pyproject.toml in the folder.
See what the app does today
Start it in your repo folder:
uv sync
uv run uvicorn app.main:app --reloadIn another terminal, make a short link and keep its code in CODE:
CODE=$(curl -s -X POST localhost:8000/links -H 'content-type: application/json' -d '{"url":"https://glassflow.ai"}' | jq -r .code)
echo $CODE
curl -i localhost:8000/$CODE
curl localhost:8000/links/$CODE/statsYou should see a 6-character code, then HTTP/1.1 307 Temporary Redirect with
location: https://glassflow.ai/, then {"detail":"Not Found"}: the stats endpoint does not exist
yet. Leave the app running; you use it again in step 13.
Connect this terminal to your workspace
In your repo folder:
tares loginYour browser opens Connect a terminal. Pick your workspace and click Connect. You should see
“Connected” in the browser, and in the terminal:
this machine (…) is connected to <your-workspace> (…), Tares 1.49.0.
tares factory uses that workspace from now on, so there is no tares up or tares mcp to run.
Check everything
tares factory doctorYou should see ok on every line, including “Tares answers at https://<your-workspace>.tares-glassflow.com
(from the saved login)” and “MCP endpoint answers”, except two: “Claude Code has not trusted the
crew home” (FIX) and “no crew yet” (warn). Starting the crew clears both.
Give Tares access to GitHub
So it can follow your pull requests, CI and reviews by itself.
-
Copy the token
ghalready holds:gh auth token -
In your console, open Settings, then GitHub, and click Add a personal token.
-
Name:
github. Token: paste whatgh auth tokenprinted. Save.
Without this the crew still works, but it checks GitHub itself and Tares does not show the pull request state.
Start the crew
tares factory crew up- It asks to open Claude Code in the crew’s folder: pick 1. Yes, open it. In Claude Code pick
Yes, I trust this folder, then type
/exit. - Then it asks five questions, one per tab. Pick:
- Merging: The crew, once its reviewer approves and tests pass
- Releasing: No, it stops when work is merged to main
- Codex check: No (pick Yes only if you have the Codex CLI signed in)
- Builders: 1 (not the recommended 2: one builder is enough for this feature and saves your plan’s limits)
- Grants: Nothing more
- On Your answers, pick Save and start the crew.
You should see “started crew-orchestrator”, “started crew-reviewer” and “started the watch”, and
the address of your crew page, https://<your-workspace>.tares-glassflow.com/crew. About 2 minutes.
Plan the feature
In your repo folder:
tares factory spec "add a click counter: count each redirect and show it at GET /links/{code}/stats"Claude Code opens in a new spec session; trust the folder if asked. It reads the repo, then asks one
question at a time, each with a suggested answer. Accept the suggestions, and when it asks what the
stats endpoint returns, add: keep it small: two tickets at most, one milestone. When it asks
where to keep the tickets, answer on Tares only. It writes the plan to your workspace: a spec, one milestone with its checks, and two tickets.
Short on time? Use the ready-made spec instead: the spec session asks nothing and hands over by itself. That is what we did in our run: 3 minutes from the command to the hand-over.
Hand the plan to the crew
The spec session ends with “Hand this to the orchestrator now?”. Say yes.
- The spec session tells the orchestrator there is a new project, with your repo.
- The orchestrator starts a builder: a new Claude Code session that works in your repo, one ticket at a time.
- From here the crew owns the project. Type
/exitto close the spec session; you do not need it again.
Watch it build
You can follow it in three places.
- Your crew page,
https://<your-workspace>.tares-glassflow.com/crew. The crew shows the orchestrator and the reviewer; under Projects is your project, with how many of its tickets are merged. - GitHub. Your repo gets one pull request per ticket. The builder opens it, the reviewer reviews it, CI runs, and the builder merges it. In our run the first ticket merged 5 minutes after the hand-over and the second 6 minutes later.
- The crew’s own sessions.
tares factory crew attach orchestratoropens the orchestrator in your terminal;tares factory crew statusnames the builder, which you open the same way. Only watch the builder. To leave any session and keep the crew running, press ← (Claude Code shows its list of sessions), then Esc.
Answer the orchestrator
About a minute after the last merge, the crew page shows a question waiting for you. Answer in the orchestrator’s session:
tares factory crew attach orchestratorIn our run it asked two questions, one after the other. Type A for each:
- “Milestone ‘Click counter’ is done: keep the one assumption made during it?” This one comes only when the crew made an assumption while building, here an extra test the reviewer asked for.
- “Is click-counter done?”
It then offers to stop the crew. Leave that for the clean-up: press ← and Esc to leave the session.
Look at what Tares kept
Open your crew page: under Projects your project is now finished. Click it for the spec, the milestone and its checks, both tickets with their pull requests, and the reviewer’s verdict on each.
Try the feature
In your repo folder, get the merged code and run the tests:
git pull
uv run pytestYou should see every test pass, including the new click tests (15 in our run).
The app from step 3 reloads by itself after git pull. If you stopped it, start it again in your
repo folder:
uv run uvicorn app.main:app --reloadIt starts with no links, so in another terminal make a new one and open it twice:
CODE=$(curl -s -X POST localhost:8000/links -H 'content-type: application/json' -d '{"url":"https://glassflow.ai"}' | jq -r .code)
curl -s -o /dev/null localhost:8000/$CODE
curl -s -o /dev/null localhost:8000/$CODE
curl -s localhost:8000/links/$CODE/statsYou should see your code, the URL and "clicks": 2.
Finished early? Plan the README’s next idea the same way, from step 8: expiry (expires_at on
create, expired codes return 410) or tags (GET /links?tag=). The crew is still up and picks it up.
What just happened
tares factory specturned one line into a plan in your workspace: a spec, one milestone with checks, and two tickets, each with a working doc. A second model attacked the plan before it was written.- The orchestrator picked the project up and started a builder in your repo. The builder worked the tickets in order, one pull request each.
- The reviewer reviewed every pull request against a fixed bar. Once it passed and CI was green, the builder merged it.
- Tares kept the plan, the checks, the reviews and your answers, in the cloud: the crew on your laptop read and wrote them through your workspace.
If something is off
tares factory doctorsays “no Tares answers”.tares logindid not finish. Run it again and click Connect in the browser.- Stations say skills are missing. A
taresplugin from a marketplace is taking over:claude plugin uninstall tares@tares, thentares factory crew downandtares factory crew up. - Nothing moves for a while. Run
tares factory crew status: each station says what it is doing. If the orchestrator is waiting for you,tares factory crew attach orchestrator. - You hit your plan’s limit. Use the ready-made spec and keep Builders at 1. Your crew page shows how much of your plan’s 5-hour window is used.
- The interview proposes more than two tickets. Say
two tickets at most, one milestone.
Clean up
-
Stop the crew:
tares factory crew downThis stops the orchestrator, the reviewer, any builder and the watch. Your workspace keeps the project, tickets and answers.
-
Stop the app with Ctrl+C.
-
Optional:
tares logoutremoves this machine’s key from your workspace. Your repo keeps the merged feature; delete it on GitHub if you do not want it.