Agent Replay Lab: a VCR for TypeScript agent tool I/O
Your agent worked yesterday and failed today after a prompt or SDK change. Agent Replay Lab, by Jarvis Osorio, answers one narrow question: does the agent still take the same tool path (names, order, arguments, responses) against the same recorded tool world, offline, in CI?
How it works
You wrap each tool with wrapTool. The first run records every call into a cassette in SQLite, exportable as portable JSON. Later runs use offline mock mode: tools are stubbed from the cassette, and if a call has no recorded mock the run fails closed. A structural compare then diffs tool name, order, arguments and responses.
What it does not claim
The README is blunt about this. Mock replay stubs tools only. It does not replay model requests or decisions, agent retries, parallel scheduling, the clock or randomness. "Mock replay is not deterministic LLM verification" is the honest summary. Live-tool and live-model modes are planned for 0.2, not shipped.
It also acknowledges a crowded field of agent cassette tools and does not present fail-closed replay or redaction as unique inventions. Its pitch is a small, local, CI-friendly implementation.
Status
v0.1.0, released 15 November 2026 (Apache-2.0). Node 22+ and pnpm. Not on npm: clone, pnpm install, pnpm build, pnpm test, then run the five-minute demo in the example package.
Source: github.com/JarvisOsorio/agent-replay-lab · Docs: labs.jarvisosorio.com/agent-replay-lab · Next: Agent Outcome