Urgent.News

What's breaking now, across hundreds of outlets.

More in Tech

One sandbox per run, per session or per user: isolation, cost and state trade-offs

When you put an agent's code execution in a sandbox, you also decide, often without noticing, how many pieces of work share each sandbox. One per tool call? One per conversation?

  • Per run provides strongest isolation, but incurs repeated setup costs
  • Per session keeps isolation between users, but allows state leakage between turns
  • Per user grants long-lived environment, but risks drift and secret accumulation

More from Thursday 26 November →