独立运营 · 不出售排名位置  · 我们怎么评估工具 →
Anclum 提交收录
P

pmlucero/retrace

Record, replay and diff AI agent sessions

装之前:没有可直接复制的命令 · 许可证 Apache-2.0 · 链接可访问

第一步:这条暂时没有可执行的下一步,可先看原仓库 https://github.com/pmlucero/retrace

SECURITY.md ✓
在 GitHub 查看 ↗链接已于 2026-11-12 核查 · HTTP 200 · 打开的是厂商自己的官网
官方说明Record, replay and diff AI agent sessions. Swap the model, freeze the tools, see exactly where behavior diverges.
★ 数取值
0 ★ · pmlucero/retrace · 取自 GitHub 搜索 API · (2026-11-13 20:00:50 核对)
来源明细
从该仓库的 GitHub 页面直接读取 · 条目类型:开源项目
收录与活跃
收录于 2026-10-23 · 最近见到 2026-11-14 · 共见到 26 次 · 被 1 个来源列出
评分构成
综合分 103 · 1 个来源 · repo
常见问题(答案都来自我们的记录)
它适合谁 / 用来做什么?
我们把它归在这些标签下: 开源项目。标签来自条目自身,不是我们强加的分类。
谁维护它、还在更新吗?
仓库 pmlucero/retrace;我们收录于 2026-10-23;最近见到 2026-11-14。这里没有"官方认证"或"质量评级"——我们只记录来源与时间。

# 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
收录徽章(可选)
想把收录标记放进 README 就复制这行,可选,不影响收录。
[![Listed on Anclum](https://anclum.com/badge/listed.svg)](https://anclum.com/zh/s/pmlucero-retrace/)
来源
github · https://github.com/pmlucero/retrace
按领域浏览
开源项目
收录于
今天
安全策略
该仓库根目录有 SECURITY.md(我们只核文件存在,未核内容)

同类推荐

全部 1,671 →

所属领域与标签

每个标签都能点进去看同类的全部条目。数字是当前库里的真实条数。

浏览全部领域 →

← 返回索引