with-agents

Don't Build Agents, Build Environments Instead

Adam Azzam on dev boxes, resumable sessions, secret isolation, and control-plane design

Modal’s Adam Azzam argues that the hard part of background coding agents is the environment around the harness. He distinguishes bare sandboxes from task-ready dev boxes, explains why agent sessions need persistence and fast resumption rather than CI-style reruns, and recommends versioned per-repository images, secret-injecting proxies, and a separate control plane. The Ramp scale, pull-request share, and startup-time figures are first-party reports in a Modal product talk.

Hamel Husain

Modal's Adam Azzam argues that background coding-agent systems are converging on similar harnesses and that the harder engineering work now sits in the environments where agents build and run software. His proposed architecture treats those environments as resumable, task-ready dev boxes and keeps the agent's durable state separate from risky execution.

Key Points Covered

  • A dev box is more than a bare sandbox: An agent working on a web application may need exposed ports, browser and screenshot tools, while data or machine-learning tasks may require specialized hardware. Giving it only an isolated Linux machine can prevent it from evaluating its own work 05:58–08:02(opens in a new tab).
  • Agent work is a resumable session, not a disposable CI job: A background agent may pause for human feedback after changing files or while a process is still running. Azzam argues that the platform therefore needs to preserve filesystem or process state and restore it without restarting the task from scratch 08:02–10:55(opens in a new tab).
  • Long-lived environments must stay in sync with the repository: Repository state and dependencies can change while an agent waits. The environment needs a way to update or restart from a prepared image without discarding useful progress 10:55–11:59(opens in a new tab).
  • Keep secrets out of the agent's environment: Even without malicious intent, a model-driven process can read an environment variable and accidentally place a credential in a URL or log. Azzam recommends keeping secrets outside the agent environment. The agent sends requests through a proxy or sidecar, a deterministic process that attaches the secret, so the agent never holds it 11:59–13:01(opens in a new tab), 16:03–17:05(opens in a new tab).
  • CI-style setup scripts impose cold starts and drift: Reinstalling tools and dependencies for every hosted-agent task adds minutes before useful work begins, while remotely configured setup scripts can diverge from the repository they are meant to support 13:01–15:05(opens in a new tab).
  • Version task-ready images with each repository: Azzam describes teams maintaining per-repository images in code, rebuilding them asynchronously, and performing a small Git synchronization when a new dev box starts. He says this gives each repository its own dependencies, ports, and permissions without putting the rebuild delay in the interactive path 15:05–18:10(opens in a new tab).
  • Run the agent apart from the tools it executes: If an agent and its tools share one process, an out-of-memory tool call can crash the agent and lose its state. Azzam recommends keeping the agent and its plan in a control plane. Its read, write, and shell calls run remotely in disposable dev boxes, so a failed or corrupted environment returns an error instead of crashing the agent 19:06–22:17(opens in a new tab).
  • What helps developers use infrastructure also helps agents: In the Modal demonstration, sandboxes expose remote execution and streaming output. Azzam and host Hamel Husain argue that clear documentation, types, hints, and actionable errors help agents for the same reasons they help people 23:20–25:28(opens in a new tab).
  • Fleet-level observability remains underdeveloped: Azzam distinguishes traces for one agent from understanding the aggregate effect of hundreds of agents producing changes, which he describes as an open problem still served mostly by limited repository statistics 25:28–26:31(opens in a new tab).

Watch the full talk on YouTube(opens in a new tab).

Search

Search field guides and resources across the site.

    Keyboard shortcuts

    Press ? to open this guide (usually Shift + /). Close it before using other site shortcuts.

    Show keyboard shortcuts
    ?
    Search site
    Ctrl + K
    Close the current dialog or menu
    Esc

    Site shortcuts are ignored while typing. Browser and extension shortcuts may take priority.