Sandbox

An isolated environment where an agent can execute code without affecting production.

Why it matters

Sandboxes provide safety — the agent experiments freely, only verified changes go to production.

In practice

Claude Code uses git worktrees as sandboxes: isolated repo copies where only merged changes affect the main codebase.

Related terms

Back to glossary