Replay – 审计 AI 智能体记录中的静默提示缓存未命中
Show HN: Replay – Audit silent prompt cache misses in AI agent transcripts
我们发现了什么
Show HN:Replay – 审计 AI 智能体记录中的静默提示缓存未命中。我之所以构建 Replay,是因为当提示缓存出错时,AI 智能体的费用会飙升,而你的日志中却没有任何警告或错误。
- 来源:Hacker News(首次 2026-09-14 · 最近 2026-09-15)
- 证据等级:D · 发现产品或需求信号,暂未获得可核验的商业证据。
- 商业模式:待核验
- 主题:AI Agent
- 初筛评分:16/100 · 收录 2 次
证据,比故事更重要。
规则清洗与初筛,未经人工商业核验。原文语境、实际客户和付费情况仍需自行验证。
引用与数字披露
来源类型(原作者自述/第三方测算/媒体转引)需采集端标注,本版尚未落字段。
- 作者
- 未标注
- 抓取日期
- 来源类型
- 未标注
- 币种
- 未标注
- 口径
- 未标注
- 披露主体
- 未标注
- 披露日期
- 未标注
中文辅助译文(全文)
我创建 Replay 是因为当提示缓存失效时,AI 智能体的账单会在日志毫无报错或警告的情况下突然飙升。无论你的团队使用 Claude Code、Cursor 还是 Aider,提供商都会静默地以冷写入价格而非缓存读取价格,对你整段对话历史重新计费。Replay 是一个零遥测、零依赖的本地 Go 命令行工具,它能取证式地读取你磁盘上的日志记录,针对逆向得到的提供商缓存状态机进行回放,并精准定位缓存失效的具体轮次、原因以及精确的 token 泄露量。仓库地址:https://github.com/RedRobotKK/Replay 核心子命令(实际功能): - replay:计算本地记录中可避免的重新计费总成本。- replay diff :精确定位缓存分片的具体轮次及原因。- replay advise :根据历史记录输出结构化的提示词优化建议。- replay context :对上下文窗口中造成冗余填充的内容进行排序和隔离。- replay route --to :模拟切换模型后的成本,并计入冷启动前缀。为何选择 Go / 设计约束: 1. 零依赖:避免在本地诊断时折腾 Python 虚拟环境或 Docker 运行时。2. 100% 沙箱化:绝对不进行任何远程追踪、云账号登录或遥测。你的提示文本永远不会离开本机。3. 变异测试隔离:将 76 个真实历史缺陷冻结为可重复运行的变异体,以保障代码稳定性。它完全免费且源代码可用(BUSL 1.1 许可)。
若要检查本地开发者日志或在运行前审计安装脚本,请使用:curl -fsSL https://replay.doctor | less
译文由上游机器翻译生成,可能有误;判断请以英文原文为准。
英文原文(来源本站未改写)
I built Replay because AI agent bills spike without a single warning or error in your logs when a prompt cache breaks.Whether your team runs Claude Code, Cursor, or Aider, the provider just silently re-bills your entire conversation history at cold-write prices instead of cached read prices.Replay is a zero-telemetry, zero-dependency local Go CLI that forensically reads your on-disk log transcripts, replays them against reverse-engineered provider caching state-machines, and names the exact turn the cache broke, the cause, and the exact token leakage.
Repo: https://github.com/RedRobotKK/Replay Core Subcommands (What it actually does): - replay : Computes total avoidable re-billed cost across your local transcripts. - replay diff : Pinpoints the exact turn the cache sharded and why. - replay advise : Outputs structural prompt optimization adjustments based on your history. - replay context : Ranks and isolates exactly what content is bloat-filling your context window. - replay route --to : Simulates what switching models would cost, factoring cold-start prefixes.Why Go / Design Constraints: 1.
Zero Dependency: Avoids messing with Python virtual environments or Docker runtimes for local diagnostics. 2. 100% Sandboxed: Absolutely no remote tracking, cloud accounts, or telemetry.Your prompt text never leaves your machine. 3.Mutant Testing Isolation: Keeps 76 real past defects frozen as re-runnable mutants to enforce code stability.It's completely free and source-available (BUSL 1.1).To check your local developer logs or audit the setup script before running, use: curl -fsSL https://replay.doctor | less
这条还缺什么证据?
下面每条都由本条已有字段推出(等级、理由、商业模式、来源次数、是否演示), 本站不生成推测性结论;通用验证方法放在方法论页。
- 可核验的收入或付费证据查官网定价页与付费口径;第三方数据源(如 GetLatka)只作旁证,需标注来源与时点。
- 商业模式未定确认按席位/按用量/授权还是开源托管版收费;开源项目另查 LICENSE 与是否存在付费版。
通用验证清单(谁有这个问题/谁愿意付费/一个人能交付哪一小步)见我们的筛选方法。