# Repository Briefing: es617/claude-replay
> Source: https://repoforai.com/repo/es617/claude-replay (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/es617/claude-replay
- **Official Docs / Website**: https://es617.dev/claude-replay/
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: JavaScript
- **License**: MIT
- **Engineering Health**: A (83/100 · Maintenance 31/35 · Adoption 15/25 · Releases 17/20 · License 20/20)
- **Latest Release**: v0.11.0 (2026-08-29) — https://github.com/es617/claude-replay/releases
- **Review Snapshot**: 2026-12-02
- **Deployment / Stack Signals**: Docker, Self-Hosted, CLI
- **Momentum**: 862 ★ total (+0 24h / +1 7d) · 69 forks
- **Topics**: `agents`, `claude-code`, `codex`, `cursor`, `gemini-cli`, `opencode`, `kimi-code`, `open-code`, `hermes-agent`
- **When to Use**: Best for: Teams turning coding-agent transcripts into navigable documentation, demos, bug reports, or training material without operating a playback backend. Skip if: You need full desktop capture, an MCP server, or an auditable record that preserves the original event stream.

## Overview
```text
### Architecture & Core Mechanics
claude-replay is a JavaScript transcript converter with a CLI, a local web editor, and a standalone browser player. Its parser handles streamed Claude Code JSONL records and groups user messages, assistant content, tool calls, and tool results into turns. Other inputs, such as Gemini CLI's single-file JSON, are normalized into the same structure. Mappings such as Codex CLI's `apply_patch` to `Edit` or `Write` let different sources reuse the player's diff views.

The renderer compresses turn data with deflate, base64-encodes it, and injects it into an HTML template. The vanilla JavaScript player uses the browser's `DecompressionStream` API rather than fetching data from a backend. There are no npm runtime dependencies; esbuild is used at build time to minify the template. Integration happens through transcript files, session IDs, or supported local stores. Despite the catalog category, this is not an MCP server.

### Key Capabilities & Differentiators
The converter handles sessions from Claude Code, Cursor, Codex CLI, Gemini CLI, OpenCode, Kimi Code, and Hermes Agent. OpenCode requires a CLI export; Hermes accepts exports or can read its local SQLite store directly on a compatible Node version. Up to 20 inputs can be combined: turns are sorted by time when all sessions have timestamps, otherwise the inputs are kept in command-line order. Cursor logs lack timestamps, so they use synthetic pacing by default.

The editor previews changes without modifying the originals and lets users select turns, edit user prompts, add chapters, and configure redaction. The player adds speed controls, collapsible tool and thinking blocks, and a file activity sidebar that jumps to the corresponding tool calls. `--pacing paced-wording` reveals prose word by word at 80–600 WPM, with a default of 238 WPM, while revealing fenced code as a single block. `extract` recovers normalized turns and bookmarks for re-export; `--serve --watch` supports live monitoring.

### Trade-offs & Limitations
Compared with a screen recording, a replay is easier to navigate by chapter, turn, or tool call, but it cannot show desktop or IDE activity absent from the transcript. Compared with raw logs, it is easier to present and embed, but normalization, editing, and synthetic timing make it a presentation artifact rather than a faithful audit record. A single HTML file removes the need for a playback backend, but larger sessions still produce more data for the browser to load, decompress, and render.

A replay is also a data disclosure surface: its embedded turns can be extracted, and hiding tool calls or thinking blocks by default is a display setting, not a privacy control. Use automatic redaction and explicit replacement rules, then inspect the exported data for sensitive source code, paths, and secrets before publication. For shared hosting, treat the editor differently from static exports: it browses mounted session directories and should not be exposed to untrusted users.

### Hardware & Deployment Guide
Install with `npm install -g claude-replay` or run with `npx claude-replay`. The baseline is Node.js 18+, and running the command without arguments starts the web editor on `127.0.0.1` by default. Use `claude-replay <path-or-session-id> -o replay.html` for CLI conversion. No model runtime, API credentials, or separate database service is needed. Once generated, the HTML can be opened locally or served as a static file without Node.js on the viewer's side.

The container uses `node:22-alpine`, installs the npm package globally, exposes port `7331`, and binds the app to `0.0.0.0`. Mount transcript directories read-only and use a separate writable output mount for CLI exports. To keep the Docker editor local, publish with `-p 127.0.0.1:7331:7331`. The release sequence added Kimi Code support in v0.9.0, word-by-word pacing in v0.10.0, and Hermes support in v0.11.0. Direct Hermes SQLite access needs Node.js 22.5+ for `node:sqlite`; exported Hermes files work on the Node.js 18+ baseline.
```

## Key Capabilities
```text
- Format adapters: Auto-detects logs or exports from Claude Code, Cursor, Codex CLI, Gemini CLI, OpenCode, Kimi Code, and Hermes Agent.
- Playback runtime: Embeds deflate-compressed, base64-encoded turn data in HTML and unpacks it with the browser's DecompressionStream API.
- Session stitching: Combines up to 20 inputs and sorts turns chronologically only when all sessions have timestamps.
- Playback timing: Supports transcript timestamps and synthetic pacing; word-by-word prose reveal is configurable from 80 to 600 WPM.
- Editing and export: The local editor previews in-memory edits without changing source logs; extract recovers normalized turns and bookmarks.
- Hermes integration: v0.11.0 reads main and per-profile SQLite databases via Node.js 22.5+ or accepts exported session files.
```

## Quick Start / Clone
```bash
npm install -g claude-replay
```
