How continuum-ai-corp/orcareplay works
OrcaReplay records coding-agent runs at process, filesystem, and model-API boundaries, then stores them as traces for offline replay or model forks. The main workflow is record → trace → replay/fork → compare or inspect; other documented capabilities include TLS interception, shell/MCP/filesystem capture, trace scrubbing and sync, and a viewer. The graph keeps those domain stages distinct. Some subsystem links rely on README claims because their implementation files were not sampled.
Main entry points: record.ts Record command · main.ts Command router · server.ts Model proxy · replay.ts Replay command
Components 21
CLI workflows
- Command router
packages/cli/src/main.ts - Record command
packages/cli/src/commands/record.ts - Replay command
packages/cli/src/commands/replay.ts - Model comparison
packages/cli/src/commands/compare.ts - Inspect runs
packages/cli/src/commands/inspect.ts - Trace sync
packages/cli/src/commands/sync.ts
Run capture
- Model proxy
packages/proxy/src/server.ts - TLS interception
packages/proxy/src/intercept.ts - Agent adapters
packages/adapters/src - Shell capture
packages/shell-shim/src/install.ts - Filesystem capture
packages/fs-capture/src - MCP capture
packages/mcp-shim/src
Trace data
- Trace storage
packages/core/src - Trace redaction
packages/core/src/redaction.ts - Retrieval matching
packages/proxy/src/retrieval.ts
Replay and analysis
- Trace viewer
packages/viewer/src/render.ts
Integrations
- Provider translation
packages/providers/src - Plugin API
packages/plugin-api/src/plugins.ts
Other components
- Engineer
- Gateway service
- Coding agent
Connections 26
- Engineer → Command router: runs commands
README.md - Command router → Record command: dispatches
packages/cli/src/main.ts - Command router → Replay command: dispatches
packages/cli/src/main.ts - Command router → Model comparison: dispatches
packages/cli/src/main.ts - Command router → Inspect runs: dispatches
packages/cli/src/main.ts - Command router → Trace sync: dispatches
packages/cli/src/main.ts - Record command → Coding agent: launches unmodified
README.md - Record command → Model proxy: records exchanges
README.md - Record command → Agent adapters: configures agents
- Record command → Shell capture: captures processes
README.md - Record command → Filesystem capture: captures file changes
README.md - Record command → MCP capture: tees MCP traffic
README.md - Record command → TLS interception: enables optionally
README.md - Model proxy → Trace storage: records exchanges
packages/proxy/src/server.ts - Model proxy → Retrieval matching: matches retrievals
packages/proxy/src/server.ts - Model proxy → Provider translation: translates replies
packages/proxy/src/server.ts - Replay command → Trace storage: reads trace
packages/cli/src/commands/replay.ts - Replay command → Model proxy: starts replay proxy
packages/cli/src/commands/replay.ts - Replay command → Filesystem capture: captures fork changes
packages/cli/src/commands/replay.ts - Model comparison → Replay command: forks per model
packages/cli/src/commands/compare.ts - Model comparison → Provider translation: selects models
packages/cli/src/commands/compare.ts - Inspect runs → Trace storage: reads run data
packages/cli/src/commands/inspect.ts - Inspect runs → Trace viewer: renders run
packages/cli/src/commands/inspect.ts - Record command → Trace redaction: scrubs trace data
- Trace sync → Gateway service: uploads traces
packages/cli/src/commands/sync.ts - Plugin API → Model proxy: provides extensions