OrcaReplay
Lets your AI agent read, replay and fork recorded coding-agent runs to find out why something went wrong.
345 stars on GitHubby Continuum-AI-CorpLicense Apache-2.0Updated 2 months ago
How to install
This MCP is local: it runs on your computer.
It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Codeβ¦). Choose your app:
Paste in the terminal:
claude mcp add orcareplay -- npx -y mcp orcareplay
Ready! Now test it
Restart the app and paste one of these requests in the chat:
Show me the timeline of my last agent run and where the test check failed.
Replay that run offline and confirm it gives the same result.
What it is
OrcaReplay records a coding agent's run as a file, then replays it exactly with no model called. You can also fork a run from any step onto a different model and compare the results. It captures model calls, tool calls, shell exit codes and file changes without changing your agent.
What it can do
orca record: record an agent runorca replay last: replay it offlineorca replay last --from 4 --model X: fork from a checkpointorca show: see the timeline of a runorca graph: see what produced whatorca compare: compare several models from one checkpointorca quickstart: try a built-in example run
When to use
- βΊWhen your agent broke something and you want to see exactly what it did.
- βΊWhen you want to test whether a different model would handle the same task better.
- βΊWhen you want to rerun a failed agent session without spending tokens.
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
observability-and-instrumentationAdds tools to monitor what the code does in production. Helps understand if something went wrong and why, making fixes easier.monte-carlo-analyze-root-causeHelps your agent find the root cause of issues using Monte Carlo analysis. It's useful when you need to understand why something went wrong with your data.debug-inferenceTeaches your agent to find out why an AI model call fails in OpenShell, covering provider setup, network permissions, and local model servers.Frequently asked questions
Is it open source?
The readme shows a license badge and the package is on npm. It is built by the OrcaRouter team.
Does replay cost tokens?
No. Replay serves everything from the trace with network egress blocked, so no model is called.
Do I have to change my agent?
No. It sets two environment variables and runs a local proxy.
Is replay a sandbox?
No. Replay still runs the recorded tool calls for real, so use your own sandbox if you need one.
Which models can I fork onto?
The default setup points at OrcaRouter, which offers Claude, GPT, Gemini, Grok, DeepSeek and Qwen models.
Can I try it without an agent?
Yes. orca quickstart builds a small project and replays a recorded fix with no model called.
If it does not work
- βΊInstall with npm i -g orcareplay; the command it gives you is orca.
- βΊIf you have no agent or key yet, run orca quickstart first.
- βΊA replay needs the recorded trace file in .orca/runs; check the run id with orca show last.
5 new skills a week. 1 minute to read.