These packages give you a deterministic recording and replay system for AI agent interactions. You'd adopt them to debug agent behavior without burning LLM tokens on every iteration — record a trace once, then replay it in stubbed, partial, or diff modes for zero-cost debugging and regression testing. The system is built around a trace-based data model with hierarchical spans and events, with interceptors that monkey-patch OpenAI and Anthropic SDKs transparently, so recording happens without modifying your agent code.
A convenience re-export package that provides the complete public API of the Agent Replay ecosystem—core engine, LLM interceptors, and shared types—from a single import.
A CLI tool for recording, replaying, debugging, and comparing AI agent traces, providing five subcommands (`record`, `replay`, `explore`, `diff`, `debug`) that operate on `.artrace.json` trace files.
Recording and replay engine for AI agent traces, providing a `RecordingEngine` to capture span-structured interactions with events and checkpoints, and a `ReplayEngine` to deterministically replay those traces in stubbed, live, or partial modes without consuming LLM tokens.
Provides callback handlers (`createLangChainHandler`) and state machine hooks (`createLangGraphHooks`) that record LangChain and LangGraph agent interactions into traces, returning handler objects compatible with each framework's interfaces.
Monkey-patches OpenAI and Anthropic SDK clients to transparently record all LLM API calls into Agent Replay traces, providing `OpenAIInterceptor` and `AnthropicInterceptor` classes that wrap `client.chat.completions.create` and `client.messages.create` respectively. Requires `@reaatech/agent-replay-core` for the `RecordingEngine`.
Shared types, interfaces, error classes, and configuration for the Agent Replay ecosystem, providing the canonical trace model shapes, LLM provider abstractions, and storage contracts as pure TypeScript exports with zero runtime dependencies.
Web-based trace viewer for Agent Replay that provides an interactive UI for exploring recorded agent traces, including span timelines, event inspection, checkpoint navigation, and diff visualization.