Sandboxes
Runs, replay and compare
Forecast a run before you start it, watch it live, replay every step and every agent turn afterwards, compare two runs side by side, and go back to any earlier version of a flow.
Before you run: Simulate
Simulate plays your flow many times on paper, using your limits, your step settings and real prices, and shows what a real run is likely to do. It takes a second or two and costs nothing.
| You see | What it means |
|---|---|
| Typical | What half of runs come in under: sandbox cost, time and loops. |
| 1 in 10 | A bad day: one run in ten costs or takes more than this. |
| Claude, billed to your key | The likely AI cost, for flows with AI steps. |
| Finish, fail, stopped at a limit | How runs tend to end. If many stop at a limit, it says which one. |
| Claude, billed to your key | For flows with AI steps: what Claude typically costs, and for 1 run in 10. |
| At most | The most a run can cost with your limits, and which limit stops it there. |
| Policy | Steps your policy will likely make wait or block, marked Policy on the canvas. |
The first forecasts use the hints under each step's Advanced settings (Usually takes and Passes, %). Once a flow has run a few times, the forecast learns each step's real time and pass rate from your own runs. After you change the flow, the forecast says it's out of date until you simulate again.
During a run
Press Run (or ⌘ Enter). The run starts a fresh sandbox from the flow's template, and:
- Each box lights up as its step runs, then shows whether it passed or failed. The arrow the run took is highlighted, so you can watch it go round a loop.
- The timeline beside the canvas lists each step as it happens, with its message and how long it took. Loops are grouped as First pass, Loop 1, Loop 2 and so on.
- A step waiting for a person shows Needs approval, with a link to review it.
- Stop ends the run straight away. Its sandboxes are cleaned up as usual.
You can close the tab. The run carries on, and its limits still apply. Come back to Agent Playground and open it from Recent runs.
Replay
Every run is kept, with each step's output. Open a run from Recent runs on the Agent Playground page, or from Past runs of this flow in the builder, then choose Open full run for the whole page.
For every step you see its status, its message, its full output, how long it took and what it cost. For an AI step, also its tokens and AI cost, and for an AI choice, the choice it made.
An agent, turn by turn
Open an Agent step to replay it one turn at a time:
- what Claude said at each turn,
- each command it ran, with its exit code and the end of its output,
- any command that waited for a person or was refused, and which rule held it,
- the tokens and cost of each turn,
- and the final Check that it worked, with its output.
It's the quickest way to see why an agent went wrong: you can read exactly where it misunderstood the code or gave up.
For Agents together, each turn is labeled with the member that took it.
Against the forecast
A finished run shows the forecast it started with next to what actually happened: cost, time and loops. If runs keep costing more than forecast, the step hints are probably too hopeful, and the forecast will adjust as the flow runs more.
Start a sandbox from any step
Checkpoints are kept for 24 hours after a run. Open any step that saved one and start a new sandbox from it, to look at the files as they were at that moment or to carry on by hand.
Compare two runs
Open a run and choose Compare with the run before this one, or Compare with another run to pick any two. The comparison puts Run A and Run B side by side:
- Summary: how each run ended, its cost, time and loops, and the difference.
- The graph changed: steps added and removed between the two runs, if the flow was edited in between.
- Each step: how many times it ran, how long it took and what it cost in each run.
- Output, step by step: each step's output in both runs, with the lines that changed marked, like a diff.
Use it after you change a prompt, a model or a limit, to see whether the change helped. A common habit: save a version, change one thing, run, and compare with the run before.
History and versions
Every flow keeps its history. Open History in the builder to see the versions, newest first.
A version is saved:
- when the flow is made,
- each time you run it after changing it,
- and whenever you choose Save version, with a note like "before the retry change".
The newest 50 are kept. Restore copies an old version back into the flow and saves that as a new version, so you never lose the one you had. Every run remembers which version it played, so a comparison of two runs always shows the flows as they were.
Duplicate and delete
On the Agent Playground page, each flow under Your flows has Duplicate (a copy to change without touching the original) and delete. Deleting a flow removes it and its versions. Its past runs stay in Recent runs.