SHA-256 CASSETTES · POLICY FIREWALL · 22 GUARD RULES · 8 MCP TOOLS

record, replay & guard every turn

the open-source black-box flight recorder, loop breaker & MCP linter — built in pure Python stdlib for deterministic CI at $0.00 spend.

Try Live Studio →
pip install agentflight-mcp
2.83 µsSpan Replay
1,676/sTools Linted
22 RulesTS + CB + Policy
8 MCPLive Tools
studio →
$ 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)
0.011 ms
sha-256 chain · secret scrubber
Live 4-Stage Preflight Pipeline & Telemetry Switchboard Select any flight scenario to trace SHA-256 hashing, secret redaction, loop breaking, and CI replay.
Inspect 22 Rules →
01 · RecordCanonical SHA-256Tamper-evident hash
02 · RedactScrub Secrets & KeysBearer, API keys masked
03 · GuardTrip Loops & SpendCB001–CB005 pre-flight
04 · ReplayDeterministic CI Run$0.00 · 353k spans/s

Doctor Demo: 4 spans chained with SHA-256 digests and replayed in 0.011 ms offline.

Deterministic Agent Engineering

Four flight recorders in one pure-stdlib core

Catch infinite loops, leaked API keys, schema ambiguities, and trajectory drift before they burn budgets.

SHA-256 Chain

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.

353,356 spans/s

$0.00 Replay & Time-Travel Forking

Replay full cassettes in microseconds or call fork_at(step) to patch a failed step and test counterfactual trajectories without re-running upstream prefixes.

CB001–PF007

Loop Breaker & Policy Firewall

Stop identical repeats, ping-pong cycles, USD overspend, SSRF metadata fetches, path traversal, destructive SQL, and raw secret exfiltration pre-execution.

TS001–TS010 + SLA

MCP Linter & Behavioral Contracts

Auto-harden flawed schemas across 10 rules and enforce declarative FlightContract tool ordering, error bounds, and budget SLAs in pytest & CI.

Flight Test Matrix

Live LLM CI vs. Hand-Rolled Mocks vs. AgentFlight

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

Works Everywhere

Drop into OpenAI, Anthropic, Pytest, Claude Code, Cursor, or OpenTelemetry pipelines — pairs cleanly with Prometheus, StackPulse, Plausible, and Vercel.


questions

How does AgentFlight replay multi-step AI agents in CI with $0 token spend?

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.

What does the core Python SDK require at runtime?

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.

Can I connect AgentFlight to Claude Code, Cursor, or CI pipelines?

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.