Agent Cassette

•

Record and deterministically replay LLM HTTP/SSE streams and MCP interactions for fast, zero-cost agent testing.

Agent Cassette is a deterministic VCR cassette recorder and offline replay proxy tailored for LLM and Model Context Protocol (MCP) agent workflows. It allows developers to capture complex multi-turn interactions, chunked token streams, and tool calls from providers like OpenAI, Anthropic, and Ollama, and replay them offline in CI environments in ~0ms without consuming API credits or needing GPUs. Built-in guardrails handle secret scrubbing, SSRF protection, loop breaking, and intelligent output truncation, while dedicated MCP tools make it simple to inspect cassettes, detect drift between agent runs, and prune stale entries directly inside AI-assisted editors.

Características Principales

01Runtime guardrails including loop breaking, stdio frame isolation, and context budget truncation
02HTTP and SSE stream recording for OpenAI, Anthropic, Ollama, and compatible endpoints
03Prompt and tool-call drift analysis to inspect and compare recorded cassette runs
040 GitHub stars
05Deterministic offline replay in CI environments with ~0ms latency and no API keys required
06Automatic secret redaction for API keys, bearer tokens, and sensitive headers before saving

Casos de Uso

01Inspecting and debugging multi-turn agent interactions and tool invocations locally
02Detecting regressions and semantic drift across prompt updates and tool definitions
03Accelerating CI/CD test suites for AI agents by eliminating live API latency and credit costs