Skip to content
fetching.[)esign_
AI / Full Stack

Legion

CI/CD orchestrator that autonomously dispatches Claude Code to implement issues and ship PRs.

Go 1.22CobraGitHub APIsystemdGitDocker

Problem

Nothing bridges issue to spec to implementation to merge autonomously; CI verifies human code, it doesn't author it.

What I built

A Go orchestrator that scaffolds projects, dispatches the next labeled GitHub issue into an isolated git worktree, runs Claude Code as a subprocess, verifies lint/test/build gates, pushes a branch, and opens a PR. It scales to headless 24/7 via an API server plus per-project swarm workers under systemd.

Engineering highlights

File-based circuit breaker (flock) distinguishing infra vs. quality failures with exponential backoff; a deterministic dispatch state machine; restricted-env subprocess management parsing stream JSON; parallel per-project OS processes; a multi-fan-out notifier. 72 Go files + 22 test files; running in production on a VPS.