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.
Run automatically on Claude Code events. Claude doesn't decide.
Claude Code asks for these when you enable the plugin. Sensitive values are stored in your system keychain.
1 critical · 2 cautions to review before installing
A hook runs before every tool call and can block or approve it
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
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.
Log errorsdebug_log
Append internal errors to errors.ndjson in the plugin's data directory. Hooks stay silent and non-blocking either way.
booleandefault false
Record every hook eventevent_log
Append one timestamped line per hook event to events.ndjson in the session state directory, including events this plugin does not otherwise handle. This is how you find out which events your build actually fires, and in what order.
booleandefault true
Include wall-clock timeshow_clock
Include the local clock time in injected blocks, plus the date on the first prompt of a session and whenever the day turns over.
booleandefault true
Show idle time in the transcriptvisible_idle
Also surface the idle gap as a user-visible message, not just as hidden context for Claude.
booleandefault true
Clock-pair threshold (seconds)clock_pair_seconds
Tool calls at least this long are also pinned to the wall clock as start->end, which is what lets a duration be lined up against anything else that happened.
number0–3600default 60
Report this plugin's own overheadshow_hook_overhead
Include the total time this plugin's hooks spent running during the turn, so its cost is visible rather than assumed.
booleandefault false
Session gap threshold (seconds)session_gap_seconds
On SessionStart, report how long the session was dormant only if it exceeds this. Resumed, forked and post-compaction sessions always report their source.
number0–86400default 600
Idle report threshold (seconds)idle_threshold_seconds
Report the gap since Claude's last response only if it was at least this long.
number0–3600default 10
Tool report threshold (seconds)tool_threshold_seconds
Report an individual tool call back to Claude only if it ran at least this long. 0 reports every call.
number0–3600default 10
Turn report threshold (seconds)turn_threshold_seconds
Report the previous assistant turn's duration and its tool/model breakdown only if the turn lasted at least this long.
number0–3600default 20
Scratchpad hint threshold (seconds)scratchpad_hint_seconds
After a Bash call runs at least this long, remind Claude to tee output to a log or run it in the background, because an interrupt discards the output entirely.
number0–3600default 45
Claude has no clock. Within a turn it cannot tell a 200 ms Read from a 40-minute
training run, and between turns it cannot tell whether you replied instantly or
came back the next morning. This plugin measures the three gaps that matter and
hands them back as context:
Bash.Each block is tagged by what it is, because the tag is the first thing Claude matches on and several can land in one context window:
| Tag | When | Example |
|---|---|---|
timing-prompt | every prompt | <timing-prompt>now=20:31:04 date=2026-08-15 idle=5m02s prev_turn=4m12s (tools 2m30s: Bash×3 2m10s; awaiting the user 40s; model ~1m02s)</timing-prompt> |
timing-tool | after a slow tool call | <timing-tool>Bash took 2m10s (20:28:54→20:31:04).</timing-tool> |
timing-interrupt | a call that never finished | <timing-interrupt>Bash was started 1m02s before the user's next message and never finished, so it was interrupted…</timing-interrupt> |
timing-compaction | first prompt after a compaction | <timing-compaction>compacted 9h12m ago, at 22:10 on 2026-08-15</timing-compaction> |
timing-session | a resumed, forked or dormant session | <timing-session>source=resume idle for 3d, last active 18:40 on 2026-08-13</timing-session> |
interrupt and compaction get their own tags rather than becoming fields on
timing-prompt because both change what Claude should do — retry versus
rethink, and treat a summarised context as stale — while a field in a list reads
as trivia.
Roughly 40–70 tokens per turn. Everything is thresholded, so a fast turn with fast tools injects nothing at all.
There is no ISO datetime anywhere. Almost everything here is minute- or
hour-scale, so blocks carry a duration (5m02s) plus a bare clock reading
(20:31:04), and the date only where it earns its place: the first prompt of a
session, a day rollover, and any past instant that was not today. A field that
never changes a decision is worse than absent — it teaches the reader to skim the
block that also carries the fields that do.
PreToolUse fires before the permission prompt, so a naive stopwatch reports a
one-line write to /tmp that sat unapproved for 90 seconds as a 90-second
Write. Splitting that out is harder than it looks:
PermissionRequest lands ~100 ms after PreToolUse. It marks the request, not
the answer, and (despite the docs) carries no tool_use_id here.Notification with notification_type: permission_prompt marks when the
prompt actually reached the user — deferred by the harness while you are still
typing, so it can be a minute later.So a gated call has three spans and only two known edges, and is reported as bounds rather than a number:
Write completed 1m42s after it was requested (02:11:49→02:13:30), but it was gated on
the user's approval: 54s before the prompt reached the user, then 48s covering both
their decision and the run itself. The call ran at most 48s -- likely far less, and
there is no event for the moment they approved.
Gated calls are reported regardless of the tool threshold, because the headline figure would otherwise be read as tool time. The scratchpad hint is suppressed on them for the same reason: the call was not necessarily slow.
Correlation is by time window, since neither permission event carries a
tool_use_id. With several prompts pending at once the attribution is
approximate.
No hook fires when you interrupt a tool call: Stop never arrives and no
PostToolUse lands, so the stamp written at PreToolUse is simply left behind.
By the next prompt nothing is in flight, so an orphaned stamp is an interrupted
call. What that gives is the span from the call starting to your next message —
which also contains any approval wait and the time you spent typing. It is
reported as an explicit upper bound, because the tempting reading ("you waited
60s") is wrong and is exactly the number Claude would otherwise reason from.
For the same reason, idle= is suppressed after an interrupt: it is measured
from the last Stop, which never happened, so it would span Claude's own
working time and read as you being away.
Every hook event is appended to events.ndjson in the session's state
directory, including events this plugin has no handler for:
{"at":1786833001164,"clock":"01:30:01","ev":"PreToolUse","tool":"Bash","id":"toolu_01RtXk…"}
Plugins from other owners that cover similar ground
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.
npx claudepluginhub danya02/claude-code-extras --plugin timings