Show HN: Time Machine – 通过分支和重放任意步骤来调试AI代理

Time Machine 是一个用于AI代理的调试和回放平台,允许用户在代理执行失败时,从上一步分支并仅回放下游步骤,从而节省重复运行成本。该工具旨在优化生产环境中复杂工作流的调试效率,减少因错误调用工具导致的资源浪费。

2作者: deva00大约 2 小时前
嘿,HN!我们正在构建Time Machine,这是一个用于AI代理的调试和回放平台。我们非常希望得到你们的反馈。<p>这是一个演示: <a href="https:&#x2F;&#x2F;youtu.be&#x2F;KyOP9BY0WiY" rel="nofollow">https:&#x2F;&#x2F;youtu.be&#x2F;KyOP9BY0WiY</a> 网站链接: <a href="https:&#x2F;&#x2F;timemachinesdk.dev&#x2F;" rel="nofollow">https:&#x2F;&#x2F;timemachinesdk.dev&#x2F;</a><p>我们最初要解决的问题是:想象一下,一个代理运行到第10步的第9步时,它错误地调用了工具,向你的数据库写入了垃圾数据并崩溃了。你修改提示,重新运行,$1.50就这样没了。午饭前这种情况还会发生六次。一旦你在生产环境中运行非平凡的工作流,团队每天花费$100+在重新运行上是常态。<p>我们围绕一个想法构建了Time Machine:当代理在第9步失败时,你应该能够从第8步分支出来,并仅回放下游的内容。<p>实现方式:插入TypeScript SDK(或者使用LangChain回调适配器实现零代码集成...
查看原文
Hey HN! We are building Time Machine, a debugging and replay platform for AI agents. We would love your feedback.<p>Here&#x27;s a demo: <a href="https:&#x2F;&#x2F;youtu.be&#x2F;KyOP9BY0WiY" rel="nofollow">https:&#x2F;&#x2F;youtu.be&#x2F;KyOP9BY0WiY</a> Website Link: <a href="https:&#x2F;&#x2F;timemachinesdk.dev&#x2F;" rel="nofollow">https:&#x2F;&#x2F;timemachinesdk.dev&#x2F;</a><p>Here is the initial problem we are trying to solve: Imagine it&#x27;s Step 9 of 10 of an agent running, and it hallucinated a tool call, wrote garbage to your database, and crashed. You fix the prompt. You re-run. $1.50 gone. This happens six more times before lunch. Teams burning $100+ per day on re-runs is normal once you are running non-trivial workflows in production.<p>We built Time Machine around one idea: when an agent fails at step 9, you should be able to fork from step 8 and replay only what is downstream.<p>How: Drop in the TypeScript SDK (or the LangChain callback adapter for zero-code integration) and every step gets recorded — inputs, outputs, LLM calls, tool invocations, full state — persisted to PostgreSQL. The dashboard gives you a timeline and DAG of the execution. At any point, you can fork, change something (swap a model, edit a prompt, tweak an input), replay only the downstream steps, and diff the two runs side by side.<p>The internal framing we keep coming back to: Git for agent execution. Checkpoint, branch, diff, replay.<p>What we already see out there with some overlap: LangSmith, Helicone, and LangFuse. They are good tools, but mainly loggers. Observability is necessary but not sufficient when what you actually need is to change something and see what happens, which is what we enable you to do easily.<p>We also ship a native Claude Code integration. Install the hook bridge once, and every Claude Code session is automatically captured as a Time Machine execution: tool calls, token counts, file edits, git context, subagent trees. You get full observability over your Claude Code workflows in the same dashboard, with the same timeline and fork tooling, without any manual instrumentation. In addition to this, we are actively working on enabling Time Machine directly from your terminal, so you can ask Claude Code to pull a failed run, inspect the trace, and suggest a fix without leaving your editor. The intent is that the debugging loop stays where the development loop already lives.<p>We are also building an eval platform on the same infrastructure. Production runs become test cases automatically. You can run assertions (contains, regex, cosine similarity, LLM-as-judge, latency, and cost constraints) against replayed outputs and plug it into CI&#x2F;CD so prompt changes get tested before they ship.<p>Current status: MVP is live - execution capture, session replay, fork&#x2F;replay, and Claude Code integration. The Eval platform is shipping now. The SDK is zero-dependency.<p>Looking for teams actively debugging production agents who want to be early design partners. Happy to go deeper if this is a problem you are dealing with at scale. We would love for people to get their hands on this, test against real agent runs and let us know what can actually help us to take out the manual infra and Agent management overhead away from your hands - so you can focus on iterating and getting to value quickly.