Setup
Python
fork_example.py
Expected output
common), then each side’s write
lands only in its own filesystem. Fork children are full sandboxes: fork them
again, hibernate them, or expose ports — anything a created sandbox can do.
Where this is useful
- Parallel exploration — set up a repo or environment once, fork per hypothesis, keep the winner.
- Cheap retries — fork before a risky step; on failure, kill the child and fork again instead of rebuilding state.
- Evaluation — run N candidate patches against identical warm state.