Sandbox

From vinnie357/claude-skills · View interactive version

Sandbox is an AI agent skill from the GitHub repository vinnie357/claude-skills. Index for agent-sandboxing approaches — routes to the right sub-skill based on host OS, isolation tier, and deployment scale. Use when picking a sandboxing strategy for an AI coding agent, comparing kernel-level isolation (gVisor) vs microVM isolation (Kata, Apple Container, Docker), choosing betwee

How to use this skill

Skill file

sandbox

Entry-point index for the agent-sandboxing plugin. Load this skill first when the task is "give me an isolated environment for an AI agent" and you don't yet know which substrate fits. The body routes to the right deeper skill via decision tree + one-line index.

The plugin covers the Kubernetes-orchestrated path (multi-pod, per-session lifecycle, controller-managed). For the single-host CLI path (one operator, one machine, Docker microVMs), the sibling CODE0 plugin is the right tool — same mental goal, different shape.

Decision tree

Need to sandbox an AI agent
│
├─ Single host, macOS, TRUSTED workload needing a Linux dev environment?
│   └─→ /core:container                   (container machine, 1.0.0+ — host home mounted; NOT agent isolation)
│
├─ Single host, no Kubernetes?
│   └─→ /sbx:sbx                          (Docker microVMs, sbx CLI)
│
└─ Kubernetes (kind / GKE / kina)?
    │
    ├─ Host OS = macOS Apple Silicon?
    │   └─→ /agent-sandboxing:kina-microvm      (Apple Container microVM nodes)
    │
    ├─ Host OS = Linux + want microVM isolation?
    │   └─→ /agent-sandboxing:kata-on-kind      (Kata Containers on kind)
    │
    ├─ Production GKE + microVM isolation?
    │   └─→ /agent-sandboxing:kata-on-gke       (self-managed Kata on Ubuntu N2)
    │
    └─ Production GKE + userspace kernel isolation?
        └─→ /agent-sandboxing:k8s-agent-sandbox (covers GKE managed Agent Sandbox = gVisor)

For every k8s path: also load /agent-sandboxing:k8s-agent-sandbox (controller + CRDs + lifecycle) and /agent-sandboxing:claude-code-on-sandbox (workload packaging).

Isolation tier comparison

| Tier | Mechanism | Where it runs | Plugin skill |

|---|---|---|---|

| Hardware microVM (KVM) | Kata Containers | Linux + nested virt | kata-on-kind, kata-on-gke |

| Hardware microVM (Virtualization.framework) | Apple Container, node-level | macOS Apple Silicon | kina-microvm |

| Hardware microVM (KVM/Docker) | sbx CLI, single-host | Linux + macOS | /sbx:sbx (sibling plugin) |

| Hardware microVM, host-integrated | Apple Container machine (1.0.0+) | macOS Apple Silicon | /core:container — dev convenience tier, NOT isolation (host home mounted) |

| Userspace kernel | gVisor | Anywhere (no nested virt needed) | k8s-agent-sandbox (gVisor variant) |

| Process-level (none) | runc default | Anywhere | Not recommended for untrusted agents |

Skills in this plugin (one-line index)

Load the index entry first (you're here). Load deeper skills only as needed.

Slash commands (one-line index)

These wrap multi-step kubectl + docker flows. Load sandbox (this) first to know which to invoke.

Sibling: `/sbx:sbx` (Docker single-host microVMs)

When the use case is "one operator, one Mac, one running agent" rather than "cluster of per-session pods," /sbx:sbx is simpler. It runs AI agents in Docker microVMs with a credential-injection proxy and deny-by-default networking — all without Kubernetes. The mental model:

Both isolate untrusted agent code from the host. Both are valid; pick the one whose lifecycle matches the workflow.

Substrate-specific files in this plugin

Anti-fabrication

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.