Fix a batch of GitHub issues with parallel coding agents

Prompt Engineering builds a software factory with Claude Code in Upstash Box sandboxes that worked 10 GitHub issues in under 5 minutes, opening 9 PRs that all passed hidden tests. Sponsored.

Prompt Engineering · YouTube · published Oct 9, 2026 · Software & DevOps

Fix a batch of GitHub issues with parallel coding agents — video by Prompt Engineering▶ Watch on YouTube
Prompt
For each open issue in [repo]: triage it, skip vague ones, have a worker agent fix it in its own sandbox, run an independent verifier and reviewer, then open a PR for me to merge.

Sponsored

Advertise here →

Visual breakdown

A software factory is a loop: issues come in, a coding agent fixes one, an independent system checks it, and a human merges. This video runs Claude Code agents in parallel, each in its own Upstash Box sandbox, through triage, worker, verifier, reviewer and integrator stages on 10 real GitHub issues.

The problem: One agent clears a backlog one ticket at a time, but running ten at once breaks things: shared folders, double-booked issues, agents grading their own work, stale API knowledge and a flood of PRs.

The five-stage factory pipeline

  1. Base box snapshotClone the repo, install dependencies, wire up Node, GitHub token and Claude Code once, then snapshot
  2. Claim an issuePut a claimed label on the GitHub issue so other agents skip it
    Dropped: Issues already claimed
  3. TriageA fresh box reads the issue and decides if it's clear enough to build
    Dropped: Vague tickets are rejected
  4. WorkerWrites the fix and unit tests, checks live docs, returns a fixed JSON schema; branch is pushed
  5. Verifier and reviewerA clean box runs the tests itself; a reviewer agent reads the diff line by line
    Dropped: Failing tests or logic bugs
  6. IntegratorMerges approved PRs one at a time, resolves conflicts, reruns the full suite after each
  7. Human mergesThe factory can open PRs, but the merge button stays with you
Issue queueSetupAgent stage (own sandbox)Result

Five things that break, and the fix

  1. Shared folder: one isolated sandbox per agent
  2. Double booking: a claim label on the issue
  3. Self-grading: a separate verifier and reviewer
  4. Stale training data: a live docs tool (Context7); PR flood: humans keep the merge button

By the numbers

4.5 minto run all 10 issues
9 / 9PRs passed the hidden tests
7 of 9PRs hit merge conflicts
~$3.67Claude Code tokens for the 4-stage run

Build your own factory

He links the full factory code and the Upstash Box docs in the description.

  1. Write hidden tests per issue outside the repo, so agents can't see how they're graded
  2. Prepare one base sandbox with the repo, dependencies, GitHub token and Claude Code, then snapshot it
  3. Boot fresh boxes from the snapshot for each stage; lock network egress to what's needed, like the npm registry
  4. Add a claim label and a triage stage before any code is written
  5. Force typed JSON handoffs between stages and give workers a live docs command
  6. Verify in a clean box, review the diff, then run an integrator before a human merges

Upstash includes model usage up to a monthly cap; for heavy runs pass your own API key or raise the cap.

What the runs showed

  • Workers said their tests passed every time, even once when the verifier saw them failing.
  • The reviewer caught an ordering bug (two links in the same millisecond) that every test missed.
  • Parallel agents conflict on shared files like test suites and routers; plan an integrator step.
  • A sandbox stops agents stepping on each other's files, but quality still comes from tests, verifier and reviewer.
  • Pausing a box while it waits for human input stops compute billing and keeps its disk.

Distilled from the video’s captions

How to try it

  1. Open Claude Code.
  2. Copy the prompt and fill in the [placeholders].
  3. Watch Prompt Engineering's video for the full walkthrough and setup.

Related use cases

Share