# How Agent Mesh Sandboxes Your Tool Code

**URL:** <https://community.solace.com/t/how-agent-mesh-sandboxes-your-tool-code/4981>\
**Category:** Solace Agent Mesh\
**Created:** [December 3, 2026, 3:49pm UTC](https://community.solace.com/t/how-agent-mesh-sandboxes-your-tool-code/4981 "2026-12-03T15:49:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tamimi](https://yyz1.discourse-cdn.com/solace/user_avatar/community.solace.com/tamimi/32/2190_2.png) [@Tamimi](https://community.solace.com/u/Tamimi)\
**Post date:** [December 3, 2026, 3:49pm UTC](https://community.solace.com/t/how-agent-mesh-sandboxes-your-tool-code/4981/1 "2026-12-03T15:49:53Z")

</div>

Every Python or Go tool you add to Agent Mesh runs in the Secure Tool Runtime, and every call to it runs as its own process. If one call hangs or crashes, the next call starts clean.

 ![One tool call becoming one sandboxed process](https://canada1.discourse-cdn.com/solace/original/2X/6/65833807689561e88be8e166b6a9c6eb013bd4f2.png)

There are three modes:

| Mode | What you get | Use it for |
| --- | --- | --- |
| `direct` | A plain subprocess, no isolation | Local development only |
| `prlimit-only` | Resource caps, no namespaces | Hosts without bubblewrap |
| `bwrap` | Linux namespaces through bubblewrap, plus `prlimit` caps | Production on Linux |

Each tool also picks a profile and its own limits in the tool manifest:

```yaml
tools:
  heavy_pdf:
    executable: heavy_pdf
    tool_dir: heavy_pdf
    sandbox_profile: restrictive
    timeout_seconds: 120
    resource_limits:
      max_cpu_seconds: 60
      max_file_size_mb: 100
      max_processes: 32

```

`restrictive` takes the network away entirely, which is what I use for PDF and image tools. `standard` (the default) mounts the host filesystem read-only and leaves the network open. The default timeout is 300 seconds.

To try a tool with these settings, [download the Solace Agent Mesh desktop app](https://solace.com/products/agent-mesh/) and build it there before you ship it to a Linux cluster in `bwrap` mode.

Docs:

- [Configuring Tools](https://docs.solace.com/Agent-Mesh/Framework/building/tools.htm)
- [Sandbox Pod Runtimes](https://docs.solace.com/Agent-Mesh/Framework/installing/kubernetes/sandbox-pod-runtimes.htm)

Which profile do your tools run under today?
