Local interactive prompting limits coding-agent throughput because each agent depends on human attention.
2
A software factory is a code-defined, closed-loop system that measures and improves cloud coding agents.
3
Recorded runs, online evals, self-improvement PRs, and benchmarks on a team's own data let engineers test factory changes.
Summary
Zach Lloyd argues that coding agents should be engineered as part of a software system rather than run as isolated local tools. He defines a software factory as a code-defined, closed-loop system for running, measuring, and improving cloud coding agents. Its stack includes declarative factory definitions, centrally recorded conversations and artifacts, sandboxed compute, interchangeable models and agent harnesses, orchestration, and API or MCP integrations. Lloyd shows how a team can inspect every agent run, measure throughput, cost, cycle time, and human interactions, then apply online evals to find failures such as redundant tests. Agents can study those failures and propose changes to the factory as pull requests. He also recommends replaying real tasks against different models, harnesses, skills, and factory configurations. His argument is practical: the new engineering work is learning how to measure and improve the system around agents, while still owning the quality of the product those agents produce.
Local prompting puts a ceiling on agent throughput
Lloyd says most developers still run coding agents locally, sometimes several at once through a terminal or agentic development environment. When every agent needs interactive prompting, human attention limits how much work can be automated. Local setups also make it difficult for platform and engineering teams to control model choice, skills, cost, productivity, security, and governance across the organization.
A software factory is a measured closed loop, not a collection of agent features
Lloyd rejects several partial definitions of a software factory. It is not merely a loose set of automations, a collection of AI teammates, shared skills and MCPs, or a personal agent swarm. He defines it as a code-defined closed-loop system for continuously measuring and improving cloud coding agents. Work can move from an idea or automated signal through triage, implementation, verification, and monitoring, with later runs informing improvements to the loop.
The factory should be encoded in a declarative language, in a style Lloyd compares with Terraform. The definition can specify which agents run, how they are triggered, the workflow from issue to implementation, available MCPs, and where agents execute. This makes factory configurations branchable and reversible. It also allows agents to propose changes to the system that runs them.
Recorded runs provide the material for improvement
A factory needs to record what its agents produce at scale. Lloyd names conversations, artifacts, videos, and screenshots as examples of the data to retain. Sandboxed compute improves security and repeatability, while support for multiple models and coding-agent harnesses creates configurations that can be tested. The orchestration layer moves work through the factory, and API- and MCP-first access lets people and agents use it through tools such as Slack, Linear, Jira, and GitHub.
Factory engineering adds a new toolset to normal product engineering
Lloyd compares factory engineering with the tools that helped engineers improve hand-written software, such as debuggers, profilers, and Chrome DevTools. The newer tools include evals, self-improvement loops, benchmarks, and A/B tests for factory configurations. Engineers still need to decide whether the product solves a real user or customer problem, while also learning how to improve the system that produces it.
Online evals turn agent output into actionable failure data
Once runs are recorded centrally, teams can inspect cycle time, DORA metrics, throughput, cost, and the number of human interactions per pull request. They can also run online evals across sessions. Lloyd gives redundant tests as an example: an eval can score whether an agent wrote unnecessary tests, then help the team investigate why that happened and what factory change might prevent it.
In Lloyd's self-improvement loop, agents inspect eval scores and failed runs, look for patterns, and suggest a possible solution. The solution is submitted as a pull request against the factory definition. Because the factory is represented as code, the same coding agents can diagnose problems in their operating setup and propose changes that humans can review.
Lloyd says public claims about the best model, skill, or harness do not answer what will work for a particular organization. Teams should build benchmark sets from real data and replay those tasks against different configurations. They can compare models, harnesses, skills, and factory definitions by cost and quality on their own tasks, rather than relying only on results from public benchmarks.