SuperAPI AI Directory

OrcaReplay

Records a coding-agent run and replays it back to the agent with no model called, or forks a checkpoint onto other models to compare.

Open website

About this tool

Purpose

OrcaReplay addresses the debugging and reproduction needs of AI coding agents. When an agent corrupts a file at 3 a.m., fixes a failing test yet still exits 0, or behaves inexplicably, it lets you replay that run offline, precisely, and repeatably during the day, instead of poring over terminal logs and rerunning repeatedly by trial and error. Existing tools are mostly observability tools: they only tell you how much a run cost and how many tokens it used, but cannot answer questions like "why did it delete my migration file." OrcaReplay's approach is to give the run itself back to you.

Main capabilities

  • Record any coding agent: capture at the process and socket boundaries, whether or not the agent belongs to you, is editable, or holds an API key; even the Codex CLI, which logs in with a ChatGPT subscription and accesses its own backend over TLS, can be recorded. The model API is stateless, and on every turn the agent resends the entire conversation (including the previous turn's tool results), so an agent positioned in front of the model can see the complete loop: every request, every streaming response, every tool call the model emits, and every tool result the harness produces. OrcaReplay does not modify your agent; instead it starts a local proxy and sets two environment variables.
  • Byte-exact replay: during replay, the agent refuses to forward anything it cannot supply from the recording, so no model is called, no tokens are consumed, and that run prints egress=blocked. --loose can deliberately open this up: unmatched requests are answered by the provider and recorded as a major deviation, with the same line showing egress=live-on-unmatched. Replay still actually executes the tool calls in the recording; tools that open their own sockets (such as shell commands running curl, or MCP servers fetching data) are not covered by the guarantee. By default it does not go through the proxy and accesses the network as usual. Under --tls-intercept it does go through the proxy, because it sets HTTPS_PROXY for the entire child process. Replay is not a sandbox; if you need a sandbox, run it inside one yourself.
  • Checkpoint derivation and forking: checkpoints are not recorded but derived: any point where the conversation prefix is complete and the workspace has been snapshotted. Thus every fork starts from a state that can be proven to have existed. Forking takes a recorded run from a certain step and puts it on another model, with the files and conversation prefix exactly the same, and the model as the only variable.
  • Model comparison and scoring: orca compare forks a recorded run from the same checkpoint to multiple models, scoring each model with the command you specify.
  • Multi-layer capture: In addition to protocol-visible content, it also captures exit codes, real elapsed time, which stream bytes came from, and undeclared file writes; for harnesses that read structural information, it can also read the agent's description of its own structure, such as which subagent ran, who handed off to whom, whether guardrails were triggered, which graph node produced what, and which nodes never called the model at all. All of this enters the same timeline in the order it actually occurred.

How to use

It is provided by an npm package named orcareplay, which puts a command named orca into PATH. There is no separate tool called "orca", and nothing is installed into the agent. After installation, three commands let you try it quickly: one records, one replays, and the third forks from checkpoint 4 to two models. The first two involve a real agent, keys, network, and real tokens; if none of those are available, one command comes with its own material: it writes out a small project with a real bug and a recording of an agent fixing that bug, then replays it on the project without a model.

Common commands include: orca record to record; orca replay last --ui (or orca ui) to open the run as a single self-contained HTML file; orca export last --card bug.svg or -o bug.html to export a card or page; orca show to give the event order; orca graph to give causal relationships and distinguish recorded edges (written at runtime) from inferred edges (derived after the fact by rules, not written back to the trace); orca compare to compare models; orca setup to ask what the gateway actually provides and save the selected model; orca models to show recognized model prices; orca list --remote to read the run list from the gateway; orca push and orca pull to move runs between local records and gateway records.

OrcaRouter is the default gateway; one origin and one key can serve Claude, GPT, Gemini, Grok, DeepSeek, Qwen, and others, with model ids namespaced by provider (such as anthropic/claude-sonnet-4.6, openai/gpt-4o-mini), and the namespaceis used to select the wire format and is stripped before pricing. It is only the default: it can be overridden, or any gateway compatible with OpenAI's /v1/models and chat endpoints can be specified with --gateway <url>. When no gateway is configured, orca record proxies the agent's own calls directly to the provider it originally communicated with, using the agent's own key. Keys are only attached to outbound requests, and records are built from inbound requests with authentication removed, so structurally they cannot enter the trace.

When it applies

  • An agent breaks files overnight, and you reproduce it precisely offline during the day.
  • The agent exits 0 but tests still fail, and you need to see what it actually did, which checks failed, and why it still ended.
  • You want to answer "could another model get it right", forking from the same checkpoint and scoring, so that the model is the only variable and the cost comparison is meaningful.
  • You need to organize a run into a self-contained HTML or SVG card that can be attached to an issue.
  • You need to move runs between local records and gateway records, to get the side-effect view of shell, filesystem, MCP, etc., and the online view of keys, colleagues, CI jobs, routing decisions, etc.

Limitations

Recording and forking require a real agent, keys, network, and real tokens. Replay is not a sandbox, and the tool's own behavior of opening sockets is outside the scope of guarantees. Inferred edges are not facts and are not written back to the trace. SVG is not supported for upload or preview on most platforms outside GitHub issues; when a raster image is needed, .png or .gif must be used, and that path requires a browser, whereas orca itself does not depend on a browser. There is currently no information about charges, pricing, platform coverage, or specific results.