Assay
The orchestrator of a software factory: a feature goes from a request to a reviewed branch through steps the project defines, each run by coding agents from several vendors in sealed containers.
Assay takes a piece of work from "what I want" to a branch I can merge. It goes through steps the project defines - spec, build, test, review, arbitrate - each run by coding agents from several vendors, Claude Code, Grok and Google's Antigravity, in throwaway containers on a clone of the repo. I start every step and I do the merge.
Motivation
Assay started as a harness for writing adversarial engineering tasks: put one task to several vendors' agents, sealed and offline, and see which of them solved it.
Running agents side by side like that changed how I work with them. They write code quickly, and they solve the task in front of them rather than the system. The work that's left is deciding what to build and reviewing what came back, and that's where my time goes. I wanted a factory that spends it only where the risk is: cheap models where they're good enough, more review where a change could do harm, and a record of what each step cost against what it gave.
Approach
- One primitive, the step. Deciding, building, reviewing and arbitrating are the same thing with different inputs and models. A step that runs the build and tests and no agent is the same thing again
- Turned by hand first. I start every step until running it by hand has shown what the flow needs
- The builder never vouches alone. Reviewers on other vendors' models, a command, or me
- No agent writes shared state, and its output is untrusted text. A session writes to its own folder, and Assay takes a choice only if it's one of the words offered
- Guard effects, not calls. Every session is in a fresh container with the network fenced and the repo read-only, so the guardrails that matter act on the boundary and on the result
The design has the rest, and why.
A flow
The flow belongs to the project, so Assay ships none. This is the one I'm trying on my own projects:
How much review a feature gets follows two settings, how far it reaches and what it could harm, so a small, safe change gets one reader, one that could lose data gets a reviewer that runs it and tries to break it, and one that reaches wider gets a reviewer of how it is written, held to the project's rules rather than to whatever code is already there. The example flow walks through every step.
What it cost, and what it gave
Each feature gets a report, made by plain code from what Assay recorded and never from what an agent said of itself.
A recent one, an undoable delete that could lose notes for good, was set risk=data size=medium, so its review ran three agents from three vendors at once, each with its own job: one holding it to the design, a breaker running it, and a maintainer judging how it is written.
012-bin2 assay/012-bin2 at 7f3752a
risk=data size=medium
TURN ENDED SESSION MODEL TIME COST
001-spec done claude-1 opus 1m24s $0.3326
002-build done claude-1 opus 2m15s $0.6344
003-test done pass command-1 3s
004-review done auditor-1 gemini-4-neon 2m15s $0.3658
breaker-1 haiku 1m39s $0.0187
maintainer-1 grok-4.7 3m24s $0.3656
in all 3m24s
005-arbitrate done touchup claude-1 opus 36s $0.2004
006-touchup done claude-1 sonnet 22s $0.0565
007-check done pass command-1 3s
total 12m1s $1.9740
The breaker, on the cheapest model, cost two cents: it made 26 deliberate breaks in a scratch copy and found two promises no test guarded, one of which the auditor also found, for twenty times the price. The maintainer found nothing to raise. The arbitration sent the work to a touch-up, not round again.
A retro step reads each finished feature's report and proposes at most three changes to the flow. It has settled one already: a second reader on the same brief, tried on three cheaper models, never found what the first had missed, so that seat now judges how the code is written instead. The questions it's settling now: does that seat earn its place, does building on the strongest model pay for itself in fewer laps, and does arbitration need the strongest model. A reviewer whose points are mostly overruled loses its seat.
Where it is
Assay is early, and I'm running my own projects through it by hand. Next are limits on what a session, a feature and a day may spend, so the flow can turn itself and stop for me at a limit; rules on the diff, such as tests deleted or a dependency added; a review of how the code is written, apart from what it does; and triage of what comes in. The final review is mine, in Archr.