My Software Factory Reviewed My Pull Request, and It Was Right
AitherOS has a software factory. Every pull request gets two reviews from agents: Atlas reviews the architecture and Demiurge reviews the code. Both run on a self-hosted CI runner and call a DeepSeek model served by llama.cpp on a DGX Spark in my house. No paid API sees the code, and nothing is billed per review.
This week Demiurge reviewed a small voice fix, marked it REQUEST_CHANGES, and listed seven findings: four warnings and three suggestions. I checked every one against the code, and every one was real. One follow-up commit fixed all four warnings and two of the suggestions; the third suggestion was a harmless overlap and stays as it is.
The verdict: the local review lane catches the bugs a tired human reviewer would miss, and it does so for the cost of electricity. Here is the review.
The change under review
Aither's voice said "live" wrong. In "it's live in production" the word is the adjective, with a long i (/laɪv/). The voice said it like the verb "I live here" (/lɪv/). The cause was the phonemizer: espeak, which Piper and Kokoro both use, guesses the vowel from context and guesses wrong after a participle ("proven live") and before "in production".
The fix adds a few rules to the pronunciation lexicon that respell the adjective before espeak sees it. The same rules ship in two places: a YAML lexicon for the fleet voice and a TypeScript copy in the browser voice kit. The pull request also adds Paradee, an 8-million-parameter distill of Kokoro. That is a voice model about 9 MB on disk, against 63 MB for our current Piper voice, and its word error rate in my tests was 6.4% against 6.6%.
What Demiurge found
1. The TypeScript copy was untested. The tests ran every new rule through
the YAML path only. Demiurge also noticed that one rule used a regex
backreference (\1 lyve). No existing TypeScript rule did that, and if the
engine did not expand it, browsers would speak a literal "backslash one". The
fix added a TypeScript test for every new rule. The engine does expand it, and
the test now pins it.
2. One rule matched only at the very start of the text. The rule for
"Lives on the fleet" was anchored with ^. It passed its tests because each
test line was its own string. In a paragraph, as in "Done. Lives on the fleet
now.", it would never fire. That is the exact bug the rule existed to fix,
returning on the second sentence of any reply. The rule now matches after a
sentence boundary, and a mid-paragraph test holds it there.
3. The guard test could skip itself in CI. The test that checks the real phonemes skips when the espeak loader is not installed. On a CI image without it, the new rules would merge with no check at all. The fix added a second test that checks the respelled text directly. It needs nothing installed, so it cannot skip.
4. An unrelated file rode along. An automation-backlog edit had slipped into the branch. Demiurge called it out as blast radius that a voice fix should not carry. It now goes in its own change.
5–7. The suggestions.
- Two rules overlapped on "live on the site". That is harmless, so it stays, but it is two places to edit later.
- The new voice module dropped unknown phoneme symbols with no signal. Those drops are now logged.
- "Live in the production build" fell through to espeak's wrong guess. That phrase is now covered.
The review also had a section on what was good. Demiurge said the fix rested on measured espeak output, not a guess, and that the test checked the spoken vowel rather than a respelled string. It also rated the blast radius small and the rollback trivial. That is the review I would want from a senior engineer.
What the review lane catches that tests miss
Number two is the one that sells me. It is the kind of bug that passes every test you wrote, because your tests share your blind spot. The rule worked on every line I fed it, one line at a time. Production feeds it paragraphs. Catching that takes a reviewer who reads the anchor, asks how the function is called, and builds the case that breaks it. Demiurge did that on its own, without being asked.
The same review also covered the new Paradee module. There it pointed at the line that cuts the phoneme sequence at 510 symbols, the model's input limit. A long sentence would have lost its tail with no error. The module now splits long text at the last word boundary under the limit and speaks every piece.
How the factory runs
- Trigger: a pull request opens or gets a new push.
- Runner: a self-hosted GitHub Actions runner on the home fleet.
- Model: a DeepSeek model on llama.cpp, on the DGX Spark. The review budget is long (up to two hours) because a local model is slower than a cloud API, and a slow, correct review beats a fast, empty one.
- Tools: the reviewers read files, search the code and query the code graph before they judge. They do not review from the file list alone.
- Output: a structured comment with a machine-read
VERDICT:line. A label from that line gates auto-merge.
One caveat: the architecture reviewer's run on this pull request ended before it reached a verdict. That lane now holds such a run back instead of posting it, and tells the agent that files a pull request adds are read from the diff.
What to take from it
If you run agents on your own hardware, put one on code review first. A review has a clear output, it is easy to check, and a wrong finding costs you two minutes of reading. A right one, like the anchored regex above, saves you a bug report from production.
Mine runs on a model in the house, and this week it was right seven times out of seven.
Keep the journal free
Sponsorship pays for the compute, the hardware and the hours behind these entries.
by email
New journal entries, in your inbox.
What the agents built, broke and fixed. One message per entry.