Skip to main content Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Un comando directo omite el prompt de revisión. Revisa el origen antes de ejecutarlo.
npx skills add https://github.com/FlorianBruniaux/claude-code-ultimate-guide --skill sandbox-statusEl comando permanece en una sola línea. Desplázate horizontalmente para revisarlo antes de copiarlo.
¿Prefieres una copia local? Descarga los archivos que SkillsMP tiene disponibles ahora.
Ocupaciones relacionadasSOC
Basado en la clasificación ocupacional SOC
| name | sandbox-status |
| description | Display native sandbox status, configuration, and recent violations |
| effort | low |
| when_to_use | Use to check whether Claude Code sandbox mode is active and what restrictions apply. |
| disable-model-invocation | true |
Sandbox Status Command
Inspect the native Claude Code sandbox state, active configuration, and security events.
Usage
/sandbox-status
What It Does
-
Check sandbox availability
- Verify OS primitives installed (bubblewrap on Linux, Seatbelt on macOS)
- Display platform support status
-
Show active configuration
- Sandbox mode (Auto-allow vs Regular permissions)
- Filesystem policies (allowed writes, denied reads)
- Network policies (domain allowlist/denylist)
- Excluded commands
-
List recent sandbox violations
- Blocked filesystem access attempts
- Blocked network connections
- Escape hatch invocations (
dangerouslyDisableSandbox)
Implementation
#!/bin/bash
echo "=== Native Sandbox Status ==="
echo
echo "Platform:"
case "$OSTYPE" in
darwin*)
echo " ✅ macOS (Seatbelt built-in)"
;;
linux*)
if which bubblewrap >/dev/null 2>&1; then
echo " ✅ Linux (bubblewrap installed)"
bubblewrap --version 2>/dev/null | head -1
else
echo " ❌ Linux (bubblewrap NOT installed)"
echo " Install: sudo apt-get install bubblewrap socat"
fi
if which socat >/dev/null 2>&1; then
echo " ✅ socat installed"
else
echo " ❌ socat NOT installed"
fi
;;
*)
echo " ❌ Unsupported platform: $OSTYPE"
;;
esac
echo
echo "Configuration (from settings.json):"
if [ -f .claude/settings.json ]; then
CONFIG=".claude/settings.json"
elif [ -f ~/.claude/settings.json ]; then
CONFIG="~/.claude/settings.json"
CONFIG=
[ -n ];
AUTO_ALLOW=$(jq -r 2>/dev/null)
ESCAPE=$(jq -r 2>/dev/null)
WRITE_PATHS=$(jq -r 2>/dev/null | )
CRED_FILES=$(jq -r 2>/dev/null | )
STRICT=$(jq -r 2>/dev/null)
DOMAINS=$(jq -r 2>/dev/null | -3 | )
DOMAINS_COUNT=$(jq -r 2>/dev/null)
[ -n ];
EXCLUDED=$(jq -r 2>/dev/null | )
npx >/dev/null 2>&1;
Example Output
=== Native Sandbox Status ===
Platform:
✅ macOS (Seatbelt built-in)
Configuration (from settings.json):
Source: .claude/settings.json
Auto-allow: true
dangerouslyDisableSandbox allowed: false
Allowed writes: ${CWD}, /tmp
Denied credential files: ~/.ssh, ~/.aws, ~/.gnupg
Strict allowlist: not set (default false)
Allowed domains: api.anthropic.com, registry.npmjs.com, github.com... (9 total)
Excluded commands: docker, kubectl, podman
Recent sandbox violations:
ℹ️ Log inspection not yet implemented
Tip: Check Claude Code session logs for sandbox violation notifications
Open-Source Runtime:
✅ npx available - can use @anthropic-ai/sandbox-runtime
Usage: npx @anthropic-ai/sandbox-runtime <command>
Documentation:
Guide: guide/security/sandbox-native.md
Official: https://code.claude.com/docs/en/sandboxing
Runtime: https://github.com/anthropic-experimental/sandbox-runtime
Use Cases
- Pre-deployment: Verify sandbox config before running autonomous workflows
- Debugging: Investigate why certain commands are blocked
- Security audit: Review allowed domains and filesystem access
- Onboarding: Help new team members understand project sandbox policy
See Also
else
echo
" ⚠️ No settings.json found"
""
fi
if
"$CONFIG"
then
echo
" Source: $CONFIG"
'.sandbox.autoAllowBashIfSandboxed // "not set"'
"$CONFIG"
echo
" Auto-allow: $AUTO_ALLOW"
'.sandbox.allowUnsandboxedCommands // "not set"'
"$CONFIG"
echo
" dangerouslyDisableSandbox allowed: $ESCAPE"
'.sandbox.filesystem.allowWrite[]? // empty'
"$CONFIG"
tr
'\n'
', '
echo
" Allowed writes: ${WRITE_PATHS:-not set}"
'.sandbox.credentials.files[]?.path // empty'
"$CONFIG"
tr
'\n'
', '
echo
" Denied credential files: ${CRED_FILES:-not set}"
'.sandbox.network.strictAllowlist // "not set (default false)"'
"$CONFIG"
echo
" Strict allowlist: $STRICT"
'.sandbox.network.allowedDomains[]? // empty'
"$CONFIG"
head
tr
'\n'
', '
'.sandbox.network.allowedDomains | length'
"$CONFIG"
if
"$DOMAINS"
then
echo
" Allowed domains: $DOMAINS... ($DOMAINS_COUNT total)"
else
echo
" Allowed domains: not set"
fi
'.sandbox.excludedCommands[]? // empty'
"$CONFIG"
tr
'\n'
', '
echo
" Excluded commands: ${EXCLUDED:-not set}"
fi
echo
echo
"Recent sandbox violations:"
echo
" ℹ️ Log inspection not yet implemented"
echo
" Tip: Check Claude Code session logs for sandbox violation notifications"
echo
echo
"Open-Source Runtime:"
if
which
then
echo
" ✅ npx available - can use @anthropic-ai/sandbox-runtime"
echo
" Usage: npx @anthropic-ai/sandbox-runtime <command>"
else
echo
" ⚠️ npx not found (install Node.js)"
fi
echo
echo
"Documentation:"
echo
" Guide: guide/security/sandbox-native.md"
echo
" Official: https://code.claude.com/docs/en/sandboxing"
echo
" Runtime: https://github.com/anthropic-experimental/sandbox-runtime"