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 Adminhead Verified Orgv0.3.0In 1 marketplace
Mod that logs skill use and the skill listing per prompt to local JSONL, for finding skills that should have fired and didn't. Ships usage-report, which summarizes this log and the bash-rules log.
Code that runs inside Claude Code on every session, as you, unsandboxed.
Claude Code asks for these when you enable the plugin. Sensitive values are stored in your system keychain.
Enable the modenabled
Off: this mod writes no usage-log lines, and old usage log files, bash-rules' included, are no longer pruned. Only an exact false turns it off. Takes effect after a reload or in a new session.
booleandefault true
Log prompt textpromptText
Record each prompt's text, with common secret shapes masked. Off: only its length and any /command. The judged routing report needs the text.
1 critical to review before installing
JavaScript or TypeScript that runs inside Claude Code as you, unsandboxed. Read from its source, it sees, changes or blocks tool calls; runs programs; reads or rewrites your prompts; changes what Claude reads (system prompt, context, reminders).
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.
booleandefault true
Keep logs (days)retentionDays
Usage log files older than this are deleted at session start, bash-rules' included.
number1–3650default 30
A mod that records how skills get used, so routing problems show up in real sessions instead of guesses. With the bash-rules log, it gives the data for tuning skill descriptions, hooks and the Bash guard.
claude plugin install usage-log@adminhead --scope user
Lines go to ~/.local/state/claude-usage/usage-log-<date>.jsonl, one JSON object each, with the session ID:
kind | When | Fields |
|---|---|---|
session | session start | cwd, interactive |
prompt | each prompt you send | prompt (its number in the session), text, chars, slash (a typed /command) |
listing | with a prompt, when the skill listing changed | total and included skill counts, tokens, skills (name, source, plugin, tokens) |
skill | each time a skill loads: the Skill tool, a typed /name, or a preload into a subagent | prompt, skill |
skill-call | each Skill tool call | prompt, agentId (absent on the main loop), skill, args, isError or denied |
agent-call | each Agent tool call | prompt, agentId, type, description, model and effort as the call requested them (when set), isError or denied |
model-step | a loop's first model request, and each time its resolved model or effort changes | prompt, agentId (absent on the main loop), model, effort as they stand at usage-log's point in the hook chain (a mod beneath it may still rewrite them) |
session-end | session end | prompts |
Claude Code reports a skill when it loads, not when Claude reads its description and decides against it. That decision isn't observable. The report's --judge mode estimates it afterwards (see below).
listing shows which skills Claude could see. When included is below total, the listing budget cut some skills, and those were never visible. That's a different fix from a description that doesn't trigger.
bash-rules writes bash-rules-<date>.jsonl beside these files; its README lists the fields.
bun <plugin root>/scripts/usage-report.ts [--days 7] [--dir PATH] [--include-non-interactive]
bun <plugin root>/scripts/usage-report.ts --judge [--limit 20] [--model haiku]
By default the report counts only real sessions. A session whose first session line (resume and compact log later ones) shows interactive: false, or a working directory under the temp directory, is dropped from every section, --judge included. These are mostly claude plugin eval runs, which otherwise swamp the counts. Lines from subagents and the Bash guard log share their session's ID and follow it. A session with no session line in the window (it began before it, or in a pruned file) stays, since it can't be shown to be an eval. The header says how many sessions were excluded; --include-non-interactive counts them all.
It prints Markdown with these sections:
--judge sends each of the last --limit logged prompts with the skills listed at the time (descriptions read from installed SKILL.md files) to claude -p --model haiku. It asks which skills fit, then lists missed skills (fit but never loaded, so the description may not trigger) and unneeded ones (loaded but didn't fit). This sends your prompt text to the model and costs tokens, so it is opt-in. Its own session logs to a temporary folder, not your log. Typed /commands are skipped.
Find the plugin root with claude plugin list --json (installPath). The report needs Bun.
*_TOKEN=-style assignments, URL passwords and private keys. That catches the usual cases, not every secret, so treat the log as sensitive.retentionDays (30 by default) are deleted at session start, the bash-rules files included.promptText off to log only each prompt's length and command. The judged report then has nothing to judge.$CLAUDE_USAGE_LOG_DIR, or $XDG_STATE_HOME/claude-usage, moves the folder.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 adminhead/claude-plugins --plugin usage-log