Menu

Summaries > Technology > Software > How to Build a Software Factory That Improves Itself - Zach Lloyd, Warp...

How To Build A Software Factory That Improves Itself Zach Lloyd, Warp

https://www.youtube.com/watch?v=nKjPBAw_N_0

TLDR Software teams can boost coding-agent productivity by building a secure, cloud-based factory defined as code, where agents handle software tasks and humans improve the workflows. Track cost, speed, and quality on your own coding tasks, then use those results to refine workflows and choose models that work best for your codebase.

Key Insights

Move Beyond Laptop-Based Agent Prompting

Running coding agents locally can make engineers the bottleneck and leave costs, permissions, and activity difficult to manage. A compromised agent may inherit the user’s laptop access, while individually configured tools and integrations are hard to audit. Consider moving agent work into a secure, sandboxed cloud environment with centrally managed permissions. Keep humans involved to guide work and review important decisions, while agents handle repeatable stages such as triage, implementation, and verification.

Define the Software Factory as Version-Controlled Infrastructure

Treat a software factory as infrastructure for coordinating agents, rather than as a single AI product or teammate. Store its configuration in code so teams can inspect and change workflows, prompts, skills, models, integrations, secrets, and runtime environments. Version control makes it easier to test factory changes, reproduce results, and use coding agents to improve the setup itself. Design the system to fit existing company infrastructure and support different models and agent harnesses.

Preserve Control Over Data, Compute, and Model Choice

Establish clear requirements for where agent inputs and outputs are stored and where agents execute. Enterprises may need to run agents on their own infrastructure, use their own inference, and retain control of company data. Keep the factory flexible enough to change models and agent harnesses as requirements or performance change. These choices support security, governance, and AI sovereignty without locking the organization into one provider.

Route Work Through Tools Teams Already Use

Connect the factory to the tools where engineering work already begins, such as Slack, Linear, Jira, and GitHub. Collect tasks, agent conversations, traces, and generated artifacts in a shared system so teams can review work and analyze outcomes. Centralized records make it easier to audit agent activity and understand where a workflow succeeds or fails. They also provide useful examples for building evaluations from real engineering tasks.

Measure Results on Your Own Coding Tasks

Build a curated benchmark from representative past tasks, including small, medium, and difficult changes from your own codebase and technology stack. Replay the same tasks across models and factory configurations to compare correctness, cost, and completion time. Use configured evaluation scores, such as an LLM judge that detects redundant tests, and add human review where appropriate. Internal benchmarks are more useful for practical model selection than relying only on public benchmarks.

Use Evaluation Results to Improve the Factory

Track recurring agent failure modes and look for patterns across coding runs. Agents can summarize repeated problems and propose changes to prompts, skills, workflows, or model routing; teams should review and test those changes before adopting them. For example, if the same issue causes many failed runs, a targeted factory update may prevent it from recurring. This creates a measurable improvement loop instead of treating each agent failure as an isolated incident.

Budget for Verification and Track Delivery Metrics

Monitor practical factory measures such as automation rates, cycle time, spending, and cost per pull request. Track how much of the budget goes to scoring and benchmarking so teams can estimate the cost of future projects. Use spec-driven development and verification methods, including computer-use checks when relevant, to produce evidence that a change works. Consistent measurement helps teams balance quality, speed, and cost while reducing unnecessary review effort.

Questions & Answers

What is a cloud software factory?

It is a secure, sandboxed cloud system where humans guide work while agents handle stages of the software lifecycle, including triage, specification, implementation, and verification.

Why can interactive prompting on engineers’ laptops limit productivity?

People remain the bottleneck, costs are difficult to control, and local agents are harder to secure and govern. Agents may inherit a user’s laptop permissions, while individually configured tools and integrations make activity difficult to audit.

How should companies approach building a software factory?

Treat it as adaptable infrastructure rather than a standalone product or AI teammate. Define workflows and components in version-controlled code so teams can inspect, test, and improve the factory, and adapt it to their existing systems.

What does AI sovereignty mean for companies?

Companies should be able to own their input and output data, run agents on their own infrastructure and compute, provide their own inference, and choose their models and agent harnesses.

How can companies determine which agents and models work best for their software?

Evaluate agents on the company’s own coding tasks and data. Build curated benchmarks from representative past runs, replay tasks across model configurations, and compare cost and quality to develop model-routing strategies suited to the company’s code and stack.

How does the factory’s self-improvement loop work?

