Skill Detail

Capture and replay Claude Code trajectories for multi-session debugging with Agent Lens

Record structured Claude Code trajectories, shadow git diffs, and replay branches when agent behavior needs forensic debugging instead of ad hoc transcript review.

Runbooks & DiagnosticsClaude Code
Runbooks & Diagnostics Claude Code Security Reviewed
⭐ 102 GitHub stars
INSTALL WITH ANY AGENT
npx skills add agentskillexchange/skills --skill capture-and-replay-claude-code-trajectories-for-multi-session-debugging-with-agent-lens Copy
Works best when you want a reusable capability, not another fragile one-off prompt.
At a glance
Tools required
Python 3.12+, uv, Agent Lens, and Claude Code access through a subscription or API key compatible with the Claude Agent SDK
Install & setup
Clone the repository, run `uv sync`, then use `harness run <config.yaml>` to execute a trajectory and `harness inspect <run>` or the local UI to review and replay results.
Author
Dreadnode
Publisher
Organization
Last updated
Apr 16, 2026
Quick brief

Use Agent Lens when the job is to run or inspect Claude Code sessions as structured trajectories, then replay or resample them to understand what went wrong. The workflow is specific: define a multi-session run in YAML, execute it through the harness, inspect ATIF outputs and file-state diffs, and replay branch points or resample turns during debugging or research.

How it works

What this skill actually does

The scope boundary is sharp enough for ASE. This is not a generic observability platform or a generic Claude product listing. It is a bounded trajectory-capture and replay workflow for Claude Code via the Claude Agent SDK, aimed at debugging, safety analysis, and behavior inspection.