Code Dungeon · The User Guide

Chapter III

Your guild

Your guild is the people who do the work. Each of them is a real coding agent (Claude Code by default; Codex or OpenCode if you have them) running in its own terminal on this machine, each in its own git worktree, so nobody steps on anyone else's changes.

Coders

Coders pick up GitHub issues, write the change, run the project's checks, push a branch and open a pull request. Each has a trade and may have a specialty: an issue labelled swarm:<specialty> goes to a free specialist first, but anyone can take it.

Testers

Testers wear aprons and work in the assay room. They test pull requests and never change them. Every chamber always has at least one tester, and can have up to three. When every tester is busy, a free coder who didn't write the pull request covers for them.

The DungeonMaster

The DungeonMaster runs the dungeon for you. He studies each new chamber, writes its QA brief, turns your project briefs into GitHub issues, gives coders work that fits the project and puts forward recruits. When a project needs art, he asks for it drawn in code first, and from a modelling tool like Blender only where that clearly looks better. He also reviews the whole dungeon every so often (Settings in the ledger sets how often). Write to him on your scroll (P).

Recruiting

There are three ways to add someone to a chamber:

  • Accept a recruit the DungeonMaster puts forward. They wait on the chairs along the great hall's east wall: press E on one to read their credentials, then recruit or decline. The Recruits tab of your scroll shows the same list.
  • Aim at an empty bench in a chamber and press E (or click it and confirm).
  • Use the Guild tab of the Overlord's ledger.

By default every recruit waits for your yes. In the ledger's Settings you can switch to auto-approve while a chamber is under the guild cap; anyone beyond the cap still waits for you.

Coders in the cloud

A coder can work in their own Upstash Box instead of on this computer: a small Linux machine in the cloud with its own copy of the repo. It takes the builds, tests and test browser off this computer. The coder still uses your own Claude or Codex subscription, and still pushes a branch and opens a pull request, so the notice board, QA and merging work the same. Testers stay on this computer.

Setting it up once:

  • Make an Upstash Box API key in the Upstash console, and a fine-grained GitHub token for your repositories (Contents and Pull requests, read and write).
  • Save them on this computer as the user environment variables UPSTASH_BOX_API_KEY and CODEDUNGEON_BOX_GITHUB_TOKEN, then restart the dungeon. The dungeon never writes them to a file; the token reaches a box only for its git and GitHub commands.
  • In the ledger's Settings, under Cloud boxes, tick Let coders work in Upstash Boxes and press Build the base box. It takes a few minutes and makes the starting point every coder's box is copied from.

Then, in the Guild tab, set a coder's Works on to ☁ Upstash Box while they have no task. Press Sign in the box: their terminal opens and runs the coding agent's own sign-in. Open the link it shows, sign in, and paste the code back into the terminal. Each box signs in once and stays signed in; nothing is copied from this computer.

The free Upstash plan allows 10 boxes and 5 hours of processor time a month. The Cloud boxes card shows what each box has used and warns at 80%; deleted boxes aren't in its total, so the Upstash console has the month's full figure. A coding job used about 17 minutes in our tests. A box nobody in the dungeon works in has a Delete button. Upstash pauses a box after an hour without work and wakes it for the next task. If the dungeon restarts while a coder works in a box, the coder carries on there. Setting Works on back to This PC keeps the box; letting the coder go deletes it, so anything they hadn't pushed goes with it.

Letting someone go

Open their terminal (press E on their bench) or find them in the Guild tab, and press Let go. Their worktree is removed; any branches they pushed stay on GitHub. The last tester in a chamber can't be let go.