Hamel Husain

Don't Build Agents, Build Environments Instead

Published 2026-08-25 · Duration 27:19

Summary

The talk argues that the most critical challenge in building agentic workflows is not the agent itself, but the underlying environment (the 'background part'). Teams should focus on 'environmental engineering'—designing robust, fast, and persistent development environments ('dev boxes') rather than optimizing the agents. Key architectural shifts involve treating sessions as long-running, stateful processes that require sophisticated isolation between the control plane (planning) and the data plane (execution).

Download summary

Key takeaways

  1. Focus on Environments, Not Agents

    The difficulty in background agent systems lies in the environment they operate within. The focus should be on building reliable 'dev boxes' that provide necessary resources beyond a bare sandbox.

  2. Jobs vs. Sessions 20:04

    Traditional CI/CD treats runs as stateless 'jobs.' Agents require long-running, resumable 'sessions' that must persist state (e.g., file system snapshots) and potentially outlive the initial machine runtime.

  3. Dev Boxes vs. Sandboxes 3:58

    A sandbox is bare; a 'dev box' must be rich enough to handle complex tasks (e.g., running local servers, taking screenshots, profiling on GPUs), requiring more than just basic Linux access.

  4. Architectural Separation 24:16

    To prevent failure, the system must separate the agent's planning logic (Control Plane) from the risky execution tools (Data Plane). The agent should issue remote calls to a dedicated sandbox rather than running tools collocated with its own process.

Technical details

  • Dev Box Design 238s

    A dev box must be capable of supporting diverse tasks beyond simple software engineering, such as data analysis or ML model profiling (e.g., requiring GPU access and specific ports).

  • State Persistence 1204s

    For long-running agent sessions, the system must implement state persistence by snapshotting memory or ensuring file system integrity so that work can resume days later.

  • Security Model (Control/Data Plane) 1320s

    The security boundary for agents is different from CI/CD. Since agents may accidentally leak secrets by logging them in URLs, the system must use proxies or sidecars to intercept requests and imbue secrets without giving the agent direct access.

  • Cold Start Mitigation 1530s

    To achieve sub-second boot times at scale (e.g., millions of sandboxes), systems must treat environment images as code and manage them asynchronously. This ensures that new dev boxes are mounted on a 'warm' image, minimizing setup time.

Mentioned resources

  • Modal (Platform/Tool)
  • Ramp (Company/Example)
  • Prefect (Framework)
  • FastMPP (Framework)

Channel & topics

Watch on YouTube · Back to latest

This independent, AI-assisted summary is provided for commentary and informational purposes. It may contain errors or omit important context. Please watch the original video for the creator's complete presentation. Video, thumbnail, and related copyrights belong to their respective owners.