Agents aggregate failures, identify recurring patterns, and propose changes to the factory definition so similar problems are less likely to recur. Evaluation scores and benchmark results help reveal where to improve workflows, skills, context, and model choices.

What should a factory definition in code capture?

It can specify agent definitions, prompts, models, secrets, MCPs, automations, benchmarks, runtime environments, skills, and webhooks, making the configuration inspectable and automatable.

What metrics should teams use to manage a software factory?

Track automation, DORA-style cycle-time metrics, and spending. Measure cost per pull request and the share spent on scoring and benchmarking to help estimate project costs and improve efficiency.

How can teams verify that an agent-built change works?

Use spec-driven development and computer-use verification to produce user-facing evidence that the change works, which can also reduce the burden of code review.

How can teams create benchmarks, and how is correctness evaluated?

Teams can hand-pick representative small, medium, and hard tasks, or identify useful past sessions stored by the factory. Correctness can be assessed by an LLM judge using configured scorers; human grading is another reasonable option.

Is Warp open source, and who can use its factory approach?

Warp is not open source, but it is flexible and can work with existing tools. Individuals and small teams can try it, though it is most valuable for engineering teams of around 10 or more.

Summary of Timestamps

Zach, Warp’s founder and CEO and a former Google principal engineer, introduces the idea of building a software factory for coding agents. Warp’s open-source agentic terminal has around 65,000 GitHub stars and nearly a million active developers, providing the context for his broader focus on helping organizations improve software delivery.
Zach explains why interactive prompting—running agents such as Claude Code or Codex on individual laptops—can limit productivity. People remain responsible for coordinating the work, costs can be hard to control, and locally configured agents are difficult to secure and audit because they may inherit a user’s permissions.
A cloud software factory provides a secure, sandboxed environment where people guide the work and agents handle stages such as triage, specification, implementation, and verification. The goal is to define how humans and agents collaborate, then measure and improve that process.
The factory should be treated as infrastructure rather than as a single AI product or teammate. Its workflows should be adaptable to existing systems, support different models and agent harnesses, and be defined in version-controlled code so teams can inspect, test, and improve the setup.
Zach emphasizes AI sovereignty: organizations should control their data, infrastructure, compute, and inference, while retaining the freedom to choose models and harnesses. Instead of relying only on public benchmarks, they should evaluate agents on their own tasks and code.
The factory is designed to improve through measurement. Engineers use it to build features and fix bugs, while factory engineers refine skills and context, adjust model choices, and strengthen workflows. This separates delivering software from improving the system that delivers it.
In Warp’s internal setup, factory managers track automation, DORA-style cycle-time metrics, and spending. Requests can arrive through familiar tools such as Slack, Linear, Jira, and GitHub, but the work is gathered in one place so agent traces, conversations, and artifacts can be analyzed.
The factory’s configuration is stored as code in a repository. It can describe agent definitions, prompts, models, secrets, MCPs, automations, benchmarks, runtime environments, skills, and webhooks, making the system easier to inspect, reproduce, and automate.
Online evaluations, called scores, assess coding runs—for example, an LLM judge can identify redundant tests, a common agent failure. These evaluations help teams spot recurring problems and provide evidence for improving the factory.
Agents can aggregate failure patterns and propose changes to the factory definition, such as addressing an issue that has failed repeatedly. This creates a self-improvement loop in which lessons from past runs help prevent the same problems from recurring.
For benchmarking, Zach recommends building curated suites from real coding tasks rather than depending solely on public benchmarks. Teams can replay representative tasks across model configurations, compare cost and quality, and develop model-routing strategies tailored to their own codebase and technology stack.
The broader factory infrastructure combines a code-defined foundation, a data layer, sandboxed agents, flexible inference, scoring and self-improvement, workflow orchestration, and access through existing tools. Together, these components make the factory a measurable system for delivering software.
For verification, Zach recommends spec-driven development and computer-use checks that produce user-facing evidence that a change works. Teams can track cost per pull request and the share spent on scoring and benchmarking to estimate project costs and plan verification budgets.
In response to questions, Zach says benchmarks can be assembled by hand from small, medium, and difficult tasks, or selected from useful past sessions stored by the factory. Correctness is currently assessed with configured LLM-based scorers; human grading could also be useful, though it has not yet been added.
Zach clarifies that Warp is not open source, but is flexible and can work with existing tools. Although it can be tried by individuals and small teams, he says the approach is most valuable for engineering organizations of roughly 10 or more people. The central takeaway is to build a factory that can be measured and continually improved.

Related Summaries

Stay in the loop Get notified about important updates.