Skip to content
crosstrace 0.3.1

crosstrace 0.3.1

Pypi • December 3, 2026

Find the failures your AI agent hides: replay real runs with byte-level provider faults and get a verdict for each

pip install crosstrace==0.3.1

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 cut at the token limit. For every failure it tells you what your agent did , 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).

Warning: your tools really run. CrossTrace replays the model, not your code. In record , test and check , your agent and its tools run for real, many times (only MCP tools behind crosstrace mcp-wrap are answered from the recording in test , unless you turn on real tools). Use test accounts, sandboxes and throwaway data only. Never live keys or real records.

Or ask one question with one command: does your agent do the wrong thing when a is cut off or lost?

For Python 3.12+ agents it records which tool functions really ran, and with what values, with no change to your code. A tool that ran with values the healthy run never used is WRONG_ACTION .

What it found in a stock LangGraph agent: a stream cut inside a tool call made it run the tool on the truncated arguments, in 2 of 3 cut calls (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.2), open source (MIT).

Source, full README and examples:

Short version with an animated walkthrough:

Command reference:

Issues:

Release files for crosstrace 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation .

Source distribution (sdist)

Built distribution (wheel)

Total release size: 247.8 kB

Release files / crosstrace-0.3.1.tar.gz

Release files / crosstrace-0.3.1-py3-none-any.whl

Security for crosstrace 0.3.1

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.

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.

Release history Release notifications | RSS feed

Dec 3, 2026 2 release files No provenance

Dec 3, 2026 2 release files No provenance

Dec 1, 2026 2 release files No provenance

Dec 1, 2026 2 release files No provenance

Nov 29, 2026 2 release files No provenance

Nov 18, 2026 2 release files No provenance

Nov 18, 2026 2 release files No provenance