---
title: "Discussion on \"One sandbox per run, per session or per user: isolation, cost and state trade-offs\" | Hashnode"
description: "Discussion on \"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? One per user, kept fo"
url: "https://hashnode.com/posts/one-sandbox-per-run-per-session-or-per-user-isolation-cost-and-state-trade-offs/6b0785861a6a39551aefd8c2"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [One sandbox per run, per session or per user: isolation, cost and state trade-offs](https://sandscale.hashnode.dev/one-sandbox-per-run-per-session-or-per-user-isolation-cost-and-state-trade-offs?utm_source=hashnode&utm_medium=feed)

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? One per user, kept fo

26m ago · 5 min read · sandscale.hashnode.dev  
Read the article

-   [#sandbox](https://hashnode.com/tag/sandbox)
-   [#ai-agents](https://hashnode.com/tag/ai-agents)
-   [#isolation](https://hashnode.com/tag/isolation)
-   [#architecture](https://hashnode.com/tag/architecture)

## Written by

[Sandscale](https://hashnode.com/@sandscale)

@sandscale

  
[View profile](https://hashnode.com/@sandscale)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
