Why agent hosting is not web hosting
A request-response web service has a shape every platform is built for: milliseconds to seconds, stateless between requests, no untrusted code execution, scale by adding identical replicas.
An agent violates all four assumptions at once:
- Duration. A research or coding agent runs for minutes to hours, not milliseconds, so anything with a short request timeout is the wrong host.
- State. The loop accumulates conversation, intermediate files and tool results, and it matters that they persist for the session and vanish after it.
- Untrusted execution. If the agent writes and runs code or drives a browser, the platform is executing something a model just produced.
- Bursty, uneven load. Sessions are long and idle much of the time, so per-replica sizing is wasteful, and per-request autoscaling does not map onto a stateful conversation.
Key idea: the hard part of agent infrastructure is not running the loop, which is a while-loop around a model call. It is running many concurrent loops that hold state and execute untrusted code, without any of them being able to observe or affect another.
AgentCore Runtime is AWS's managed answer to exactly that shape, and the guarantee it sells is isolation.

