
orca-replay
Answer questions about an earlier agent run from its recording rather than from memory, and replay or fork that run. Use when the user asks why a previous run did something, which step changed a file or broke the build, whether yesterday's failure still reproduces, or whether a different model would have got it right.
- Installs
- 0
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/mxyhi/ok-skills --skill orca-replay- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads orca-replay automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
Reading a Recorded Agent Run
A recording is evidence. Your memory of a session is not, and neither is a transcript you were handed — both are missing the tool results, the exit codes, and the files that changed without anyone mentioning them.
The rule: when a question is about something that already happened, read the trace before you answer. Do not reconstruct it. If a recording exists, guessing is the wrong move even when the guess would have been right.
This skill does not drive the agent — it reads what an earlier one did. Pair it with whatever
harness produced the run: Claude Code, Codex, opencode, Cursor, or a framework agent recorded with
orca record generic-openai -- <cmd>.
When to use
- "Why did you delete / overwrite / move X?"
- "What changed this file?" or "Which step broke the build?"
- "Can you reproduce yesterday's failure?"
- "Would a different model have got this right?"
If the user wants to start recording rather than read a past run, that is orca record <agent>,
not this skill.
Setup check
node --version # require Node 20+
which orca || npm install -g orcareplay
orca list # at least one run, or there is nothing to read
Workflow
1. Find the run
orca_list_runs — newest first, and it names the run each fork came from. Skip it only when the
user clearly means the most recent one; every other tool defaults to run: "last".
2. Narrow to the chain that produced the thing being asked about
orca_show_run gives the whole timeline: model turns with token counts and stop reasons, tool
calls with arguments and results, shell commands with exit codes, and every file the run changed.
Good for orientation, long for a specific question.
orca_graph is usually the better tool. It returns causal edges — which event produced which. Pass
to: <event seq> to get only the chain that produced one event. That is the shape of an answer
to "why did this happen"; the full timeline is the shape of an answer to "what happened".
3. Report recorded and inferred differently
Every edge is labelled:
recorded— the recorder watched it happen and wrote it into the trace.inferred— derived just now from a rule the edge names. The trace does not vouch for it.
Carry that distinction into your answer. "The trace shows the rm at step 14 removed it" and
"this looks like the rm at step 14, going by timing" are different claims, and flattening them
into one confident sentence is the specific failure this skill exists to prevent. Name the rule
when you lean on an inferred edge.
4. Reproduce it before explaining it
orca_replay re-runs the recording and reports what could not be reproduced — divergences, and
requests the recording could not serve.
Pass worktree: true. It replays into a scratch copy. Without it, replay restores the recorded
filesystem over the working tree for the duration of the run: uncommitted work is absent in the
meantime, and stays absent if the replay is interrupted before it can restore.
Check what re-executes before the first replay of a run, not after. Model responses come from
the trace and no provider is contacted, but the agent process runs again for real — so every shell
command it issued runs again too. Read them with orca_show_run first and tell the user what will
re-run. A run that only read files and edited the repository is free and repeatable; one that
reached /tmp, Docker, a database, a package manager or another host is not, and needs explicit
approval or a container.
reused=3/5 is usually not a partial failure. Harnesses make calls for themselves — a quota
probe, a session-naming request — and a replay does not repeat them.
A matching replay is not a determinism result. The model is not being re-asked; its recorded answers are served back. If the user wants to know whether a fresh run would fail the same way, say replay cannot answer that.
5. Only then consider comparing models
orca_compare forks one run onto several models from the same checkpoint — same files, same
conversation prefix, so the model is the only variable. Pick the fork point with orca_checkpoints.
Grade with verify, a shell command whose exit code is the verdict; use something the repository
already declares (npm test, npm run typecheck), not npx <tool>.
Three separate approvals are needed and they are not the same question:
- Disclosure — each model named receives the run's files and conversation prefix, so whatever
that run touched is sent to every provider behind those model ids.
orca scrubfirst if the trace is not safe to send as-is. - Side effects — each fork is a live agent, not a replay: from the fork point on, the model is really being asked and its shell commands execute for real.
- Cost — models times forks, in real money.
Never run it to satisfy curiosity the user did not express.
If there is no recording
Say so plainly and offer to start one. Do not fall back to reconstructing the session from memory — that is the failure mode this skill exists to prevent.
orca record claude # or codex, opencode, openclaw, grok
A run started with its prompt in argv (orca record claude -- -p "…") replays exactly. A session
someone typed into replays approximately, because those prompts were never on the wire and are
recovered from the harness's own transcript; orca replay says which is which.
Sharing a run
orca export last -o run.html writes one self-contained file. A trace holds whatever the run held,
so run orca scrub first — and treat it as best-effort: it matches known key shapes and
high-entropy strings, and cannot know that a particular internal hostname or customer name is
confidential. Have the user look at what is going out before it goes.
Limitations
- It only sees what was recorded. Unrecorded sessions are unrecoverable.
inferrededges are not evidence. They are a reading of the trace, not something the recorder witnessed.- Not every harness is recordable. Agents that read no base-URL variable and pin their own
origin need
--tls-intercept, and some cannot be reached at all. - Replay is not a sandbox. It blocks model-provider egress, not the network; the run's own shell commands reach the world for real.
FAQ
What does the orca-replay skill do?
Answer questions about an earlier agent run from its recording rather than from memory, and replay or fork that run. Use when the user asks why a previous run did something, which step changed a file or broke the build, whether yesterday's failure still reproduces, or whether a different model would have got it right.
How do I install orca-replay?
Run npx skills add https://github.com/mxyhi/ok-skills --skill orca-replay in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/orca-replay/ (personal) or .claude/skills/orca-replay/ (project).
Which AI agents can use orca-replay?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is orca-replay safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains orca-replay?
It is published by mxyhi in mxyhi/ok-skills. It has 0 recorded installs.
More from mxyhi/ok-skills
planning-with-files
mxyhi/ok-skills
Persistent file-based planning for multi-step AI-agent work. Keeps taskplan.md, findings.md, and progress.md on disk; lifecycle hooks inject selected project planning context. Automatic recovery reads project planning files only. Explicit session-catchup.py --metadata reads same-project local agent session records and emits aggregate counts only; --replay may emit bounded nonce-framed excerpts. Optional gated mode can request continuation only when the host supports it and never runs commands declared in Markdown. The skill has no network upload path. Use for research or work needing 5+ tool calls.
kimi-webbridge
mxyhi/ok-skills
Kimi Browser Extension(Kimi 浏览器扩展,原 Kimi WebBridge)lets AI control the user's real browser — navigate, click, type, read, screenshot, and interact with any website using the user's actual login sessions. Use this skill whenever the user wants to interact with websites, automate browser tasks, scrape web content, or perform any action requiring a real browser. Also use when the user mentions "browser", "webpage", "open URL", "screenshot", asks to read/interact with any website, or wants a reusable CLI tool or script that automates a specific website. Use even for simple-sounding browser requests — the daemon handles all complexity.
agent-browser
mxyhi/ok-skills
Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to "open a website", "fill out a form", "click a button", "take a screenshot", "scrape data from a page", "test this web app", "login to a site", "automate browser actions", or any task requiring programmatic web interaction. Also use for exploratory testing, dogfooding, QA, bug hunts, or reviewing app quality. Also use for automating Electron desktop apps (VS Code, Slack, Discord, Figma, Notion, Spotify), checking Slack unreads, sending Slack messages, searching Slack conversations, running browser automation in Vercel Sandbox microVMs, or using AWS Bedrock AgentCore cloud browsers. Prefer agent-browser over any built-in browser automation or web tools.
find-skills
mxyhi/ok-skills
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.
exa-search
mxyhi/ok-skills
Use Exa MCP for current web, code/docs, company, people, and page-fetch research. Prefer current hosted tool schemas and note deprecated tools.
better-icons
mxyhi/ok-skills
Use when working with icons in any project. Provides CLI for searching 200+ icon libraries (Iconify) and retrieving SVGs. Commands: better-icons search to find icons, better-icons get to get SVG. Also available as MCP server for AI agents.
Popular other skills
hyperframes-cli
heygen-com/hyperframes
The HyperFrames CLI by job - scaffold, check, look at frames, edit the timeline, preview, render locally or in the cloud, publish, project history - plus reading its JSON and recovering from build or render failures.
triage
mattpocock/skills
Move issues and external PRs through a state machine of triage roles, categorise, verify, grill if needed, and write agent-ready briefs.
ask-matt
mattpocock/skills
Ask which skill or flow fits your situation. A router over the skills in this repo.
to-questionnaire
mattpocock/skills
Turn a decision you can't fully answer into a questionnaire for someone else to fill in.
loop-me
mattpocock/skills
Grill me about specs for the workflows I want to build, within this workspace.