Writing
Agent Infrastructure Is Becoming a Product Category
Every team used to build the loop, the store, the sandbox. That layer is being sold rather than written.
Writing
Every team used to build the loop, the store, the sandbox. That layer is being sold rather than written.
Notes
For the first wave of agent products, infrastructure was something every team built around the model themselves. Write an agent loop. Store the messages. Execute the tools. Create a sandbox if code needs to run. Add retries when tasks fail. Build context compression when sessions become too long.
That layer is starting to become a product of its own.
OpenAI's new Agents API packages the Codex harness, long-running session management, context compaction, tool routing, subagents and execution environments behind one managed API. Anthropic has been moving in the same direction with Managed Agents. AWS now has Bedrock AgentCore, with runtime, memory, identity, gateways, observability and persistent compute designed around agents rather than ordinary request-response applications.
I think this marks a category change. We are no longer only buying access to models. We are beginning to buy infrastructure designed for software whose control flow is partly generated at runtime.
A normal model API has a simple contract: send input, receive output.
An agent task can last hours or days. It may produce files, launch processes, call dozens of tools, delegate work to subagents and cross several context windows before it reaches a result.
Keeping that system reliable requires machinery outside the model.
OpenAI says the Agents API is built around the same harness and infrastructure used by Codex. It manages the agent loop while developers choose the task, model, tools and execution environment. Sessions can continue across context limits through compaction, while subagents can keep separate contexts and work in parallel.
Those are runtime services that used to live in application code.
Earlier this year I wrote that the harness is part of capability. The same model can behave differently depending on context policy, tool design, filesystem access, memory and execution feedback.
The Agents API takes the next step: the harness itself is now something a provider can operate and update for you.
OpenAI describes the service as versioned access to an evolving Codex harness. As model behaviour changes, the provider can change context handling, tool exposure and multi-agent coordination without forcing every developer to rebuild those mechanisms.
Anthropic's Managed Agents follows a related idea by separating the session log, harness and sandbox. Harness assumptions can become stale as models improve, so stable interfaces around those layers matter.
This changes where product teams can spend their engineering effort.
Instead of implementing another generic agent loop, they can focus on the domain contract: which tools exist, what data the agent can access, what counts as completion and what actions require approval.
The second part of this category is compute.
Long-running agents need a place to work. They need filesystems, packages, processes, temporary artifacts and sometimes persistent state across sessions.
OpenAI now offers hosted sandboxes but lets developers connect their own infrastructure or use third-party sandbox providers. The hosted environment can run code, work with files and produce artifacts while the harness remains managed separately.
AWS has been building a similar layer more explicitly with Bedrock AgentCore Runtime. Its serverless option isolates sessions in dedicated microVMs. Its newer runtime instances support persistent, multi-day sessions, GPU workloads and multiple collaborating agents on shared managed compute.
This looks much closer to cloud infrastructure than to a chatbot API.
The useful abstraction is no longer simply generate(). It is closer to: run this task in this environment, under these permissions, and preserve enough state for it to finish.
The stack is becoming easier to name.
There is a model for reasoning, a harness for the agent loop and context, an execution environment for commands and artifacts, durable state, identity and permissions, interoperability through protocols such as MCP or A2A, observability, and evaluation.
AWS AgentCore is almost a map of this decomposition. Its product surface includes Runtime, Memory, Identity, Gateway and Observability rather than one monolithic "agent" endpoint. OpenAI is packaging many of the same needs around the Codex harness, hosted sandboxes and durable sessions.
When several vendors independently start naming and selling the same infrastructure concerns, I usually take that as a sign that the abstraction is becoming real.
Early web applications bundled many concerns together. As the category matured, databases, queues, identity, storage, observability and compute became separate infrastructure products. Agents appear to be going through a compressed version of that process: custom loops first, frameworks next, managed infrastructure now.
I do not expect one vendor to own the whole stack. In fact, the current architecture points in the opposite direction.
OpenAI lets developers choose their execution environment. AgentCore is framework- and model-flexible and supports MCP and A2A. Anthropic's Managed Agents separates the harness from the sandbox. These systems are beginning to define boundaries where one layer can change without replacing everything around it.
That matters because models still move faster than infrastructure.
A production agent may change from one model generation to another several times while its permissions, data sources, completion checks and execution environment remain mostly stable.
For founders, I would now make a deliberate build-versus-buy decision around the agent runtime.
If the product's value is the execution infrastructure itself, owning the harness may make sense. If the product's value is a domain workflow, rebuilding generic context compaction, sandbox lifecycle and subagent orchestration may be wasted engineering time.
The decision resembles cloud infrastructure choices more than prompt-engineering choices.
For creative production, I would keep the domain layer under my control. A Blender agent should still use project-specific validation rules; a game-production agent should still understand build states, asset ownership and publishing permissions. Generic infrastructure can handle sessions, compute and orchestration. Domain systems should own truth.
Managed infrastructure creates another kind of lock-in.
If agent quality depends heavily on one provider's harness, moving the model may not reproduce the same behaviour somewhere else. Context policies, tool-search behaviour, subagent coordination and recovery logic can become hidden parts of application performance.
OpenAI partly addresses this by basing the Agents API on the open-source Codex harness. That helps, but managed services will still differ in execution semantics and security boundaries. I would keep domain tools and data interfaces portable even when the runtime is managed.
MCP helps at the tool boundary. Standard artifact formats help at the output boundary. External evaluation suites help verify that changing runtimes did not quietly change product behaviour.
The goal should not be zero dependency. It should be knowing where the dependency lives.
I think agent infrastructure will settle into a recognizable software category in the same way model APIs did.
Teams will evaluate runtimes based on session durability, context management, sandbox options, tool interoperability, security, observability, concurrency, recovery and cost. Model support will remain one dimension rather than the whole product.
This could change AI application architecture in a useful way. The model becomes replaceable reasoning compute. The runtime manages execution. Domain services expose controlled capabilities. Evaluation decides whether the work succeeded.
Not every agent needs this machinery. A three-step workflow should remain a three-step workflow. Wrapping simple automation in a managed multi-agent runtime can create cost and complexity without improving the result.
But the moment a task can run for hours, cross context windows, manipulate files, spawn parallel work and survive infrastructure failures, we are no longer describing a prompt loop.
We are describing a workload.
And workloads eventually get infrastructure built specifically for them.
More