# Engineer Your Coding Agents Like Any Other System

Zach Lloyd, Warp | AI Engineer | 18:31

Source: https://www.youtube.com/watch?v=0LeT996Hz3E
Channel: AI Engineer (https://www.youtube.com/@aiDotEngineer). Summarised by AIE Talks.
Page: https://aietalks.com/talks/engineer-your-coding-agents-like-any-other-system
Published: 2026-11-20
Tags: agents, benchmarks, coding-agents, evals, software-factories

## TL;DR
- Local interactive prompting limits coding-agent throughput because each agent depends on human attention.
- A software factory is a code-defined, closed-loop system that measures and improves cloud coding agents.
- 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.

## Key ideas
### Local prompting puts a ceiling on agent throughput
[01:12](https://www.youtube.com/watch?v=0LeT996Hz3E&t=72s)
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
[02:56](https://www.youtube.com/watch?v=0LeT996Hz3E&t=176s)
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 declared in code
[03:57](https://www.youtube.com/watch?v=0LeT996Hz3E&t=237s)
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
[08:23](https://www.youtube.com/watch?v=0LeT996Hz3E&t=503s)
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
[06:38](https://www.youtube.com/watch?v=0LeT996Hz3E&t=398s)
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
[12:57](https://www.youtube.com/watch?v=0LeT996Hz3E&t=777s)
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.

### Agents can propose factory fixes as pull requests
[15:01](https://www.youtube.com/watch?v=0LeT996Hz3E&t=901s)
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.

### Benchmarks should use the team's own work
[15:47](https://www.youtube.com/watch?v=0LeT996Hz3E&t=947s)
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.

## Notable quotes
- "I define it as a code-defined closed loop system for continuously measuring and improving cloud coding agents." (03:43)
- "You really need a measurement mindset and measurement capabilities." (05:35)
- "The only way to answer those questions for real is to test on your own data." (16:07)
- "Engineer your agents. It's a new engineering primitive." (17:33)

## Tools & references mentioned
- Google Docs
- Warp
- Claude Code
- Codex
- Py
- Terraform
- DORA metrics
- Slack
- Linear
- Jira
- GitHub
- Swebench
- Terminal Bench
- MCP

## Who should watch
- You are deciding whether coding agents should remain local developer tools or move into a shared platform with central controls.
- Your team needs to compare models, harnesses, prompts, or skills using its own engineering tasks and cost data.
- You want a concrete pattern for recording agent runs, evaluating failures, and having agents propose changes to the system that runs them.

## Editor's note

Zach Lloyd says teams should replay real tasks against different models, harnesses, skills, and factory configurations because public benchmarks do not show what works for their own organization. Kitaru records each real agent run, including model calls and tool results, then re-runs the agent code against that recording after a change. The replay does not touch real systems.

Written by the AIE Talks editors (the Kitaru team), not by the speaker.

## Related talks

- [How to Build a Software Factory That Improves Itself](https://aietalks.com/talks/how-to-build-a-software-factory-that-improves-itself) (Zach Lloyd, Warp, 22:01)
- [Building your own software factory](https://aietalks.com/talks/building-your-own-software-factory) (Eric Zakariasson, Cursor, 1:23:37)
- [How Coding Agents Change Software Development Forever](https://aietalks.com/talks/how-coding-agents-change-software-development-forever) (Hailong Zhang, 08:50)
- [Self Coding Agents](https://aietalks.com/talks/self-coding-agents) (Colin Flaherty, Augment Code, 17:23)
- [Coding Agents Don't Scale Themselves. Neither Do Your Teams.](https://aietalks.com/talks/coding-agents-dont-scale-themselves-neither-do-your-teams) (Patrick Debois, Tessl, 22:06)
