Skip to content
Brandon Braner
All posts

Production agents need identity, a workspace, and a control plane

Cloudflare’s Birthday Week agent stack—Containers with snapshots, Issues→agent, and AI Gateway Auto Router—maps to sandbox lifecycle, incident handoff, and spend routing.

#ai-leadership #agents #architecture #cloudflare

“We have an agent that can write code. Why does production still feel like duct tape around a chat window?”

The short answer

Production agents need three layers, not a cleverer prompt: identity and lifecycle for the sandbox, a structured handoff when something breaks, and a control plane for model spend.

On September 30, Cloudflare shipped pieces of all three in one day: Containers rebuilt for on-demand agent sandboxes (runtime image choice, ~6× faster start, filesystem snapshots in public beta), Issues that group Workers failures and send them straight to a coding agent, and AI Gateway’s Auto Router (cloudflare/auto) that picks a capable-enough model per request.

That is not a feature dump. It is an architecture sketch for anyone treating agents as managed systems.

Layer 1 — Workspace with identity (Containers)

Chat agents pretend the world is a single thread. Production agents need a computer: clone a repo, install packages, run tests, sleep, come back tomorrow with the files still there.

Cloudflare’s Containers update is aimed at that pattern. Agents do not pre-deploy fleets of sandboxes. They create one per task, expect it ready immediately, and need to pause and resume. The new durable_object scheduling policy lets application code choose image and instance type at start time. ComputeSDK’s Burst TTI benchmark put median startup at 648 milliseconds versus just over four seconds on the previous path—about 6× faster. Filesystem snapshots (public beta) let you save a prepared workspace and restore it later, or fork the same baseline for many eval runs.

The important design choice is not the milliseconds. It is the Durable Object attached to every Container: stable identity, state, credentials policy, and lifecycle next to the Linux workspace. Cloudflare’s own framing matches what operators learn the hard way—decouple the “brain” from the “hands.” Keep the agent loop available while the sandbox starts, stops, fails, or is replaced. Pin images mid-task. Canary a toolchain on a hash of the Durable Object ID. Roll back by changing which image the next start chooses.

If your agent architecture still treats “the session” as ephemeral chat history with no named workspace, this is the gap.

Layer 2 — Incident handoff (Issues → agent)

Coding agents can already query logs, change code, write tests, and open a pull request. The missing piece is connecting recognition of a recurring failure to that workflow without a human pasting stack traces into a prompt.

Issues (open beta) is built into the Workers runtime: group exceptions, 5xx responses, and error logs; attach stack traces, leading/trailing logs and traces, and Worker version; then automate delivery to Claude Code, Cursor, Devin, a webhook, or chat/on-call when an occurrence threshold is crossed or an issue returns after quiet. You stay the release gate—review the PR, deploy, mark resolved.

That is incident handoff as a product surface, not a Slack habit. Cloudflare dogfooded it on Workflows and, within a day, surfaced a migration stuck in a foreign-key retry loop and a deletion path that never finished under a subrequest limit—both routed toward an agent-assisted fix path.

For fractional-CTO work, the question is simple: when production fails, does your agent get a structured packet, or does a person become the ETL layer between Observability and ChatGPT?

Layer 3 — Spend routing (Auto Router)

Once many users and agents share frontier models, budgets alone are not enough. People still pick Opus for email summaries.

AI Gateway’s Auto Router (public beta) sits on the path every request already takes. Set the model to cloudflare/auto. The gateway builds an eligible pool (format, credentials, policies, spend limits, healthy providers), classifies the conversation for task type and difficulty, scores models, and selects with an adaptive cost penalty. Cloudflare reports up to ~30% cost savings internally versus frontier-only use in their OpenCode harness. On their internal knowledge-work benchmark, cloudflare/auto landed near daily-driver quality at a fraction of Opus cost and below Sol on cost per success—useful as a directional signal, not a promise for your workload.

The architectural point: the gateway becomes a control plane. Visibility and caps are table stakes. Routing capable-enough models for routine work—while keeping frontier access when stakes and complexity demand it—is how organizations stop burning money on jagged-frontier overkill.

Put the three together

NeedBirthday Week pieceOperator question
Identity + workspaceContainers + Durable Object + snapshotsDoes each task get a named sandbox with a lifecycle you control?
Incident handoffIssues → agent automationsDoes a recurring failure arrive as a packet the agent can act on?
Spend control planeAI Gateway Auto RouterDoes model choice happen with org policy, not heroics per user?

None of this replaces ownership, evaluation, authority, or a human gate on irreversible actions. It does remove excuses that “the platform isn’t ready.” Sandbox lifecycle, structured handoff, and spend routing are now first-class products on a stack many teams already run.

If you are designing agent systems this quarter, start with those three layers on a whiteboard. Then ask which of your current tools actually provide them—and which still assume a person will glue the demo together in production.

Sources: Containers for agent sandboxes, Issues → agent, Auto Router — Cloudflare Birthday Week, September 30, 2026.