AI software factory
The system we build to make the most of AI in our software engineering workflows, without sacrificing the quality of the code produced.
TechnologyAI software factory
When agents write the code, the engineer’s job changes
In the age of agentic AI and coding agents, the way software gets built and shipped has changed.
Code is less and less reviewed by engineers: coding agents produce far more of it, far faster, than a human can read and take in. The developer’s work has therefore shifted. The effort now goes into designing the system that produces the code: the “harness”, the environments and tools around it, and the guardrails that keep it all in check.
Rethinking the software engineer’s role
The engineer decides at the strategic points that determine the outcome. Before the code, they define the system to be built, then approve the specification. Before the merge, they decide what ships. Continuously, they watch the chain as it runs and improve it.
This is the approach we apply with our AI software factory.
-
Chatbot
You ask a question and copy the answer.
-
Prompt engineering
You design the input instructions, the “prompt”, to try to get better results.
-
Specialised agents
A specialised system, built around a model, that works in a loop towards a goal: it runs tools, observes the results and adjusts its actions.
-
AI software factory
A complete system: roles, guardrails and verification loops.
From chatbot to software factory: how AI agents are transforming code production
A unified system, not just a coding agent
A coding agent on its own is not enough. What makes the difference is everything built around it: how a feature is specified, the stages it goes through, the points where the engineer decides, and what gets measured to improve the quality of the shipped code and the system in a closed loop.
An agentic system is not deterministic: for the same input, repeated n times, it does not necessarily produce the same output. The factory is designed to maximise the determinism of the system.
The benefits of such a system: faster delivery, code tested at every change, decisions traced from specification to delivery, and a system that improves with every run.
In development. We already use it to build the system itself and our own technologies.
Overview of how the factory works
-
Specification Engineer
The engineer writes the specification and its validation criteria.
-
Triage Agent
Explore the code, set the scope.
-
Brief Agent
The agent refines the specification and turns it into an implementation brief.
-
Approval Engineer
The engineer approves the brief before a single line is coded.
- Otherwise: back to the brief
- Sandbox
Implementation Agent
The code, on a branch.
-
Tests Factory
Automated tests decide: the change goes through, or goes back.
- If a test fails: back to implementation
- After n failures: stop, back to the engineer
-
Independent review Agent
Another agent checks the change.
-
Decision Engineer
The merge is decided; the repository stays protected.
-
Measure and improve Factory
Every run is measured; the chain improves.
- Closed loop: back to the start
Building blocks and design principles
Everything is defined by code. The system is versioned and reproducible.
Agents are only one building block among others. They hold specialised roles: coordination, exploration, implementation, verification. They rely on skills, instructions and scripts loaded on demand (DevOps and CI, evaluation, security), as well as on integrations that plug the chain into the team’s tools: code repositories, tickets, messaging.
Specification first. The engineer writes the specification and its validation criteria. The agent refines it and turns it into an implementation brief, which the engineer approves before a single line is coded.
One isolated environment per task. Each agent works on its own copy of the repository (git worktree), in a sandbox: an isolated execution environment with limited permissions. Guardrails restrict the secrets, network access and permissions of each agent, and merges stay protected by the repository.
Tests decide. A change that does not pass goes back to implementation, which allows fast, controlled iterations.
One context per stage. Each stage works in its own context and hands a written result to the next: a scope, a specification or a pull request. Each agent thus receives only the context it needs, which keeps token consumption under control.
The right model in the right place. A lightweight or local model for triage, a strong model for the specification and the review.
Everything is traced and measured. Every run is tracked (cost, duration, success rate) and the system is monitored while it runs.
Where do we stand?
This page describes a first version of our AI software factory. The system is under active development, and much will change: agents, models and practices move fast, and our architecture moves with them.
Over the coming months, we will refine the system’s specification and share what we learn on our blog, Hack the Gradient.