Independent by design · no pay-to-rank placements  · How we evaluate tools →
Anclum Submit
P

pmlucero/retrace

Record, replay and diff AI agent sessions

Before you install: no copy-paste command · license Apache-2.0 · link reachable

First step: nothing runnable here yet - start from the repository: https://github.com/pmlucero/retrace

SECURITY.md ✓
View on GitHub ↗Link checked 2026-11-12 · HTTP 200 · opens the vendor's own site
Official descriptionRecord, replay and diff AI agent sessions. Swap the model, freeze the tools, see exactly where behavior diverges.
Star count
0 ★ · pmlucero/retrace · read from the GitHub search API · (checked 2026-11-13 20:00:50)
Source
read directly from its GitHub page · type: open-source project
Harvest history
first seen 2026-10-23 · last seen 2026-11-14 · seen 26× · listed by 1 sources
Score
score 103 · 1 sources · repo
FAQ (answers come from our records)
Who is it for?
We filed it under these tags: 开源项目. The tags come from the entry itself, not a taxonomy we imposed.
Who maintains it?
repository pmlucero/retrace;first catalogued 2026-10-23;last seen 2026-11-14。There is no official certification or quality rating here — we record sources and dates only.

# retrace

以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →

Record, replay and diff AI agent sessions. Swap the model, freeze the tools, see exactly where behavior diverges.
> Status: MVP in progress. The design (phase 0) is approved, and implementation has started. There is no usable release yet. See Project status.
## What is retrace
retrace is a VCR for AI agents. It is a transparent proxy, shipped as a single Go binary, that sits between your agent and:
the LLM API (Anthropic Messages API, including streaming), and
your MCP servers (Streamable HTTP).
It records every session into a cassette. You can then replay that session deterministically while changing exactly one variable:
Keep the tools frozen and swap the model to see what a different model would have done with the exact same tool results.
Keep the model's decisions and run the live tools to detect when a tool's behavior has drifted.
Diff two sessions to find the first step where they diverge: the step, the tool and the arguments.
Enabling it requires no SDK and no code changes. You point the agent's base URLs at retrace.
## How it works
Record: the proxy forwards each request upstream, streams the response back unbuffered, and enqueues it for the cassette without ever blocking the agent.
Replay: the router answers a channel from the source cassette by request fingerprint, or forwards it live, depending on the mode. Every replay writes a new cassette.
Diff: compares the trajectories of two cassettes and reports the first divergence.
The diagram source and how to regenerate it are in docs/architecture.
## What retrace is not
retrace is not an observability or tracing tool. Langfuse, LangSmith, Phoenix and OpenTelemetry already do that well. retrace is about replay and experimentation, and it is designed to be used alongside your tracing stack, not instead of it. See docs/vision.md.
## Replay modes
| Mode | Model | Tools | Use it to… |
| exact | recorded | recorded | Debug a session offline, for free, with no network. |
| swap-model | real, different model | recorded | Compare models under identical tool results. |
| live-tools | recorded | real | Detect tool drift against recorded model decisions. |
| diff | — | — | Find the first divergence between two trajectories. |
When a replay hits something that was never recorded, retrace stops by default (strict) and reports the exact divergence point. It never invents a response silently.
## CLI at a glance
> Tentative. The authoritative definition is in the spec.
sh
# Record a session (the agent reads ANTHROPICBASEURL and RETRACEMCPURL)
retrace record --session checkout --mcp orders=http://localhost:9001/mcp \
--mcp email=http://localhost:9002/mcp -- python agent.py
# Replay it offline, exactly
retrace run checkout
# Same tool results, different model
retrace run checkout --model --tools frozen
Listed badge (optional)
Copy this line into the README if you want the listing mark. Optional, and it does not affect being listed.
[![Listed on Anclum](https://anclum.com/badge/listed.svg)](https://anclum.com/en/s/pmlucero-retrace/)
Source
github · https://github.com/pmlucero/retrace
Browse by field
Open source
added
today
Security policy
the repository has SECURITY.md at its root (we checked that the file exists, not what it says)

More like this

All 1,671 →

Filed under

Every tag opens the full list for that filter. Counts are the live catalogue figures.

Browse all fields →

← Back to index