Tamper-Evident Cassettes
Every LLM turn and MCP call is hashed into canonical-JSON .flight.json chains with API keys scrubbed automatically before disk write.
the open-source black-box flight recorder, loop breaker & MCP linter — built in pure Python stdlib for deterministic CI at $0.00 spend.
pip install agentflight-mcp
$ agentflight demo FlightRecorder: 4 spans chained (SHA-256 · scrubbed) CassetteReplayer: 4/4 spans in 0.011 ms [$0.0000 CI] CircuitBreaker: tripped ping_pong_oscillation (A->B->A->B) ToolSmellLinter: 200 MCP tools in 119.3 ms (1,676/sec)
Doctor Demo: 4 spans chained with SHA-256 digests and replayed in 0.011 ms offline.
Catch infinite loops, leaked API keys, schema ambiguities, and trajectory drift before they burn budgets.
Every LLM turn and MCP call is hashed into canonical-JSON .flight.json chains with API keys scrubbed automatically before disk write.
Replay full cassettes in microseconds or call fork_at(step) to patch a failed step and test counterfactual trajectories without re-running upstream prefixes.
Stop identical repeats, ping-pong cycles, USD overspend, SSRF metadata fetches, path traversal, destructive SQL, and raw secret exfiltration pre-execution.
Auto-harden flawed schemas across 10 rules and enforce declarative FlightContract tool ordering, error bounds, and budget SLAs in pytest & CI.
Deterministic replay and pre-flight guards built specifically for multi-turn tool-calling agents.
| Reliability Gate | Live API CI Runs | Hand-Rolled Mocks | AgentFlight v1.6.0 |
|---|---|---|---|
| CI Latency & Token Spend | 10–45s · $0.05–$5.00 | Free but brittle | 2.83 µs/span · $0.00 |
| Tamper Evidence | None | Silent fixture drift | Canonical SHA-256 Chain |
| Ping-Pong Loop Prevention | Alerts after overspend | Not included | Pre-Flight CB001–CB005 |
| API Key Scrubbing | Manual env sanitizers | Manual redaction | Scrubbed Before Disk |
| MCP Schema Ergonomics | Manual trial & error | Not included | TS001–TS010 + Fix CLI |
| Runtime Policy & Contracts | Ad-hoc if/else checks | No SLA or SSRF blocks | PF001–PF007 + FlightContract |
| Counterfactual Forking | Re-run full workflow ($) | Single static fixture | fork_at(step) @ $0.00 prefix |
Drop into OpenAI, Anthropic, Pytest, Claude Code, Cursor, or OpenTelemetry pipelines — pairs cleanly with Prometheus, StackPulse, Plausible, and Vercel.
Inspect verified Python 3.12 benchmarks, test schemas in the interactive studio, or read all 10 TS & 5 breaker rules.
FlightRecorder captures every LLM turn, streaming delta, and MCP tool call into a canonical-JSON SHA-256 hash chain (.flight.json or .flight.jsonl) with secrets scrubbed. CassetteReplayer and the built-in pytest plugin stub matching tool calls locally in microseconds and raise TrajectoryDivergenceError when arguments drift.
Everything inside src/agentflight (recording, replay, loop circuit breaker, trajectory diffing, OpenTelemetry export, PII redaction, and the stdio MCP server) uses pure Python 3.10+ standard library only.
Yes. Run agentflight serve-mcp via uvx for local stdio workflows, connect to the hosted Streamable HTTP endpoint at https://agentflight-tau.vercel.app/mcp, or gate pull requests using agentflight ci.