How to build an agent factory: eight stages, eight kinds of work

An agent factory is not a faster version of the old software development cycle. It is the same cycle closed into a loop, where every stage leaves a record and people move from doing the work to three decisions: they approve the specification, confirm the verification and agree to the release. Agents prepare everything in between. And because each stage is a different kind of work, each one also asks for a different kind of compute, which is the part most designs leave to chance.
The old cycle in one paragraph
The classic software development lifecycle (SDLC) is a relay of people. An analyst gathers requirements, an architect designs, a developer writes, a second developer reviews, a tester tests, an operator deploys, someone watches the dashboards. Between each pair there is a handover, and the knowledge of why something was done one way lives mostly in heads. That model worked because the scarce resource was a developer’s time. In a factory, execution becomes cheap and a person’s attention becomes the scarce resource. That turns the logic of the whole cycle around.
The loop in eight stages
1. INTAKE -> 2. TRIAGE -> 3. SPEC -> 4. EXECUTION -> 5. REVIEW
[person |
approves] v
8. MONITORING <- 7. RELEASE <------------------- 6. VERIFICATION
| [person [person
| agrees] confirms]
+----------> back to 1
Above the loop sits a coordinator. It takes a trigger (a ticket, a chat message, an alert, a command from a laptop), works out which stage the work is at, and starts the right agent with the right model and context. On a network it does one more thing: it describes each job by what it needs, so the job can be placed. What follows is each stage, what goes wrong without it, and what it runs on.
1. Intake: work arrives in one place
Ideas, bug reports, alerts and requests land in one queue. A factory with six front doors does not know what is on its table, and half the agent work happens off the loop, on laptops, with no trace.
Runs on: almost nothing. A queue and a record. It has to be always available, not powerful.
2. Triage: the cheapest saving in the loop
An agent reads the report, tries to reproduce it and puts it in one of three bins: ready (a clear, small fault), unclear, needs a spec (a feature with several readings), parked, needs a person (missing data, a business decision). Sorting and first diagnosis used to eat the hours of the most experienced people. Without it, the executing agent gets a vague task and produces a lot of code that solves the wrong problem.
Runs on: a small, cheap model, many times a day. Most triage can wait an hour without anyone noticing, so it is the first candidate for deferrable capacity.
3. Specification: where the quality of the loop is decided
For unclear work, an agent drafts two documents. A product spec says what the user will see and do from start to finish. A technical spec says how the change fits the existing architecture. A person reads both, corrects them and approves them before a line of code exists. Correcting a sentence in a spec costs a minute. Correcting the same decision in a finished thousand-line change costs a day. Without this stage, review turns into archaeology.
Runs on: a strong model, and a person is waiting on the result. This is interactive work. Place it close to the people approving it, and do not save money here.
4. Execution: the least interesting stage
An agent takes a triaged ticket or an approved spec and prepares the change. Everyone wants to start here, because this is where the output is visible. If intake, triage and spec work, execution is the most predictable part of the loop. Start with it alone and people spend their days rejecting changes rather than approving them.
Runs on: a sealed sandbox per agent, so each sees only what its task needs; on KyberAgent that is a KyberCell. It is long-running and usually deferrable within a deadline, so it is the stage with the most to gain from placing work where capacity is cheap.
5. Review: the stage that teaches itself
A reviewing agent goes through every change before a person sees it. It works in a sandbox with the code, so it can run a suggested fix before proposing it, and it has the specs in front of it, so it judges the change against the intent, not only against style. A second agent watches the comments people leave in reviews and, from time to time, proposes a change to the reviewer’s instructions. That proposal is an ordinary change for a person to accept. Without review, people get raw code and repeat the same five comments every week.
Runs on: a sandbox like execution, and the model that scores best on your own past reviews.
6. Verification: a person confirms instead of tracing
An agent gets a machine, starts the application and walks the user’s path from start to finish, the way a tester would. It attaches screenshots or a recording and checks the result against the spec it started from. Automated tests check what someone foresaw. A live run catches what nobody foresaw: a button hidden behind a notice, a form that works but cannot be filled in on a phone. The person watches a two-minute recording and says yes or no.
Runs on: a full machine with a browser, for minutes, in bursts. It is heavier than it looks and it has to finish before someone’s working day starts.
7. Release: the decision stays with a person
A person accepts the change and ships it. This is the moment risk passes from the team to the customers, and someone has to sign for it. Agents prepare, check and suggest. A person decides and answers.
Runs on: the person’s judgement. Nothing to rent.
8. Monitoring: the loop closes
An agent watches the product in use, catches failures and odd behaviour, and opens a ticket that goes back to stage one. Without it, a factory is an assembly line. With it, the product reports what needs fixing.
Runs on: small, always-on, close to the product. Like intake, it needs availability, not power.
The second loop: a factory that improves the factory
Above the product loop runs a second one. An observing agent scores every run: what it cost, how many times a person had to correct something, whether the change came back later as a fault. From that it proposes changes to the factory itself: another model for triage, a sharper spec instruction, a different placement rule for execution.
For that to be safe, the factory definition has to be code: versioned, with a way to roll back, to try a new version on part of the work and to compare results on a fixed set of test tasks. A change to the factory goes the same way as a change to the product: proposal, review, a person’s approval. A factory that rewrites its own instructions without consent is, three months later, doing things nobody understands. Where those instructions and records should live is the subject of the second part of this series.
The old cycle and the factory, side by side
| Dimension | Old development cycle | Agent factory |
|---|---|---|
| Shape | a relay of handovers between people | a loop: monitoring feeds new work |
| Where a person looks | at finished code | at the spec before code and the recording after verification |
| Scarce resource | developer time | a person’s attention at decision points |
| Team knowledge | in heads and a stale wiki | in agent instructions, versioned with the code |
| Compute | whatever the team’s machines and one cloud account provide | chosen per stage: cheap and deferrable, strong and immediate, sealed and long-running |
| Process improvement | a retrospective once a sprint | every run scored, changes proposed to the factory |
| Accountability for release | a person | still a person |
The last row matters most. Requirements, architecture, spec approval and the release decision stay with people. Everything between them changes.
Where a factory does harm
Automating work that only looks simple. “Bump the library version” sounds like an agent’s job, until the new version changes how rounding works in the invoicing module. Start where a mistake is cheap and visible at once.
Skipping the spec because the agent writes fast. Writing fast without an approved spec is the most expensive way to learn that everyone understood the task differently.
Placement that ignores the stage. Sending specification to the cheapest overnight capacity makes people wait for their own decisions. Running all of triage on the strongest model, right now, pays premium prices for sorting. Both mistakes come from treating every job the same.
Self-improvement without a brake. A change to the factory without a person’s approval is drift, not progress.
How to tell the factory works
| Vanity metric | Outcome metric |
|---|---|
| lines of code written by agents | how many times a person touched one change from report to release, and whether that falls |
| compute consumed | cost of one closed change, and its trend month to month |
| agents running | share of changes that passed the loop without corrections after approval |
| jobs placed instantly | share of deferrable jobs that ran on cheaper capacity and still met their deadline |
| agent-written share of the codebase | lead time for changes, deployment frequency, change failure rate, time to restore service (the four DORA measures) |
A second model can grade quality as well, but only as a supplement. If fixes after release are rising, no model’s grade covers for a factory that is producing worse work.
Where to start: the order of building
Each step gives a working system. You can stop after any of them and still have something useful.
- Triage. An agent sorts incoming reports into three bins and drafts a first change for well-described small faults. Put it on a cheap model from day one and let it wait for capacity.
- Specs. For unclear work, an agent drafts product and technical specs and a person approves them. Give it the strong model and run it immediately.
- Review with a learning loop. A sandboxed reviewer reads every change; a second agent turns people’s comments into proposed instruction changes.
- Live verification. An agent walks the user path, records proof and compares with the spec.
- Wiring and measurement. The coordinator joins the stages, monitoring feeds intake, the observer scores runs, and each stage gets a written placement rule: model class, deadline, jurisdiction, price ceiling. Only now does the second loop start working.
The same order works outside IT: brief, sorting, campaign spec, preparation, a check against the brand voice, a check of figures and consents, publication, measurement. We wrote about that in the first part of this series.
KyberFusion’s place in this is the last item of step five: capacity that a coordinator can rent by what a stage needs, settled in tokens on a ledger members can check. The network is not open yet and no token has been issued. This is not an offer.
On Monday, do one thing. Take your last twenty tickets and, by hand, in a spreadsheet, put each into one of the three triage bins, and note next to it whether it could have waited until morning. If more than half land in “unclear”, your first agent should not be the one that writes code. It should be the one that writes specs.
That leaves a decision. You can give the team an agent that writes code faster, run it on whatever machine is nearest, and watch the review queue grow. Or you can build a loop in which every stage runs where it should, and people stop writing and checking everything and start approving what actually needs their judgement.
- agent factory
- SDLC
- scheduling
- coordinator
- review
- verification