CrossTrace replays real runs of your agent and breaks one model or tool call at a time, the way providers and networks really break. Then it shows what your agent did next.
Your agent only reads its model address from the environment, so its real SDK code and its real error handling run exactly as in production.
Run your agent once. Every request and the provider’s exact response bytes are saved. Keys and headers never are.
Offline and free. The run must replay exactly before any fault, or CrossTrace names the field to mask.
One call at a time: cut streams, stalls, resets, 429s, a lost tool reply. At the byte level, at every call.
Did it retry, stop with an error, or carry on? For Python agents it also records which tool code really ran. Facts, not a model’s opinion.
data: {"tool_calls":[{"name":"get_order"}]} data: {"arguments": "{\"order_id\": "} data: {"arguments": "4 × connection cut data: {"arguments": "2}"} data: {"finish_reason": "tool_calls"} data: [DONE]
× tool_args_cut WRONG_ACTION 2/3 ran get_order(order_id=4) × stream_stall HANG 5/5 × stream_cut_clean PARTIAL 2/5 ✓ server_error RECOVERED 5/5 ✓ rate_limit RECOVERED 5/5 ✓ context_length SURFACED 5/5 9 failing trials · exit code 1
For MCP servers over stdio or HTTP, CrossTrace loses the reply to one tool call and counts every write the agent makes afterwards. In a test run the real server is never called.
| Fault | What your agent sees | Verdict that fails the build |
|---|---|---|
| stream_cut_clean | The stream ends early with no final event | PARTIAL a cut answer printed as complete |
| tool_args_cut | A tool call’s JSON cut halfway | WRONG_ACTION a tool really ran with a cut value |
| stream_stall | Connection open, nothing arrives | HANG never finished in the budget |
| rate_limit, overloaded | 429 with Retry-After, or an overloaded API | IGNORED_RETRY_AFTERRETRY_STORM |
| lost_response (MCP) | A tool ran, but its reply never arrives | DUPLICATE a write that ran twice |
A verdict fails a build only when it rests on something measured. Where CrossTrace can only guess intent from a request’s shape, it shows the facts for review.
| Framework | Cut stream or tool call | Stalled response |
|---|---|---|
| LangGraph | ran tools with cut values (2 of 3) | hangs |
| OpenAI Agents SDK | raised an error | hangs |
| pydantic-ai | refused the cut call and told the model; printed a cut answer as complete | hangs |
| CrewAI | printed a cut answer as complete | hangs unless you set a timeout |
Each recorded once on a real model, then replayed offline. Every timeout fix was run, not assumed.
Only to record the one healthy run. Replay is offline and free, and CI needs no key. An optional --live flag lets a real model answer an agent’s re-prompt with your own key; the agent never sees it.
No. It judges how your agent reacts to a failure: retry, stop with an error, or carry on. It uses no LLM judge, so the same trial gives the same verdict every time.
Any agent that reads OPENAI_BASE_URL or ANTHROPIC_BASE_URL, which the major SDKs and frameworks do. It does not yet cover agents with a hard-coded https address or that go through an HTTPS proxy.
In a test run the real MCP server is never started or called, so a test can’t cause a side effect. A tool that ran twice is reported as a DUPLICATE. For proof against a real server, opt in with --real-tools and use a sandbox.
Nothing. It’s MIT-licensed and runs on your machine and in your CI. It’s v0.1, built by one person, and wrong verdicts are the most useful thing you can report.
The example agent ships with a recording, so you can see the whole thing without a key.