$ docker compose up -d

Jira ticket in, verified feature out.

Software Factory puts Claude Code agents on your Jira tickets. You merge.

KAN-4, the first real ticket: voice input for this site's command palette, 20 criteria
  1. 04:56BuildPicked up from To Do$1.41
  2. 05:16CheckFailed at red, passed at green
  3. 05:17PR5 files, +727/−2, screenshots$0.10
  4. 05:20Review8 comments, 3 real issues$0.56
  5. 10:48MergeMe, after reading the PR
  6. 10:51Verify11 pass, 1 fail, 8 untestable$0.16

Total $2.23

Why not one agent?

When the same agent builds a feature and reports on it, a misreading of the ticket shows up the same way in both. The factory splits the work so the checks can disagree.

  1. The builder never grades its own work

    A separate verifier checks every acceptance criterion in a real browser, without reading the code. On the first ticket it caught a bug the builder's own test passed.

  2. Code moves the ticket, not an agent

    Jira transitions, labels, pushes and PRs are plain TypeScript, decided by test exit codes and git history. An agent saying “all tests pass” is a claim the factory checks.

  3. Every step leaves evidence

    A red commit and a green commit, a screenshot per criterion, a review, a verdict table. You can audit any of it without redoing the work.

  4. You still decide what ships

    Agents comment, they never approve. The PR waits for your merge, and anything uncertain comes back as UNTESTABLE instead of a guess.

One ticket, end to end

Agents do the work in the right-hand lanes. Everything that changes Jira or GitHub goes through the orchestrator, and the one approval is yours.

one ticket through the software factory, end to endbuildreviewmergeverifyYouwrites, reviews, mergesJira Cloudstatuses and labelsOrchestratorplain TypeScript, holds tokensClaude Code agentsagent user, no tokensGitHubbranch, PR, review1 Write the ticketfactory-enabled, To Do2 Poll, pick one ticketevery 60s: priority, then age3 Move to In Progress+ factory-building4 Fresh clone of the base branchthe token never leaves the factory5 Run ticket-builder (Opus)sudo agent-exec, clean env6 Red commit, then greenfailing tests first, factory/KEY7 Hand the branch backas a git bundle8 Check the TDD claim itselffails at red, passes at HEAD9 Start the app, screenshot each ACevidence-capture (Sonnet)10 Push factory/KEY, open the PRscreenshots committed to the PR11 In Review, screenshots attached+ factory-pr-open12 Run pr-reviewer (Opus)ticket, diff, CLAUDE.md; read-only13 Post a COMMENT reviewnever an approval14 Read the PR and merge itthe one approval in the line15 Merge seen: move to Done+ factory-merged16 Run ticket-verifier (Sonnet)the ticket and a URL, never the code17 A verdict per criterionPASS, FAIL or UNTESTABLE18 Post the verdict table+ factory-verified or verify-failedAny step fails: factory-blocked, plus a “Factory stopped” comment on the ticket saying why.Every queue skips a blocked ticket and nothing retries on its own. Fix the cause, then remove the label.
Build, review, merge and verify: who does each step, and what it leaves behind

Four agents, four views

Each one sees only what its job needs, in its own context. The orchestrator posts, pushes and transitions for them.

AgentSeesCan'tModel
ticket-builderThe ticket, the repo, CLAUDE.mdPush, use gh, read .env, touch protected pathsOpus
evidence-captureThe ticket and the running appEdit anythingSonnet
pr-reviewerThe ticket, the diff, CLAUDE.mdRun commands or approveOpus
ticket-verifierThe ticket and a URLSee the code, the diff or the builder's summarySonnet

What lands on every ticket

  • Red-green, verified. Exactly one red commit; the factory runs the suite at it and at HEAD itself, and flags a red test loosened later.
  • Screenshots per criterion, on the PR and attached to the Jira ticket.
  • An agent review with inline comments and a criteria-coverage table, posted as a COMMENT review.
  • A verdict table on the ticket after merge: PASS, FAIL or UNTESTABLE per criterion, with the evidence.
  • Optional regression tests: with regression_tests: true, a passing verification opens a Playwright test PR.
  • Tokens kept from the agents: two Unix users, pushes go through a git bundle, and git credentials reach only the factory's own clone and push, never a config file.
  • Any repo: everything repo-specific lives in files the onboard-repo skill writes and you review.
  • Pluggable tracker and code host: the stages talk to a Tracker and a CodeHost interface. Jira and GitHub ship today; another vendor is one folder.
  • Cost and progress per ticket from docker compose exec factory status, and Jira labels as the state.

