Agent PR Replay — Git skill for Claude Code
Agent PR Replay takes merged PRs from any repository, reverse-engineers the task prompt, runs Claude Code against it, and compares what the agent did versus what humans actually shipped.
How to install Agent PR Replay
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open sshh12/agent-pr-replay and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Agent PR Replay does
Agent PR Replay takes merged PRs from any repository, reverse-engineers the task prompt, runs Claude Code against it, and compares what the agent did versus what humans actually shipped. The result is targeted, empirical guidance.
Alternatives in Git
- Analysis Claude Code — GitHub Repo stars Complete reverse engineering research and analysis of Claude Code v1.0.33 Reverse engineerin 35k ★
- Clean Worktrees (Automatic) — Automatically remove all worktrees for branches merged into master 25.5k ★
- Merger — 增量 Merge Prompt 24k ★
README
Agent PR Replay
**Discover how AI coding agents actually navigate your codebase, and where they diverge from human developers.**
The best way to improve an agent's ability to work in a codebase is to observe its default behavior, measure the gap against real human solutions, and steer it based on evidence.
Agent PR Replay takes merged PRs from any repository, reverse-engineers the task prompt, runs Claude Code against it, and compares what the agent did versus what humans actually shipped. The result is targeted, empirical guidance.
**[See example reports →](examples/)**
How It Works
flowchart TB
subgraph ground["① Ground Truth: Human PRs"]
H1["PR #1234 merged"] --> H2["Human diff:
auth.py +12 -3"]
end
subgraph replay["② Replay"]
R1["Checkout base commit"] --> R2["Reverse-engineer prompt:
'Fix login validation for empty passwords'"]
end
subgraph agent["③ Run Claude Code"]
A1["Claude explores codebase"] --> A2["Claude diff:
auth.py +28 -3, test_auth.py +45"]
end
subgraph compare["④ Compare & Synthesize"]
C1["Human: minimal fix
Claude: added tests, refactored"] --> C2["Gap: over-engineering"]
C2 --> C3["CLAUDE.md / AGENTS.md:
'Match scope of request,
don't add tests unless asked'"]
end
ground --> replay
replay --> agent
ground --> compare
agent --> compare
- Ground Truth: Start with real merged PRs as human-validated solutions
- Replay Setup: Checkout the repo at the PR's base commit, reverse-engineer a task prompt from the diff
- Run Agent: Execute Claude Code with the prompt (same starting point, same task, different solver)
- Compare: Diff what Claude changed vs what humans shipped; identify systematic gaps
- Synthesize: Generate targeted guidance (CLAUDE.md, AGENTS.md, skills) based on observed behavioral patterns
Installation
**Prerequisites:**
- Python 3.11+
- [GitHub CLI](https://cli.github.
Related Skills
CodeyBox
Runs CLI coding agents (Claude Code, Codex, Copilot, Cursor, Gemini, opencode) against a task queue. Each work
Sync Develop
Schedule sync with develop branch - adds to TODO, executes at convenient moment (after current task). Use when
Build Bundle
Build one governed template bundle end to end, from research fan-out through the four-lens review to a merged
Shipped
The record: what reached the integration branch, when, and which decision or request each change was for. Plus
Dip
Post-merge cleanup — switch to base branch, pull latest, delete the merged feature branch, restore any stash.
LightHAL
Outsource a task to a new Claude cloud session and collect its result from its claude/ branch
Related Agents
Docs Reconciler
Drift detection agent for any software project. Use every 3–5 merged PRs, before a release, or when picking up
Fire Resurrection Analyst
Reverse-engineers developer intent from messy codebases — extracts what code was TRYING to do
Lane Research
The research lane: reverse-engineers one role at a time into Role Package v2 (lens, ranked coverage matrix, co