Ideas from AI Engineer talks Curated by Alex Vidal (@dobleio) and Borja Pérez (@borjaperfra) 76 ideas · 101 talks · 5 events

The Engineering Brief

Anthropic split the agent loop from its sandbox so reasoning starts before setup ends

Anthropic's Managed Agents team first ran the agent loop and tool execution in one container. Isabella Kai He says separating them let the model start reasoning while the sandbox spins up and made each side replaceable on failure; Gagan Bhat adds that it keeps credentials away from the model.

Gagan Bhat, Isabella Kai HeAnthropicAIE World's Fair 20262 min read
Watch from 11:17

Recording by AI Engineer.

The idea

The speaker’s argument, in our words.

In the first design the agent loop and its tools shared a container, so the model could not produce a first token until the container was ready, and one failing component took the whole agent down. With the loop (the brain) apart from the execution environment (the hands), the container can be set up in parallel, or skipped when a task needs no sandbox, and either side can fail and be replaced without the other. The same boundary lets customers run the sandbox in their own cloud while the loop stays hosted.

What they found

From the talk. Figures are self-reported unless stated.
  • After decoupling, time to first token was about 60% faster at the median and more than 90% faster at P95.

    Anthropic's figure for its own product; workload, baseline times and how it was measured are not given.

    Vendor claim

    23:34
  • A dead sandbox is replaced and the call retried; a dead loop rereads the durable session log and resumes where it stopped.

    Design description; no failure or recovery rates given.

    Technical recommendation

    11:53
  • Credentials are stored in a vault and decrypted only at tool execution, so the model never sees the tokens.

    Product feature described by Gagan Bhat; no detail on how tool output containing secrets is handled.

    Technical recommendation

    22:16

Why it matters

Our reading. Not said in the talk.

Teams self-hosting agents often start with everything in one container because it is simplest. This account gives a reason to separate the two early, since the latency, recovery and credential gains all follow from one boundary. Other talks reach parts of it independently. Lovable keeps its agents' history apart from the process that runs them (Fabian Hedin), and Deno injects credentials at a network proxy rather than at tool execution (Ryan Dahl).

What one could try

  • Measure how much of your agent's time to first token is spent waiting for the sandbox, and start the model call in parallel if it is significant.
  • Log every agent event to a store outside the process so a crashed loop can resume from it.
  • Inject secrets at tool execution time instead of placing them in the agent's environment.

Limitations

  • Vendor talk about Anthropic's own hosted product; the latency figures have no published method.
  • The speedup depends on how slow container setup was in the first design, which is not stated.

Original sources

This is our synthesis of the talk, checked against the transcript at the linked moments.

Related ideas