field note

The infrastructure under the AI agents is the actual story

Everybody is arguing about whether Claude Opus 4.7 beats GPT-5.4 on SWE-bench. Nobody is talking about the part that actually matters: AI agents now have persistent computers with real filesystems, PTY, and credential injection. That changes everything.

A server rack in a dimly lit data center, blue LED status lights glowing in rows, a network cable visible and disconnected on the left side

Cloudflare Sandboxes went GA this week. The announcement reads like a product launch, the kind that scrolls past your feed with a shrug. AI agents get persistent environments. Big deal. Another checkbox on the agentic AI checklist.

Except it is a big deal, and the reason it matters has nothing to do with the benchmark numbers everybody is arguing about this week. Claude Opus 4.7 posted strong numbers on agentic coding tasks. GPT-5.4 is close behind. Qwen3-Coder is showing strong SWE-bench results. The model wars are loud and they will stay loud. But the infrastructure layer that sits beneath those models is where the actual architecture of agentic AI is being decided, and that story is being written quietly.

What a persistent computer actually means

The standard agentic loop has always had a fundamental constraint. You send a prompt, the model thinks, the model calls tools, the tools return results, the model responds. Each cycle is a discrete transaction. The agent has no memory of the filesystem it is working in, no sense of the process it started three steps ago, no ability to leave something running in the background while it handles something else.

Cloudflare Sandboxes changes the primitive. When an agent can clone a repository into a persistent filesystem, start a development server, wait for a readiness signal on a specific port, generate a preview URL, and hand that URL to a user in the same session — the agent is no longer operating in a request-response paradigm. It is operating in a stateful execution environment that persists across calls. The agent sleeps when idle and wakes on request. The filesystem state survives. The background process keeps running.

The credential injection mechanism is the part that gets glossed over but deserves attention. The egress proxy injects authentication headers at the network layer before requests leave the sandbox. The agent never receives a raw token. It performs operations against services using credentials it cannot exfiltrate. This is not a minor security hardening. It is the difference between an agent that can be trusted with production infrastructure and one that cannot.

The terminal is not a metaphor

Cloudflare exposes a real PTY (pseudo-terminal) over WebSockets, compatible with xterm.js. This means streaming output, live debugging, interactive command execution. The agent is not calling a run_command() tool that returns a string. It is attached to a terminal session that behaves like a terminal session behaves. The distinction matters because the feedback loop that makes human engineers effective — edit, compile, fail, inspect error, fix, recompile — is a terminal-native loop. Until now, agents had to reason about this loop from the outside. Now they live inside it.

The code interpreter piece is equally worth unpacking. The context persists across multiple runCode calls within the same session. Import pandas once, use the DataFrame for the rest of the session. Define a function, call it five minutes later with different arguments. This is Jupyter notebook behavior, but the notebook survives across agent sessions because the sandbox state is snapshotted on sleep and restored on wake. Restoring from a snapshot takes about two seconds. A fresh npm install in a complex project takes thirty seconds or more. The warm start advantage compounds across every task.

The comparison that matters is not SWE-bench

Every week brings a new model leaderboard. Opus 4.7 leads on SWE-bench Verified at 87.6%. GPT-5.4 is somewhere in the pack. Codex (OpenAI’s CLI agent, running on GPT-5.3) wins Terminal-Bench at 77.3%. These numbers tell you something about relative model capability on constrained tasks. They tell you almost nothing about the infrastructure that determines whether an agent can actually ship software in a real environment.

The interesting comparison is token economics. Claude Code uses roughly 4x more tokens than Codex on identical tasks. A Figma plugin build: Codex consumed 1.5M tokens, Claude Code consumed 6.2M. An API integration: Codex 180K, Claude Code 650K. The gap is not noise. It reflects architectural differences in how each system manages context — Claude Code’s agent teams and subagent coordination introduce overhead, while Codex’s diff-based forgetting preserves structural understanding without accumulating summarization artifacts.

Neither approach is obviously correct for all workloads. But when you combine the token overhead with Cloudflare’s per-CPU-cycle pricing model — you pay for active compute, not wall time, so waiting on an LLM does not cost you anything — the economics of long-running agentic tasks shift significantly. The infrastructure layer is not neutral to the model layer. The choice of compute primitive changes the relative value of different model approaches.

This is the Heroku moment for AI agents

Platform as a service solved the deployment problem for web applications in the early 2010s. Before Heroku, deploying a Rails app meant provisioning servers, configuring Apache or nginx, setting up process managers, managing database connections, handling SSL termination. Heroku abstracted all of that into a git push. The developer wrote code and pressed a button. The platform handled the rest.

The analogy is not perfect — web apps and AI agents are different workloads with different requirements — but the structural shift is analogous. The stateful sandbox primitives Cloudflare is building (persistent filesystem, background processes, credential injection, snapshot and fork, inotify-based filesystem watching) are the equivalent of the dyno manifest, the routing mesh, the config vars system. These are the primitives that developers do not want to think about but currently must think about constantly when building agentic systems.

The companies that get this layer right — that make agentic compute feel like a platform rather than a collection of infrastructure choices — will own the middleware of the AI stack the way Heroku, AWS, and Cloudflare itself owned layers of the web stack. This is not a small prize.

What this means for the model wars

The models still matter. Opus 4.7’s 87.6% on SWE-bench Verified is not irrelevant. The Mythos preview — Anthropic’s gated model that sits above Opus 4.7 in the lineup and is currently restricted to external enterprise partners for cybersecurity testing — suggests the capability ceiling is still moving. But the marginal value of the next benchmark point is decreasing while the marginal value of reliable, secure, stateful compute infrastructure is increasing.

The bottleneck in agentic AI is no longer the model’s ability to reason about code. The bottleneck is the system’s ability to give the model a reliable environment to operate in. When you have a persistent sandbox with a real PTY, credential injection, background processes, and snapshot-based state management, you have decoupled the agentic loop from the fragility of stateless infrastructure. The model becomes a component in a system rather than the entire system.

That is the story. Not which model scored higher on a coding benchmark. Which infrastructure layer will become the substrate that every agentic application is built on top of. The model wars are the loud part of the story. The infrastructure is the part that lasts.


Sources: