Legio

I built the cutest software factory. A software factory is a team of coding agents with a workflow: you give them a feature or an issue, and they write a spec, build it, run checks, and review each other's work. Mine is called Legio. It has a web UI with a Roman camp, one tent per project, and tiny soldiers at desks doing the work.

GitHub

01How it works

You label a GitHub issue. The agents do their work. You get a pull request to review and merge. And while all that happens, you can watch the little guys work.

If the checks fail, the job goes back to the builder before any reviewer sees it. And Legio never merges for you: the merge button stays yours.

02Where the idea came from

I got the idea from ZazenCodes' software factory with Claude Code (source code). I tried it, liked it, and wanted to take it further. Besides making it cute, I changed three things.

03Many projects

His factory runs inside one project, and a Claude Code session runs it. I split mine into two layers. A centuria is the factory inside each project. The legio coordinates across projects. Each centuria can also run on its own.

04A Roman army

Each agent has a post: intake, spec, build, review, approval. They have Roman titles, portraits, and a place in the tent. There are eight of them:

  • Tesserariusthe doorkeeper. Decides if an issue is worth building, how much of it, and how risky it is.
  • Signiferthe spec-writer. Writes down what "done" means, and what is out of scope.
  • Fabrithe builder. Writes the code, runs the checks, and opens the pull request.
  • Probatorthe inspector. Checks that the work is correct, in scope, and really tested.
  • Medicusthe surgeon. Reviews security: injection, privileges, leaks, dependencies.
  • Mensorthe surveyor. Checks that an ordinary user can get through the change.
  • Libratorthe level-keeper. Checks alignment, spacing and the look.
  • Primus Pilusthe arbiter. Decides if the pull request is ready for you, or asks you one question.

Medicus only joins when a change touches security. Mensor and Librator only join when a person will see the change.

Milites, the cast page: eight chibi Roman soldiers on cards, each with a title, a role and one line about the job. Signifer and Fabri are on duty.

05Watching them work

Each project is a tent. Inside, a board shows its jobs in three columns: waiting, in progress and finished. The soldier who is working right now sits at the desk. Click a job to see its stage, round, checks, pull request and cost, and then read every file the agents wrote for it.

Inside a tent: the job board on the left, and Fabri writing at the desk on the right.
The tent, with Fabri at the desk.
One job opened over the tent: stage build, round 1 of 3, with fields for gate, pull request, cost and who it is waiting on.
One job, opened.

The screenshots use demo data.

06A new look: Principia

The camp is cute but slow. Each project hides in its own tent, so checking one job takes three screens. And to find what needs you, you visit every tent.

Principia, the new default, puts it all on one page. Each job sits on an aqueduct that fills with water as it moves through the stages, so you see how far along it is at a glance. Everything waiting on you, from all projects, is listed on the right.

The camp is still there. You can switch in the settings.

Principia: projects on the left; in the middle, six jobs on aqueduct progress tracks with one job's timeline and files below; on the right, what needs you, the soldiers at work, and Legatus.

07Any coding agent

The workflow lives outside Claude Code, with adapters for Codex, DeepSeek's harness and Gemini too. Claude Code is the one I have tested from start to finish so far.

More on GitHub →