Engineer Your Coding Agents Like Any Other System with Zach Lloyd, Warp
Software engineering is evolving into "factory engineering": as coding agents become a new engineering primitive, organizations must stop relying on ad hoc,
By Sean WeldonEngineer Your Coding Agents Like Any Other System: From Local Prompting to Software Factories
Abstract
As coding agents reach sufficient capability to operate with reduced supervision, the binding constraint on engineering organizations shifts from code authorship to agent orchestration and measurement. This synthesis examines the argument that software engineering is evolving into factory engineering: the discipline of constructing code-defined, continuously measured, closed-loop systems around cloud coding agents, as articulated by Zach Lloyd of Warp. A software factory is defined as a code-defined closed loop system for continuously measuring and improving cloud coding agents, distinguished from weaker precursors such as loose automation sets, AI teammate rosters, and personal agent swarms. The analysis presents a six-layer agentic infrastructure stack, a self-improvement loop in which agents diagnose their own failure patterns and submit pull requests against the factory's declarative definition, and a benchmark-replay methodology using proprietary production data. Reported outcomes include substantial throughput gains and cost reduction, with implications for governance, cost control, and the evolving skill set of the professional engineer.
1. Introduction
The prevailing mode of agentic software development remains local and interactive. Most developers run one or more coding agents on their own machines through a terminal or an agentic development environment, prompting each agent iteratively as it progresses. Informal polling of a practitioner audience indicated that this remains the majority pattern, though a growing minority report building or using internal software factories.
Three structural problems follow from the local-interactive pattern. First, throughput is capped at human attention: because every agent requires interactive prompting to proceed, aggregate output cannot exceed what a human can personally drive, regardless of available compute or model capability. Second, heterogeneity defeats control - when each engineer independently selects a harness, model, and skill set, the organization cannot reason about cost efficiency or productivity in aggregate. Third, local agent sprawl constitutes a security and governance exposure, since credentials and repository access are distributed across unmanaged endpoints rather than centralized systems.
The central thesis examined here is that coding agents constitute a new engineering primitive, and that extracting value from them requires engineering a system around them rather than deploying them on an ad hoc, per-developer basis. As the source material states: "If you're just going on vibes in terms of how you deploy coding agents, you can't be confident that you're actually getting the best highest quality outputs at the best cost." This analysis covers the definitional boundaries of a software factory, the infrastructure stack required to build one, a working implementation at Warp, and the resulting implications for engineering practice.
2. Background and Related Work
A software factory is explicitly distinguished from several adjacent but insufficient practices. A loose collection of automations lacks a measurement loop and cannot be systematically improved. A roster of "AI teammates" anthropomorphizes agents without encoding their behavior in reviewable, versioned form. Shared skill libraries and MCP (Model Context Protocol) server catalogs standardize capability without governing deployment or collecting outcome data. Personal agent swarms multiply local throughput while amplifying the same heterogeneity and governance problems that affect single-agent local workflows.
The factory concept instead borrows from established engineering infrastructure traditions. Declarative, Terraform-style infrastructure-as-code supplies the configuration model. The software development lifecycle (SDLC) - triage, spec, implementation, verification, monitoring - supplies the loop topology. DORA metrics and cycle time supply a baseline vocabulary for output measurement. Evaluation harnesses ("evals") supply the observability substrate, standing in the same relation to agentic systems that debuggers, profilers, and browser developer tools stand to hand-written code. Public agentic benchmarks such as SWE-bench and Terminal-Bench are treated as insufficient on their own, since they do not reflect an organization's actual codebase, task distribution, or failure modes.
3. Core Analysis
3.1 Defining the Software Factory
The source material defines a software factory as "a code-defined closed loop system for continuously measuring and improving cloud coding agents." Three components are necessary and jointly sufficient for this definition. First, the factory must be fully encoded in a declarative language, enabling version control, branching, and rollback of the workflow definition itself. Second, the factory must implement a continuous closed loop following SDLC stages rather than a one-shot automation. Third, every stage of the loop must be measurable, since without quantified feedback an organization cannot be confident it is achieving optimal quality, cost, or throughput.
This definition deliberately excludes several popular framings. A factory is not a set of AI teammates, not a shared skill/MCP library, and not a personal agent swarm - these are useful primitives that a factory may incorporate, but none alone satisfies the closed-loop measurement requirement.
3.2 The Agentic Infrastructure Stack
The analysis presents a six-layer stack for engineering agentic systems, ordered bottom to top. The factories-as-code layer defines coding agent workflows declaratively, enabling configuration branching, rollback, and agent-suggested self-improvement. The data and context layer records all agent output - conversations, artifacts, videos, screenshots - as raw material for later improvement. The compute layer provides sandboxing for security and repeatability, ideally across multiple platforms. The inference layer treats models and harnesses (Claude Code, Codex, Warp, or custom harnesses) as degrees of freedom to be tested rather than fixed choices. The orchestration layer moves work through the factory, described as the least interesting but still necessary layer. The topmost API and MCP-first layer exposes the factory to both humans and other agents, integrating with tools such as Slack, Linear, Jira, and GitHub.
This layering implies that model and harness selection should be an experimental variable rather than a fixed organizational decision, which is a departure from typical procurement-driven tooling choices.
3.3 Self-Improvement and Benchmark Replay
A distinguishing mechanism of the Warp implementation is a self-improvement loop in which agents, not humans, analyze failed-run patterns identified by online evals and propose corrective pull requests against the factory's own declarative code. One concrete eval example detects redundant or unnecessary test writing, a documented coding agent failure mode. This closes the loop between measurement and correction without requiring manual engineering intervention at each step.
The benchmarking methodology similarly departs from reliance on public suites. Benchmark sets are constructed from an organization's own production data, and the same tasks are replayed across varied model, harness, skill, and configuration combinations. Results are plotted on a cost-versus-quality quadrant, allowing teams to identify Pareto-optimal configurations empirically rather than by reputation or vendor claim. This directly addresses the stated limitation that SWE-bench and Terminal-Bench "don't reflect your own data."
4. Technical Insights
Several implementation-level findings carry direct applicability. The factory's declarative definition covers policies, repository access, triggers, and a workflow blueprint, making the entire agent deployment auditable and reversible in the same manner as infrastructure-as-code for cloud resources. Centralized data collection - implemented in Warp as a live, shared view of every agent's activity - enables organization-wide metrics (DORA metrics, cycle time, automation rate, human interactions per PR, throughput, cost) without requiring any installation on individual developer machines, which also resolves part of the governance exposure associated with local agent sprawl.
A key trade-off is that the self-improvement loop requires the organization to trust agent-generated diagnoses and proposed fixes to its own factory definition, which introduces a new category of change requiring review: changes to the system that produces changes. The benchmark-replay approach requires sufficient volume and diversity of real production tasks to be statistically meaningful, a precondition unavailable to smaller teams or newer codebases. Warp reports approximately 65,000 GitHub stars and near one million developers using its open-source agentic terminal, context relevant to the scale at which this data-driven benchmarking becomes tractable.
5. Discussion
The factory framing reorients the locus of engineering skill. Product engineering - solving real user and customer problems - remains, in the source material's framing, an unchanged responsibility. What changes is that every engineer must additionally learn a new tool set: evals, self-improvement loops, benchmarks, and A/B testing of the factory itself, positioned as the agentic-era analogues of debuggers and profilers. This suggests organizations adopting coding agents at scale should expect to invest in observability and experimentation infrastructure, not merely in agent licenses or model access.
A notable gap is the absence of discussion on how disagreements between agent-proposed factory changes and human engineering judgment should be resolved, or what review processes govern changes to the factory's own declarative definition. Similarly, the benchmark-replay methodology's statistical validity under low task volume is not addressed. These represent open questions for organizations attempting to replicate the approach at smaller scale.
The broader industry trend this reflects is a shift from agent-as-tool to agent-as-infrastructure-component, mirroring earlier transitions from manual server provisioning to infrastructure-as-code and from manual deployment to continuous delivery pipelines.
6. Conclusion
The central contribution of this analysis is a precise definition of the software factory as a code-defined, continuously measured, closed-loop system, paired with a concrete infrastructure stack and working examples of self-improvement and benchmark-replay mechanisms. The practical takeaway is that organizations should treat models, harnesses, and configurations as testable variables rather than fixed infrastructure choices, and should build measurement into agent deployment from the outset rather than retrofitting it. Next steps for practitioners include establishing online evals for known agent failure modes, constructing production-data benchmark sets, and encoding agent workflows declaratively to enable the branching and rollback that a true closed loop requires.
Sources
- Engineer Your Coding Agents Like Any Other System - Zach Lloyd, Warp - Original Creator (YouTube)
- Analysis and summary by Sean Weldon using AI-assisted research tools
About the Author
Sean Weldon is an AI engineer and systems architect specializing in autonomous systems, agentic workflows, and applied machine learning. He builds production AI systems that automate complex business operations.
Sean Weldon builds apps and custom software at 22Atlas.