Summary
fix(cart): totals respect item quantity
acme/billing-api · #211
Draft → Ready
Cart totals summed each line's unit price once, ignoring quantity. Closes #39.
Checks: test, lint, typecheck, e2e, CI
A software factory for one person
A board in your terminal that runs a software factory. Agents work in sealed containers; you keep the final say.
How it works
Triage reads the repo and writes a brief, criteria and slices. Send it back with a reason, or answer its questions.
Failing tests exist before any code, then they're locked. The implementer can add tests, never change these.
Green CI on a draft PR, the evidence verdict and the retro's proposed rules. Then it's yours to merge.
One machine, every repo
One board, one queue, up to four tasks at once. The repo decides the checks, the tests and the PR.
Same machine
Ticket · web
acme/storefront
#43 Login error copy
fix(auth): clear login error copy
PR · #128Ticket · api
acme/billing-api
#39 Totals ignore quantity
fix(cart): totals respect quantity
PR · #211Ticket · cli
acme/sync-cli
#46 Retry on 429 in sync job
feat(sync): retry on 429 with backoff
PR · #57Fictional repos and tickets.
Your GitHub
Label an issue ready-for-agent and it lands on the board. When the work is done, it comes back as a PR that closes it.
The machine polls the repos you list. A labelled issue becomes a ticket in Intake, its checklist becomes the criteria.
Deliver pushes the task branch and opens a draft PR as soon as the build is green, so CI starts while you look.
A red run goes to the ci_watch pack: fixable loops back to Build, a flake re-runs once, infra escalates to you.
The PR body keeps one shape: what changed, why, the criteria, and the issue it closes.
Your board
Columns follow task state, so a ticket is always where its work is. Open as many boards as you like; they all see one machine.
Eight columns from Intake to Done, driven by the machine. No dragging a card to pretend work moved.
a does the obvious next step, r sends back with a reason, X aborts, f opens the stage's watch pane.
Each running stage gets a herdr tab that follows its container. Look over the agent's shoulder whenever you want.
Stop the machine and the board turns red with the reason, keeps running, and reconnects on its own.
Example
Hover or tap a line of the PR to see the runs behind it.
fix(cart): totals respect item quantity
acme/billing-api · #211
Draft → Ready
Cart totals summed each line's unit price once, ignoring quantity. Closes #39.
Checks: test, lint, typecheck, e2e, CI
Evidence
1 commit
Stage run
Test design · attempt 1
Mar 3, 2026
Every commit is on the task branch.
Acceptance
Ship gate: #39
Met
Out of scope
Fictional repo, ticket and PR.
Details
Read-only root filesystem, a tmpfs /tmp, no-new-privileges. The worktree is read-only unless the stage writes.
Each pack carries its own allowlist. Triage can't write; the reviewer can't run your suite; nobody opens a PR from inside.
Change or delete a test that existed when the stage started and the commit is undone, the stage fails, and the next attempt is told why.
b72d0aatest(cart): lock quantity, discount and empty-cart totals
Tracker writes, review posts, publishing: never done from inside a container. They come back to the board as requests.
Up to four tasks drive a stage at once across every repo. The rest queue in Postgres and survive a restart.
pnpm golden drives a seeded bug through every gate. The nightly matrix grades suite, stages, evidence, cost and diff size.
golden --matrix≥ 80% to pass
Test-first Build
Before any code, Build writes one failing test per approved scenario. A judge checks that each test fails for the right reason.
Each approved scenario gets one failing test. The test carries the scenario's id.
The judge checks that the test fails because the behaviour is missing. A test with a bug of its own does not pass.
Luna commits the tests first. The implementer then builds until they pass and cannot change them.
A change that touches only documentation gets no tests. Luna checks it by reading it.
Stacked cards and splits
Luna splits a big ticket into parts that build on each other. Each part is its own card with its own PR.
A big ticket becomes an origin and its children. Each child builds on its parent, the part before it.
Luna keeps each child rebased onto its parent. When the parent moves, Luna rebases again and pushes with a lease.
A rebase that stops on a conflict pushes nothing. The card comes back to you.
Engines and fallbacks
Claude runs on your subscription and Codex on your Codex login. Jev is an opt-in metered path.
Claude runs on your subscription. Luna uses the login you already have.
Codex runs on your Codex login. Small decisions such as risk and red checks can use it.
Jev is an opt-in metered path. It stays off until you add a key.
A decision moves to its fallback engine when a login is busy or rate-limited.
The factory · inside every stage
Each agent stage is a stage pack that runs in a sealed container on Claude or Codex. Its role, prompt, skills and guardrails live in the repo's factory/ folder. A fresh clone runs with nothing else to install. Luna moves the ticket; the pack writes the code.
Triage, code map, plan, test design, build, verify, e2e, CI watch, evidence and the retro each run a pack with a typed result; small checks (signals, risk, coverage, red, scope) are decision packs.
The stage image is built from the checkout and tagged with a key over its inputs. Same inputs, same image, same behaviour.
In-process hooks: no push, no PR or tracker writes, commits only on task branches, no writes outside the worktree and the output folder. Outward actions are queued for you to approve on the board.
Clone, install, link the board, then one command builds the stage images and starts Postgres and the machine in Docker. No account, no server to babysit.
git clone https://github.com/HigorAlves/luna-tui && cd luna-tuipnpm installpnpm board:build && herdr plugin link ./boardMACHINE_GITHUB_POLL=you/repo pnpm starttriage
Reads the ticket, its signals and the repo; records what it is and picks plan, fast lane, reply or archive, or asks.
plan
Plans the change and designs its tests, then checks coverage, fit and risk. One approval by default. A repo can ask for more on High risk, and a passed council can let the timer approve when one approver is enough.
test_design
Writes the failing tests first. They're locked once you approve.
implementing
Builds the change slice by slice, one commit each, on the task branch.
verifying
Reviews the diff after your suite, lint and typecheck pass on the host.
e2e
Drives the app in a browser for repos with a web surface; saves screenshots and video.
ci_watch
Reads a red CI run and decides: fixable, flake, infra or needs-debug.
evidence
Checks the QA manifest and puts the verdict and artifacts on the ship gate.
reviewing_memory
After shipping, proposes rules for the repo's agent context. You keep or skip them.
Needs Docker, Node 24+, pnpm, Rust and a Claude token in ~/.config/hardness. A Codex login from `codex login` adds the Codex engines. Without a Claude token, stages that need Claude stay stubs.
Full setup guideSandbox and safety
Each stage runs in a container with a per-repository egress allow-list. Most agents reach only their engine. Planning stages also reach GitHub. Only the writable build, verify, e2e, recording and setup stages reach package registries and the hosts you add.
Each stage runs in its own throwaway container with a read-only root filesystem.
Each repository adds hosts to the defaults: registries, GitHub and the engine hosts. Every other host has no route out, unless the owner sets MACHINE_EGRESS to off.
Every change gets secret checks before it ships.
Luna ships commits never credited to an AI. A hook rejects AI attribution in a commit.
For how you work
Solo, side project, open source or a pile of small bugs: Luna turns the backlog into reviewed, tested PRs.
"I have a backlog and one pair of hands."
See how it works"I get an hour a night, and half of it is setup."
See how it works"Good first issues pile up faster than I can review them."
See how it works"Fifty small bugs, none of them worth an afternoon."
See how it works"Nobody wants to touch it, so nothing gets fixed."
See how it worksRun the golden task: one seeded bug through every gate, in about thirty seconds, on stubs or real agents.
Run pnpm goldenPricing
Luna runs locally on the Claude and Codex subscriptions you already have. Metered API keys are optional.
Metered keys are optional. Your subscriptions bill as they do today, and the machine reports cost per stage at /metrics.
FAQ
What people usually ask before pointing it at a repo.
Install the board and watch the golden task ship in minutes.