Turn Jira tickets into verified pull requests with three separate agents

Sreekesh Okky built a line of Claude Code agents that turns a Jira ticket into a tested pull request, reviews it, then checks the merged site in a browser. The first real ticket cost $2.23.

Done withClaude CodeinJiraGitHub· Nov 25, 2026

What they did

Okky moves a Jira ticket to To Do and a small TypeScript orchestrator picks it up. A builder agent (Claude Code headless on Opus) reads the ticket and repo and makes two commits: failing tests first, then the code. Plain code, not an agent, reruns the tests at both commits and blocks the ticket if the red commit did not fail or the green one did not pass. A Sonnet agent screenshots each acceptance criterion in the running app, an Opus reviewer comments on the diff but never approves, and he merges. After merge a Sonnet verifier gets only the ticket and a URL, drives the live site with Playwright MCP and returns PASS, FAIL or UNTESTABLE per criterion. Agents never move tickets, push or hold the GitHub and Jira tokens; the orchestrator does that through Jira labels. It all runs in one Docker container against his own site.

How it went

The first ticket asked for voice input in his site's command palette with 20 acceptance criteria. The builder produced a 5-file PR of about 727 added lines with unit and end-to-end tests, the reviewer left 8 comments in under two minutes, three of them real, including one where the builder had weakened its own red test. The verifier took a minute: 11 PASS, 1 FAIL, 8 UNTESTABLE. The FAIL was real disagreement: the builder's test said the first Esc stops listening, but in the browser it closed the palette. Total cost was $2.23. Six other bugs surfaced in the first hour of real use, including the agents being able to read the factory's tokens.

Worth knowing

The agents only see the ticket summary and description, never comments, so a change agreed in a comment can make the verifier fail correct behaviour. Red-then-green proves the tests changed state, not that they test the right thing. Microphones, permission prompts and payments come back UNTESTABLE headless. There is no fix-up loop yet; failures come back to him. Stripping environment variables did not isolate the tokens.

Try it

With Claude Code· 4 parts to fill in

Pick up the [Jira or Linear] ticket [ticket key] for the repo [repo path]. Read only its summary and acceptance criteria. Write failing tests for each criterion and commit them, then write the code that makes them pass and commit that separately. Do not push, open pull requests or change ticket status; leave that to me or to [my orchestrator]. When done, report which criteria your tests cover and which you could not test, and stop. Separately, as a reviewer with no write access, read the ticket and the diff and list concrete problems without approving anything.

Square brackets are the parts to fill in. The prompt is ours; the story is theirs.

Where they said it

Related