newsfilter
← Interviews
AI Engineer19 min

Engineer Your Coding Agents Like Any Other System — Zach Lloyd, Warp

Zach Lloyd

Conference Presentation, Product Demonstration

Defining the Shift to Factory Engineering

  • The industry is transitioning from individual developers using local, interactive coding agents to centralized "software factories."
  • Local agent usage faces three critical limitations: limited human throughput for interactive prompting, difficulty in governing cost and productivity across disparate setups, and significant security and governance risks.
  • The speaker defines a software factory specifically as "a code-defined closed-loop system for continuously measuring and improving cloud coding agents."
  • This definition explicitly excludes loose automation sets, collections of AI teammates, shared skill libraries, or personal agent swarms as the end state.

Core Principles of a Software Factory

  • Declaration via Code: Factory workflows must be defined in declarative language (e.g., Terraform-style) to specify agents, triggers, workflows, and Model Context Protocol (MCP) availability.
  • Measurability: Organizations must adopt a measurement mindset to avoid relying on intuition, ensuring optimal throughput, cost efficiency, and output quality.
  • Continuous Improvement Loop: The system must feature a closed loop (ideally the SDLC from triage to monitoring) where agent execution data drives system efficiency.
  • New Engineering Primitive: Coding agents should be treated as new engineering primitives requiring a shift from "gardening" or "recipe following" to systematic engineering.

The Factory Engineering Toolkit

  • Self-Improvement Mechanisms: Agents must be capable of diagnosing their own failures, analyzing patterns in bad scores, and submitting Pull Requests to modify the factory definition.
  • Online Evals: Continuous evaluation layers allow agents to score other agent sessions in real-time against specific dimensions (e.g., detecting redundant tests) to identify improvement opportunities.
  • Benchmarking: Organizations must maintain internal benchmark sets derived from real data to replay tasks against different models, harnesses, or configurations.
  • Comparison Logic: Benchmarks enable testing of trade-offs between cost and quality (aiming for the upper-left quadrant) and evaluating the impact of removing specific skills or models.

Required Infrastructure Stack

  • Factories as Code: The foundation layer defines policies, repository access, triggers, and workflow blueprints, enabling branching, testing, and rolling back configurations.
  • Data and Context Layer: All agent interactions, artifacts, videos, and screenshots must be centrally recorded to provide the raw material for system improvement.
  • Compute Layer: Requires multi-platform sandboxing to ensure security, repeatability, and isolation.
  • Inference Layer: The system must support multiple models and coding agent harnesses (e.g., Warp, Codecs) as variables to test.
  • Orchestration Layer: Moves work through the factory pipeline.
  • API and MCP First Design: The factory must be API-centric to integrate with tools like Slack, Linear, JIRA, and GitHub, allowing use by both humans and other agents.

Operational Visibility and Metrics

  • Live Visibility: Teams should maintain a centralized, Google Docs-style view of all agent activities across the organization in real-time.
  • Traditional Metrics: Monitoring includes DORA metrics, cycle time, and cost-per-PR.
  • Automation Metrics: Tracking includes the number of human interactions per PR and overall throughput to gauge automation levels.
  • Outcome: Warp's team has used this approach to drastically improve throughput and lower costs by continuously scoring, benchmarking, and testing configurations.

Forward-Looking Perspective

  • The speaker argues that despite the shift to agentic workflows, the fundamental engineering skills required to build systems and solve problems remain relevant and vital.
  • The industry is moving away from the "angst" of writing code manually toward the higher-level engineering task of optimizing the agentic system itself.