synwire-sandbox
Platform-specific process sandboxing for Synwire agents. Provides process isolation, resource accounting, output capture, and LLM-accessible process management tools.
What this crate provides
ProcessRegistry-- in-memory registry of spawned processes with lifecycle tracking (Running,Exited,Signaled)ProcessRecord-- per-process metadata: PID, command, cgroup path, CPU/memory stats, captured outputCapturedOutput/OutputMode-- stdout/stderr capture with configurable modesProcessVisibilityScope-- controls which processes an agent can see and manage- Platform-adaptive isolation -- namespace containers on Linux (via OCI runtime), Seatbelt on macOS, graceful fallback elsewhere
- Resource accounting -- cgroup v2 CPU and memory stats on Linux
Platform support
| Platform | Light isolation | Strong isolation |
|---|---|---|
| Linux | cgroup v2 + AppArmor | Namespace container (runc/crun) |
| macOS | sandbox-exec Seatbelt |
Podman / Lima |
| Other | None (fallback) | None |
Quick start
[]
= "0.1"
Track processes via the registry:
use ;
async