> ## Documentation Index
> Fetch the complete documentation index at: https://trytilde.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Sandbox reuse modes

> Choose which invocations share a sandbox: one per session, per agent, per agent and person, one for every agent, or one per person. Compare isolation, concurrency, warm state, and cost.

A blueprint's reuse mode decides which invocations share a sandbox. On each invocation, Tilde finds the sandbox the mode keys it to, and launches one if there is none.

| Mode | One sandbox per | Agents on the same blueprint |
| - | - | - |
| **Per session** (default) | Agent and conversation thread | Separate sandboxes |
| **Per agent** | Agent | Separate sandboxes |
| **Per agent and person** | Agent and person | Separate sandboxes |
| **Shared by all agents** | Blueprint | One sandbox for all of them |
| **Shared per person** | Person | One per person, shared across agents |

## How Tilde finds the person

The person-keyed modes, **Per agent and person** and **Shared per person**, find the person exactly as [personal tools](https://trytilde.ai/docs/tools/overview.md#control-tool-access) do. An unverified channel identity does not count. One person's linked identities, such as their email address and phone number, share a sandbox.

When an invocation acts for no person, Tilde falls back to **Per session** for it.

## Tradeoffs

| Mode | Isolation | Concurrency | Warm state and startup | Cost | Typical use |
| - | - | - | - | - | - |
| **Per session** | Strongest. Nothing crosses conversations. | One conversation per filesystem. | Each new conversation starts cold. | Highest: one VM per active conversation. | Agents that serve many users, or untrusted input. |
| **Per agent** | Every conversation of the agent shares files. | All the agent's conversations share one filesystem. | Warm after the first run. | One VM per agent. | A single-tenant agent working on one codebase. |
| **Per agent and person** | A person's conversations with the agent share files. Other people stay apart. | One person's conversations share a filesystem. | Warm for returning people. | One VM per agent and person. | A personal coding agent that should remember a person's checkout. |
| **Shared by all agents** | Weakest. Every conversation of every agent shares files. | Everything shares one filesystem. | Always warm while in use. | Lowest: one VM. | A team of agents that hand work to each other in one workspace. |
| **Shared per person** | A person's conversations with any agent share files. | One person's work, across agents, shares a filesystem. | Warm for returning people. | One VM per person. | Several agents that serve one person, such as a planner and a coder. |

> [!WARNING]
>
> Every mode except **Per session** lets data written in one conversation be read in others. With **Per agent** and **Shared by all agents**, files from one user's session are visible to every other user's sessions. The shared modes also let data cross agents. Use them only when everyone who can reach those agents may see each other's work.

### Concurrency on one filesystem

In every mode but **Per session**, invocations can run at the same time in one sandbox. They exec in one filesystem, and can clobber each other's working tree. For example, two runs that check out different branches in one directory will break each other.

Instruct the agent to give each conversation its own directory, such as a Git worktree named after the thread.

### Sleep in shared sandboxes

A shared sandbox sleeps only when it is idle across every conversation, person, and agent that uses it.

### Changing the mode

Changing a blueprint's reuse mode terminates its sandboxes. Their files are lost. The next invocations launch new sandboxes under the new mode.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.