Changing an agent's prompt, model or code can quietly break behaviour that worked yesterday, and one green run proves little when the model is not deterministic. Agent Retake records real agent runs as takes: every model call and every tool call, with emails, card numbers and keys redacted at record time.
After a change it replays them. In exact mode the model and the tools answer from the take, offline and free. In model-live mode the model answers live while tools answer from the recording, so a refund never runs twice: a call the take has no answer for is never given an invented result, and a write is reported as a blocked write instead of being run. A diff shows the step where the new run parted ways with the old one, in the terminal or as an HTML page.
retake test runs each take many times, checks your assertions (tools not called, call order, final answer, a Python function or a judge rubric) and compares pass rates with a stored baseline using Fisher's exact test with a Holm correction and a minimum effect. When there are too few runs to promise a drop would have been caught, it says "not enough evidence" instead of passing, and retake power shows what a suite can detect before anything is spent. A judge's agreement with people is measured with Cohen's kappa.
It works with the Anthropic and OpenAI SDKs (streams included), MCP clients and LangChain / LangGraph agents, and ships a GitHub Action that keeps one comment on the pull request up to date, plus JUnit, Markdown and a pytest plugin.