# agentreplay

> Turn AI coding sessions into interactive, shareable HTML replays with diffs, cost stats, and automatic redaction.

agentreplay is a free AI agent skill on Agensi by dorywoof, in Agents & Orchestration. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [dorywoof](https://www.agensi.io/creators/dorywoof)
- Category: [Agents & Orchestration](https://www.agensi.io/skills/agents-orchestration)
- Version: 1.0
- Last updated: 2026-11-18
- Security: scan passed (2026-11-18); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/agentreplay
- Tags: ai-agents, node-js, code-review, documentation

## About this skill

Handing off a coding task to an AI agent often results in a black box of terminal output. `agentreplay` captures the entire session history and generates a portable, interactive HTML file that replays every tool call, file diff, and thought process like a video player.

### What it does
- **Interactive replay** Creates a self-contained HTML file with a video-like playback interface for agent logs.
- **Multi-agent support** Compatible with Claude Code, Aider, Cline, Roo Code, Copilot CLI, and other major agent frameworks.
- **Diff visualization** Renders clear, color-coded file diffs for every change the agent made during the session.
- **Cost tracking** Aggregates token usage and estimated costs directly into the playback header.
- **Secret redaction** Automatically strips common secret formats, emails, and home directory paths from the output.
- **Deep linking** Supports URL fragments to open the replay at specific events or view the entire log in a static mode.

### How it works
1. **Detect** The skill identifies the current agent environment and locates the active session log on disk.
2. **Execute** It runs the `@dorywoof/agentreplay` CLI via `npx` to process the raw logs into structured data.
3. **Redact** A local-first redaction engine removes sensitive information before writing to the HTML file.
4. **Deliver** The agent provides the output path along with a summary of events, tool calls, and total session cost.

### Frameworks & tools
This skill utilizes the `npx` package runner and requires Node.js 18 or newer. It interfaces with local filesystem logs from tools like Claude Code, Aider, Gemini CLI, and GitHub Copilot CLI.

### Why this beats prompting it yourself
Raw agent logs are often deeply nested JSON or proprietary formats that are difficult to parse manually. This skill automates the complex logic required to reconstruct chronological diffs and tool chains into a readable, browser-based UI.

### Use cases
- Generate shareable bug reports that show exactly how an agent failed.
- Create technical demos or tutorials of AI-driven coding workflows.
- Conduct post-mortem reviews of agent-generated code changes and costs.
- Archive session histories for compliance or team-wide code reviews.

### Known limitations
Requires Node.js 18+ installed on the host machine. Redaction is based on common patterns and is not a 100% guarantee of privacy for all possible sensitive data.

## Requires

- Node.js 18+
- @dorywoof/agentreplay

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the agentreplay skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does agentreplay differ from just reading the terminal output or log files?

It transforms messy, technical agent logs into a polished, interactive HTML "video" that replays the agent's thought process, tool calls, and code changes step-by-step.

### Which AI coding frameworks and agents are supported by this skill?

The skill is compatible with most leading AI coding tools, including Claude Code, Aider, Cline, Roo Code, and GitHub Copilot CLI, by parsing their specific log formats.

### Is my sensitive data or API keys protected when sharing these replays?

The skill uses a local-first redaction engine that automatically identifies and strips common secret formats, emails, and personal directory paths before the HTML file is generated.

### Are there any specific technical requirements or dependencies needed to run this?

Yes, you must have Node.js 18 or newer installed on your machine, as the skill utilizes the npx package runner to process logs locally.

### Does the tool provide a way to track the financial cost of an AI session?

Each replay includes a detailed header that aggregates total token usage and calculates estimated session costs, making it easy to track your AI spend per task.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
