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 whitebearditv0.6.3MITIn 1 marketplace
Reconstructs an incident timeline from one trace ID using Grafana Tempo spans and Loki logs. Needs a Grafana service account token for live data; it claims to be read-only and never modifies production.
Trending plugins
7-day copy clicks
Claude hands work to one, or you mention it with @.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Claude Code asks for these when you enable the plugin. Sensitive values are stored in your system keychain.
Grafana URLgrafana_url
Your Grafana, e.g. https://your-stack.grafana.net. Leave blank if you reach Loki and Tempo directly instead, via the LOKI_URL and TEMPO_URL environment variables.
string
Loki stream selectorloki_selector
Which streams to search, e.g. {namespace="prod"}. Use labels your own Loki has; the doctor reports a sample of them. Never left as {} - the collector refuses to scan every stream.
string
Loki datasource UIDgrafana_loki_uid
UID of the Loki datasource in that Grafana. Don't know it? Leave this blank, finish the install, then ask Claude to run the trace-debug doctor: it lists every Loki and Tempo datasource with its UID.
string
Trace id field nameloki_trace_field
Only used by the metadata and json modes. Common values: trace_id, traceId, traceID.
stringdefault trace_id
Tempo datasource UIDgrafana_tempo_uid
UID of the Tempo datasource. The doctor lists this one too.
string
How logs carry the trace idloki_trace_filter
One of: substring (searches the raw line, works with any format), metadata (Loki 3 structured metadata), json (parses JSON logs first).
stringdefault substring
Evidence-first incident investigation by trace ID, for Claude Code. Give it a trace ID; it collects the trace from Grafana Tempo and the log lines from Grafana Loki, rebuilds the timeline, finds the first anomalous event, separates cause from consequence, and tells you how confident it is and what the evidence cannot show.
It is read-only. It never modifies production, dashboards, alerts or code.
Four skills, one rule - facts come from deterministic scripts, and a model runs only when you ask for an investigation:
| Skill | The question it answers | Model? |
|---|---|---|
/sherlock-holmes:trace-debug <trace-id> | Why did this request fail, hang or slow down? | Yes - the forked investigator agent |
/sherlock-holmes:error-sweep --last 2h | Were there errors in this window? Where, how many, since when? | No - a script prints the table |
/sherlock-holmes:trace-diagram <trace-id> | What did this trace do - who called whom, where did the time go? | No - a script draws it |
/sherlock-holmes:setup | How do I wire this to my Grafana? | No agent - a guided checklist |
/sherlock-holmes:trace-debug 4bf92f3577b34da6a3ce929d0e0e4736
# Trace investigation
**Trace:** ... **Services:** api -> payment-service -> customer-service
**Sources:** tempo=found loki=9 lines, window 14:02:01-14:03:03 (bounded by tempo)
**Diagram:** diagram: generated /tmp/trace-debug/<trace-id>.html (6 messages; evidence only)
## Diagnosis two to four sentences
## Timeline the lines that matter, gaps noted
## First anomalous event
## Causal chain first anomaly -> ... -> final symptom, one evidence type per link
## Probable cause labelled FACT / INFERENCE / HYPOTHESIS
## Confidence HIGH | MEDIUM | LOW, one sentence why
## Evidence
## What the evidence does not show
## Next checks at most three
The core rule: never prefer a convincing story to incomplete evidence. "There is not enough evidence to determine the root cause" is a valid answer, and the agent is built to give it.
A sweep of a time window, the map of its calls explored in the browser, the sequence diagram of the
first row's trace, then the investigation of the same trace - real output of 0.5.0 on the bundled
cascade fixture (synthetic data):

Install to finished report, recorded end to end:
trace id
|
v
collect-trace.py (deterministic, read-only, stdlib Python)
| 1. Tempo GET /api/traces/<id> -> span tree, bounds the time window
| 2. Loki query_range |= "<id>" -> log lines inside [start-pad, end+pad]
| 3. normalise, join logs<->spans, dedupe, mark truncation, derive facts
v
compact "prompt cut" + full JSON on disk
|
v
sherlock-holmes agent (forked subagent, opus)
| timeline -> first anomaly -> hypotheses -> elimination -> causal chain
v
report with confidence and gaps
The files that do the work:
| File | Role |
|---|---|
skills/trace-debug/scripts/collect-trace.py | Collects the facts of one trace. Never decides a cause. |
skills/trace-debug/scripts/sweep-errors.py | Lists the errors of a time window, grouped and ordered by a fixed rule. No trace id needed. |
skills/trace-debug/scripts/trace-diagram.py | Draws a collected trace as a sequence diagram (archify). Evidence only. |
skills/trace-debug/scripts/window-map.py | Draws every call recorded in a window's error traces as one aggregated sequence diagram. |
skills/trace-debug/SKILL.md | The investigation: how to collect, the protocol, the report format. |
skills/error-sweep/, skills/trace-diagram/, skills/setup/ | The three model-free skills around the scripts. |
agents/sherlock-holmes.md | The investigator: identity, rules, prohibitions, confidence rubric. |
Only trace-debug runs an agent. The sweep and the diagram are the same kind of tool as the
collector: deterministic, read-only, the same input gives the same output.
Why Tempo first? A trace ID carries no timestamp. Looking a trace up by ID in Tempo is indexed and cheap, and it returns the exact start and end, so the Loki query can be tight instead of scanning hours of every stream. The agent still reads logs first; only the collection order is Tempo-first. When Tempo does not have the trace (unsampled, unexported, expired), the collector says so and falls back to a lookback window, or to --around / --start --end if you know roughly when it happened.
7-day copy clicks
npx claudepluginhub whitebeardit/claude-plugins --plugin sherlock-holmesBuilt 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