November 21, 2026 Hardware • Open Source • Development

From 0 of 40 to 40 of 40: Rebuilding a Precursor App Studio

An audit found that none of my 40 Precursor apps built against current Xous. The cause was shared, so the fix was shared too: a toolkit, a quality gate, and a rebuild by AI workers whose every result was checked by someone else.

By Tyler Colby

Between January and February I wrote a handful of apps for Precursor, bunnie Huang's open-hardware pocket computer, with Claude Code doing much of the typing. Then a few dozen more followed in a burst. By November there were 40 repositories, and nobody had checked them against current Xous in months.

They did not. On November 20 I had Claude audit every app against the current xous-core. Not one of the 40 compiled. The mean audit score was 3.5 out of 10.

One cause, forty symptoms

The interesting part of the audit was that the failures were not forty separate problems. The same handful of mistakes appeared everywhere:

  • Arrow keys read as Apple private-use codes (U+F700) instead of the Unicode arrows Xous actually sends.
  • A Menu action bound to the ∴ key, which the window manager consumes before any app sees it.
  • Calls to a storage API, PddbKey::set_len, that has never existed.
  • About 30 apps written against a graphics API that was invented, not read from the source.
  • Stored data rewritten every time an app lost focus, whether or not anything had changed.

Each of those came from the guidance the apps were generated from: a template and a set of notes that had been wrong from the start. Every new app copied the errors faithfully. Fixing the apps one at a time would have meant fixing the same bug forty times and leaving the source of it in place.

The pattern When the same defect shows up in every system, the defect is upstream. I see this constantly in Salesforce orgs: forty flows with the same broken assumption usually trace back to one template or one consultant's habit. Fix the source, then the copies.

Tooling first

Before touching an app, the toolkit got the fixes:

  • A pinned target. One xous-core commit and one Rust version that everything builds against, so "it builds" means the same thing every time.
  • bin/integrate. Builds any app inside xous-core without copying files around by hand.
  • bin/lint. A rule for each systemic mistake the audit found, so the wrong arrow codes or the missing API cannot come back unnoticed.
  • The 10/10 gate. A hosted build with zero errors, clippy with zero warnings, passing host tests, and a clean lint. An app is not done until it passes.
  • A new app template. Each app's logic (parsers, game rules, encoders, maths) lives in a plain Rust crate with no Xous dependencies, so it can be tested on a laptop in seconds. The Xous part becomes a thin shell.
  • Shared libraries. Random numbers from the hardware TRNG without modulo bias, storage that never overwrites data it could not read, text input, and drawing helpers.

The rebuild

Then the apps, in rounds of three to five. Each round went to a Claude Sonnet worker with its own private build tree, a written brief, and the lessons from every earlier round. When a worker reported that its apps passed the gate, I did not take its word for it: the orchestrating session re-ran the gate in a separate tree and reviewed the work against the audit before counting an app as done.

Every round passed that independent re-grade on its first submission. I think that says more about the gate and the brief than about the model. When the definition of done is a command that either passes or fails, there is very little room to be confidently wrong.

The flywheel

Each worker ended its round with a short retrospective: what cost time, which docs were missing, what it had to write that should have been shared. Before the next round started, those findings went back into the toolkit as a lesson, a lint rule or a library function. By the end there were 26 lessons, and later rounds ran into fewer of the problems earlier rounds hit.

Some of what came out of it:

  • One sine bug, six broken apps. Six of the generative-art apps carried their own copy of the same broken sine code, which returned zero for both sine and cosine of zero. Figures collapsed onto their centres and diagonals; the moiré app's "Zebra" preset drew a blank screen. It became one shared, tested fixed-point module, accurate to within one unit in the last place at every angle.
  • A pet that aged slowly. The virtual pet's clock dropped up to a second every time it synced, so the pet aged about 3% too slowly. That became a shared suspend-safe clock with a regression test.
  • Differential testing. The regex app was tested against the mature Rust regex crate on thousands of generated patterns. That found five real matching bugs that hand-written tests had missed.
  • The workers checked me too. One worker found that my own new circle-drawing helper filled unfilled circles with white, so overlapping outlines erased each other. It worked around the bug in its own app and reported it, so the fix landed in the toolkit for everyone.
  • Honest names. Several apps claimed more than they did. The "network scanner" printed invented hosts; it is now Net Check, a subnet calculator with a real, confirmed TCP connection test. The RSS reader cannot fetch feeds, and now says so. The SQL app is "SQL Explorer", not SQLite.

Where it stands

All 40 apps pass the gate. Together they carry about 1,400 host tests and about 71,000 lines of Rust. The full list is on the Precursor Apps page.

What they have not done yet is run on a device. The gate is a hosted build and host tests; it says nothing about how an app looks on Precursor's 336x536 memory LCD or how fast it runs on a 100 MHz RISC-V core. Every README says so. Scripted Renode captures, and real screenshots for every app, are the next milestone.

What I took from it

The useful habit is the order of operations: audit everything, find the shared cause, fix it once, write the definition of done as something a machine can check, and then delegate, verifying every result. None of that is specific to Precursor or to AI. It is how I approach a Salesforce org with years of accumulated automation, and it worked the same way here.

The part that was new to me is how well a cost-effective model does when the target is that clear. Sonnet did the rebuild work. What made it reliable was not the model; it was a gate it could not argue with and a feedback loop that made each round's brief better than the last.

Explore the Precursor Apps

40 open-source apps and the toolkit used to build and check them.