Skip to content
EffortlessSteven
All terms

Guardrail

Shadow fork

An isolated branch or environment where agents can run commands and try changes safely without contaminating main or production credentials.

Also known as: isolated-run, run-sandbox

Definition

A shadow fork is an isolated workspace—branch, repo fork, or sandbox environment—where an agent can run commands and experiment without contaminating mainline code or production systems.

It’s a safety rail for agentic execution.

Why it matters

The dangerous part of agents isn’t “they write bad code.” It’s “they run commands in the wrong place.”

Shadow forks give you:

Common implementations

What to enforce in a shadow fork

Relationship to trust

A shadow fork doesn’t replace the trust boundary. It makes it cheaper to enforce:

Practical rule

If an agent can execute, it needs a sandbox. If it can ship, it needs two sandboxes.

Related Terms