Summaries > Technology > Software > 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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
It can specify agent definitions, prompts, models, secrets, MCPs, automations, benchmarks, runtime environments, skills, and webhooks, making the configuration inspectable and automatable.
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.
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.
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.
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.