Skip to main content
Replay lets you run agent logic without re-calling external systems by returning recorded outputs for instrumented actions.

Use replay mode

Divergence detection

In strict mode, replay raises ReplayDivergenceError when inputs don’t match what was recorded.

Per-run replay (ReplayMode.from_run_id)

SDK 0.2.0 stamps a run_id onto every ledger entry (sourced from the active ExecutionContext). ReplayMode.from_run_id("…") filters a shared ledger file down to a single run before replaying — useful when one ledger file contains many runs.
If you’d rather not share ledgers across runs at all, set a different AGENT_SENTINEL_HOME per run so each run gets its own ledger file.