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 karanb192v1.0.3MITIn 1 marketplace
Shows whether Claude Code quality is slipping by tracking your failure rate, edit churn and tokens per task by model version. Hooks record counts locally on every tool call and turn, and it says it sends nothing over the network and stores no transcript text or commands.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
2 cautions to review before installing
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.
A personal flight recorder for Claude Code quality: records your own per-session failure rate, edit churn, and tokens/task by model version, and flags real shifts when a model changes.
nerf-receipts registers on six hook events. As you work, PostToolUse and PostToolUseFailure count every tool call, its failures, and same-file edit churn; Stop and SubagentStop count turn-end events, all async, so they add no latency. At SessionEnd it parses token usage from the session transcript, finalizes four per-session signals (tool-failure rate, edit churn, turn-end count, tokens-per-completed-task), and appends one record to a JSONL ledger. At SessionStart it renders a trend card (a sparkline per metric, keyed by model id and Claude Code version) and flags meaningful shifts (>=25% relative change in the mean) that coincide with a model change. The same card is available on demand via /nerf-receipts:receipts.
/plugin marketplace add karanb192/claude-code-hooks # once per machine
/plugin install nerf-receipts@claude-code-hooks
Restart Claude Code, done. (Or from a shell: claude plugin install nerf-receipts@claude-code-hooks.)
| Event | Runs | What happens |
|---|---|---|
PostToolUse | async (zero added latency) | Counts every tool call; records failures and same-file edit churn |
PostToolUseFailure | async (zero added latency) | Counts tool-call failures and edit churn |
Stop | async (zero added latency) | Counts turn-end events |
SubagentStop | async (zero added latency) | Counts subagent turn-end events |
SessionEnd | sync | Parses transcript tokens, finalizes the session, appends the record to the ledger |
SessionStart | sync | Renders the trend card and flags model-change shifts via additionalContext |
/nerf-receipts:receipts renders the model-quality trend card on demand (failure rate, edit churn, tokens/task by model version, each with a sparkline).
No environment variables. Tuning constants live at the top of nerf-receipts.js:
MIN_SESSIONS_FOR_TREND = 6: sessions required before a trend or shift is reportedTREND_WINDOW = 200: most recent sessions the trend card considersMAX_TRANSCRIPT_LINES = 20000 and MAX_TRANSCRIPT_BYTES = 16 MiB: caps on transcript parsingState is stored as a JSONL ledger under ~/.claude/nerf-receipts/ (per-session in-flight logs under ~/.claude/nerf-receipts/sessions/); event logs go to ~/.claude/hooks-logs/<date>.jsonl.
Only counts and edited file paths are recorded: tool inputs, commands, and transcript text are never persisted, so secrets in commands cannot land in the ledger. The script makes no network calls (it requires only fs, path, and os); everything stays on your local machine.
/plugin uninstall nerf-receipts@claude-code-hooks
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 karanb192/claude-code-hooks --plugin nerf-receiptsPlugins from other owners that cover similar ground