Jasmine

Guide

How to fork an AI agent's environment (snapshots for branching and RL)

Snapshot the sandbox, then create new sandboxes from the snapshot. Each copy starts with the same files, memory and running processes, from that exact moment.

How do I fork a running sandbox?

Call snapshot() to turn it into a template, then create({ template }) as many times as you want.

const snap = await sbx.snapshot();                       // memory + disk + processes
const forks = await Promise.all([1, 2, 3, 4].map(() =>
  jasmine.create({ template: snap.name })));             // four copies, same moment

How fast is it?

On aisandboxbench's harness, taking a snapshot took a median of 0.19 s and starting from one 0.10 s, both first of 11 providers measured.

What is it useful for?

Branching an agent's attempts (try three fixes from the same state and keep the best), reinforcement learning rollouts from one starting state, and skipping slow setup by snapshotting after it.

Do the copies share anything?

Only the unchanged pages and disk blocks, copy-on-write. Each copy gets its own clock and fresh randomness, so copies never repeat each other's random numbers.

Updated 2026-11-25.

Try it in a minute

Self-host it with one command, free. Jasmine Cloud, the hosted version, is in early access.