Warp has published a step-by-step guide to building a software factory, which it defines as an automation loop in the cloud that orchestrates agents to build better software over time. The guide argues that most teams focus on the loop and skip the parts that make the output trustworthy, which leaves them with a black box or a “slop cannon” that produces pull requests nobody reads.
Its answer is a pipeline with three additions: structured workflows, human judgment before coding starts and verification before a pull request opens.
Start with a blueprint
The simplest backlog agent takes a request, implements the change, runs static checks and opens a draft pull request with a summary. Warp suggests turning those steps into a YAML template it calls a blueprint, so each stage has named inputs and structured outputs. That makes every run return the same shape of result, and it lets the pipeline be drawn as a diagram while work moves through it.
Each stage points to a prompt, which can sit in a separate Markdown file, and a “to” field that says where work goes next. Stages are assigned to workers, which are separate sandboxes with their own context windows. In the two-agent example, a foreman talks to the user and a builder writes code, so the user can ask the foreman for updates while the builder keeps working.
A trigger brings work in. One sample starts a task whenever a GitHub issue gets a “factory” label. Warp ran a backlog of ten issues through it. For small, well-defined fixes in a native desktop app, an open-weight model cost under a dollar per issue.
Add triage and specs
Deeper features are where it breaks down. Warp’s example issue asked for a way to expand or collapse all folders in a file sidebar. That leaves open whether the app needs the control at all and where it should live. The unguarded agent shipped a working version with separate buttons, when a single toggle or a menu-bar item might have been better.
The fix is two stages before implementation. Triage researches the request and picks one of three routes: straight to implementation for a clear change, to a spec for a feature with open product decisions, or to a plain answer when no code is needed. The spec stage lets the agent ask questions and then write the intended behavior and technical approach. Its validation section later becomes a checklist for verifying the work. Warp prefers to commit the spec as code, though it can live in memory.
Run through this flow, the folder request produced questions instead of code:
- Where should the expand and collapse actions live?
- Should they apply to every folder or only the chosen one and its children?
- What happens to the folder holding the open file after a collapse?
The author answered with the View menu, every folder, and keeping the open file’s folder expanded.
Give the agent a computer
Reviewing meant pulling the branch, running the app and clicking through the flows by hand. Warp asks why anyone would accept a pull request the author never ran. Its factory workers have computer use built into their sandboxes, and many agent tools support it.
App-specific steps go into a skill. For the Electron app in the example, a UI verification skill explains how to start the app, connect to DevTools, walk the requested path and record a video, plus a screenshot where useful. The agent adds a “Visual proof” section to the pull request, and it must say so if the app cannot launch. The skill also keeps a gotchas list the agent built up over time, such as screenshots being at device pixel ratio 2 and context menus needing real mouse events.
Score merge risk
With many pull requests arriving, reviewers need to know which ones deserve the closest look. Warp’s merge-risk skill rates each change in five areas:
- Alignment: does the code match the description, or does it contain undocumented drive-by changes?
- Impact: how far does the change reach, and does it touch auth, permissions or database schemas?
- Verification: was it checked with computer use, end-to-end tests and unit tests?
- Rollback cost: is it an easy revert or a one-way door such as a destructive schema change?
- Error detection: would a production failure show up in monitoring or logs?
The skill combines these into a low, medium or high score and lists the gaps that raise risk. The results can become GitHub labels, description items or a comment. Warp also tells the implementing agent to run the skill before opening the pull request, so it can fix gaps such as missing error logging and report impact and rollback cost in the description.
Where to try it
Warp says the approach works with any agent setup, and it points to Unit 2 of its software factories course for a hands-on walk-through. The merge-risk skill is available to download from warp.dev/merge-risk.
Source: Warp