CrossTrace
A crash test for AI agents. CrossTrace records real runs of your agent, replays them offline with no API cost, and breaks one model call at a time the way providers and networks really break: a stream cut short, a stalled connection, a reset, a rate limit, an overloaded API, a reply cut at the token limit. For every failure it tells you what your agent did next, and the fix for the SDK it detected. It runs in CI.
Your agent needs no code changes. It only has to read its provider base URL from the environment (the OpenAI and Anthropic SDKs, LangChain, LangGraph, LiteLLM, pydantic-ai, the OpenAI Agents SDK and the Vercel AI SDK all do).
pip install crosstrace
crosstrace init --command "python agent.py {input}"
crosstrace record # runs your agent for real, once per input (uses your API key)
crosstrace test # replays with faults, offline; exit code 1 if your agent hides a failure
What it found in a stock LangGraph agent: a stream cut inside a tool call made it run the tool on the truncated arguments (the model asked for order 42, the agent looked up order 4, no error); a stalled stream froze it; a cut answer was printed as the whole answer.
It also tests MCP tool calls over stdio: when a tool succeeded but its response was lost, a retry can repeat a write (a second email, a second
form submit). CrossTrace counts writes after recovery and reports DUPLICATE.
Early (v0.1), open source (MIT).
- Source, full README and examples: https://github.com/mac146/crosstrace
- Short version with an animated walkthrough: https://crosstrace-site.vercel.app/
- Command reference: https://github.com/mac146/crosstrace/blob/main/docs/cli.md
- Issues: https://github.com/mac146/crosstrace/issues
Metadata
Release files for crosstrace 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| crosstrace-0.1.1.tar.gz | 133.4 kB | Without provenance | Details for crosstrace-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| crosstrace-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for crosstrace-0.1.1-py3-none-any.whl |
Total release size: 203.2 kB
Release files / crosstrace-0.1.1.tar.gz
| Download URL | crosstrace-0.1.1.tar.gz |
|---|---|
| Size | 133.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5edf3453fad700fae5824c73137192e4d35c7c2331b184dfdca72952c9887a3a
|
|
BLAKE2b-256 checksum How to use checksums |
85f6caeb2f2d145553a79f1bdf556f52db421557f26a664442af249c73f61934
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.4
|
Release files / crosstrace-0.1.1-py3-none-any.whl
| Download URL | crosstrace-0.1.1-py3-none-any.whl |
|---|---|
| Size | 69.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f5bbd4b023d1baa1699d35a1b508019138e71ac196a9083fd0fd53b29becb90b
|
|
BLAKE2b-256 checksum How to use checksums |
62cafcdff0a2dae8e672f2360dedfbc9f82d55a9ae260f940d343d13bb8e9153
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.4
|
Security for crosstrace 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.