Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By rcrsrv1.8.0MITIn 1 marketplace
Reviews a Claude Code run's transcript to find where it went off track, including loops, scope creep and redundant reads. Hooks save each prompt's transcript to .claude/transcripts on every prompt, turn, session end and API failure, keeping the latest 10.
Trending plugins
7-day copy clicks
Claude hands work to one, or you mention it with @.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Captures, processes, and summarizes Claude Code run transcripts for debugging and review.
Observability. Claude Code makes it difficult to review a specific transcript for a run. Snoop groups relevant messages by user prompt in your project ('.claude/transcripts') to make post-mortem analysis easier.
Debug failed sessions. When Claude goes off track, review the transcript to find where and why.
Catch anti-patterns. The reviewer agent identifies loops, scope creep, redundant reads, and incomplete work.
ESC interrupt tracking. Partial transcripts preserve exactly where you interrupted and what was pending.
Zero friction. Runs automatically. Keeps 10 transcripts, auto-cleans older ones.
Snoop uses four Claude Code hooks:
| Hook | Trigger | Action |
|---|---|---|
UserPromptSubmit | User sends a message | Check for an ESC interrupt: a pending tool_use without tool_result, or Claude Code's [Request interrupted by user] marker. Save partial transcript with interrupt marker. |
Stop | Turn ends normally | Wait for the turn's final assistant message to reach the session file, merge any partial transcripts, write final JSONL, update latest pointer, prune old files. |
StopFailure | Turn ends in an API error (rate limit, 5xx, auth) | Same pipeline as Stop, minus the wait. Resulting transcript never has lastAssistantPreview, which is how /snoop:review identifies a failed turn. Turns that fail before any assistant output also show 0 output tokens and 0 tool calls; turns that fail after tool calls retain both. |
SessionEnd | Session closes | Capture subagent work written after the last Stop, typically a workflow still running as you close the session. Writes nothing when there is none. The transcript carries trailingCapture: true. |
Final message capture: Claude Code fires Stop before it flushes the turn's last assistant message to disk. Snoop polls for up to 1000 ms until the last conversation record is an assistant message, then captures. Without the wait, every transcript would lose its final API call: output tokens, model, and text.
Message counting: messageCount and duration cover conversation messages only: user and assistant records carrying a message body, plus Snoop's own interrupt markers. Claude Code interleaves at least sixteen bookkeeping record types into the session file (attachment, file-history-snapshot, system, queue-operation, and others). Snoop keeps an allow-list rather than naming them, so a new type never inflates the count.
Interrupt detection: When you press ESC mid-response, Claude Code writes a [Request interrupted by user] marker, and if a tool was running, the last assistant message holds a tool_use that never received a tool_result. Snoop detects either sign and inserts an interrupt marker before your next message. The marker is the only sign of an ESC during a text or thinking reply.
Subagent capture: The Task tool spawns subagents that run in separate contexts. Snoop loads their transcripts from Claude Code's internal subagents/ log directory and merges them into the main transcript, tagged with subagent: "agent-xxx". Agents spawned by the Workflow tool are captured too: they write to subagents/workflows/wf_<runId>/, so Snoop searches recursively. Each agent is named from its agent-<id>.meta.json sidecar, giving subagents: ["backend-engineer", "backend-code-reviewer"] rather than raw IDs. Workflow agents start after the Workflow call returns, so they often run between turns; each capture takes every subagent message written since the previous capture started, so that work lands in the next turn's transcript.
Workflow agents widen the gap between tokens.output and tokens.dedupedOutput, because a workflow never reports the per-agent usage aggregates that tokens.output depends on. See Output Token Fields.
File lifecycle:
.partial_{session_id}.jsonl{random_id}.jsonl (8-char ID)# From marketplace
/plugin marketplace add rcrsr/claude-plugins
/plugin install snoop@rcrsr
# Or load locally
claude --plugin-dir /path/to/snoop
Validated against Claude Code 2.1.285 (2026-09-29): hook payloads, session record types, usage fields, and agent sidecars were checked against real 2.1.285 sessions. Older versions work with fewer fields:
| Feature | Needs |
|---|---|
/snoop:review skill | 2.1.3+ |
lastAssistantPreview | 2.1.101+ |
Exact thinking tokens (tokens.thinkingOutput) | 2.1.284+ |
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground
snoop@rcrsr is listed by rcrsr/claude-plugins — review the source before installing
npx claudepluginhub rcrsr/claude-plugins --plugin snoop