Build a ticket-to-PR software factory with Codex and Claude Code

A developer built an open-source Rust pipeline where agents triage GitHub issues, implement fixes, test, and open PRs.

Used for
Work
Skill needed
Requires coding
Shown in video
Partial demo
Summary based on
Transcript
Owain LewisWatch on YouTube

I Built an Agentic Software Factory with Codex and Claude Code

Published Jul 25, 202620:5098,984 views1,636 likes

Key moments

  • 10:05Factory picks up labeled issue and delegates to Codex
  • 11:37Agent reproduces bug and updates ticket with spec
  • 18:20Implementation agent finishes ~35-minute run
  • 17:33Scheduled bug finder opens a ticket

What they made

A vague 'Factory demon dies overnight' issue was triaged into an implementation-ready spec, then an implementation agent ran ~35 minutes and produced a PR that Codex approved and the creator squash-merged; a scheduled bug finder also opened a ticket.

18:20

How they did it

  1. Human9:18

    Created a vague GitHub issue describing a demon dying overnight and added the 'factory ready for spec' label.

    Stated in video · GitHub
  2. AI10:05

    Factory detected the label, spawned a Codex agent in a new Git worktree, and ran the triage workflow to turn the vague issue into an implementation-ready spec with the bug reproduced.

    Stated in video · Codex
  3. Human12:25

    Reviewed the refined ticket and added the 'factory ready to implement' label.

    Stated in video · GitHub
  4. AI18:20

    Implementation agent ran the build pipeline for about 35 minutes, writing code, tests, and reviews, then opened a pull request.

    Stated in video · Codex
  5. Human7:14

    Reviewed the PR, saw Codex approval, and squash-merged the change.

    Stated in video · GitHub
  6. AI17:33

    Ran the scheduled bug finder workflow, which found a bug and opened a ticket for later review.

    Stated in video · Codex

What you can reuse

  • Define the workflow steps up front as a skill so agents run consistently instead of being randomly prompted.
  • Use label-based triggers and isolated Git worktrees to move tickets through triage, implementation, and review automatically.
  • Keep polling deterministic so tokens are only spent when there is real work to do.

Trade-offs

  • Sandboxing is still being figured out; Git worktrees are used locally but Docker sandboxes are recommended for VMs or teams.
  • Only a share of tickets should be handed off; humans still need to review and merge, and critical judgment stays with people.
  • Token cost at scale is real, and the project is early-stage and not suitable for everyone yet.

AI-generated case summaries can contain mistakes. Report an error

Related cases