Making Claude Code more secure and autonomous with sandboxing
read at source ↗ www.anthropic.com
Making Claude Code more secure and autonomous with sandboxing
Source: Anthropic Engineering Date: 2025-10-20 URL: https://www.anthropic.com/engineering/claude-code-sandboxing
Summary
Anthropic added OS-level sandboxing to Claude Code using Linux bubblewrap and MacOS seatbelt, enforcing both filesystem and network isolation for all spawned subprocesses. Git operations route through a proxy that validates credentials and branch destinations, keeping tokens outside the sandbox. Internal testing showed the approach reduced permission prompts by 84%. Anthropic open-sourced the sandbox runtime.
Implications
The Claude Code security thread. The 84% permission prompt reduction is the user-experience framing, but the security design is the substance: dual isolation (filesystem + network) with credential externalization. This directly matches the security model described in the managed-agents post (credentials external to sandboxes). These posts now form a coherent security architecture story.
Auto mode enablement. Reduced permission prompts are the precondition for practical autonomous operation — Claude Code’s auto mode relies on this. The security/autonomy trade-off is resolved here by making the isolation tight enough that broad permissions within the sandbox are acceptable.
Open-source sandbox runtime. Publishing the runtime is a platform move: Anthropic is trying to establish their sandboxing approach as the community standard for agentic tool execution. This is directly relevant to shops building self-hosted Claude Code pipelines or similar agentic runtimes.