Set it up

You need Docker, a Jira Cloud site, a GitHub repo, and a Claude subscription or API key.

  1. 1

    Clone and add your keys

    .env takes a Claude token (claude setup-token) or API key, and the tokens for the vendors your repos use: today a Jira API token and a fine-grained GitHub token with Contents and Pull requests read/write.

    git clone https://github.com/SreekeshOkky/software-factory.git
    cd software-factory
    cp .env.example .env
  2. 2

    Point it at your repo

    In factory.config.yml. tracker picks where tickets come from; the code host is inferred from a github.com URL. Status names must match your Jira workflow exactly.

    statuses: { todo: "To Do", in_progress: "In Progress", review: "In Review", done: "Done" }
    repos:
      - name: my-app
        git: git@github.com:you/my-app.git
        base_branch: main
        tracker: { type: jira, project: APP }
  3. 3

    Onboard the repo

    Load plugins/factory/ in Claude Code and run this in your app's repo. It writes CLAUDE.md, factory.yml, a navigation doc and a test harness, then opens a PR. Review it carefully and merge.

    /onboard-repo
  4. 4

    Dry run, then start it

    A dry run writes nothing to Jira or GitHub, but the agents still run and cost tokens.

    DRY_RUN=true docker compose run --rm factory node /app/orchestrator/dist/index.js --once
    docker compose up -d --build && docker compose logs -f

Write a ticket it can check

Only the summary and description reach the agents, so the description is the spec. Add the factory-enabled label and move it to To Do.

“Updated name persists after a refresh” is checkable. “The profile page is intuitive” isn't, and comes back UNTESTABLE.

Summary: Add a "Back to top" link to the end of blog posts

Acceptance criteria
- A "Back to top" link appears after the last paragraph of every blog post
- Activating it moves focus and scroll position to the top of the page
- It's visible and meets contrast in both light and dark themes
- It isn't shown on pages that aren't blog posts

The ticket's side of it

From Jira, the factory is four statuses and a handful of labels. The labels are the state: remove one to retry a stage.

each poll: close merged PRs, verify Done tickets, review open PRs, then build at most oneTo DoYou, with the labelfactory-enabledIn ProgressFactory: build starts+ factory-buildingIn ReviewFactory: PR opened+ factory-pr-open+ factory-reviewedDoneFactory: after your merge+ factory-mergedpicked upPR openedyou mergeVerify in a browserticket-verifier, no codefactory-verifiedevery criterion PASSfactory-verify-failedany FAIL or UNTESTABLEfactory-blockedAny stage failed. A “Factory stopped” comment says why.Every queue skips it, so it never burns tokens in a loop.build failsvague ACs, red-green, pathsverify can't runPR closed unmerged,review or close failsretry a build: fix the cause,remove the label, back to To Doreview, close or verify: just remove the labellabels on a ticket that goes all the wayfactory-enabledfactory-buildingfactory-pr-openfactory-reviewedfactory-mergedfactory-verifiedfactory-building comes off when the build ends. In Review is optional: without it, the ticket stays In Progress while the PR is open.Rebuild: back to To Do, remove factory-pr-open and factory-reviewed (plus factory-merged and the verdict if merged). It opens a new PR.
Statuses, the labels each one adds, and where a blocked ticket goes back in

Know the limits

The agents are still LLMs. Every step leaves evidence because none of them should be taken at its word.

  • One ticket at a time: builds share an app port and test data.
  • Verification runs after merge, so it can't stop a bad merge.
  • No fix-up loop: review comments and FAILs come back to you, not to the builder.
  • Microphones, real permission prompts, other browsers and payments come back UNTESTABLE.
  • Jira and GitHub are the only vendors so far. Adding a tracker or a code host needs no changes to the stages.
  • Anyone who can label a ticket can make it run code. Treat the label as commit access.
esc