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 melodic-software Verified Orgv0.1.11MITIn 1 marketplace
Records hook runs, session events and skill use so you can analyze them later with harness-ops. Off by default: enable it, then start a new session. Requires node and jq on PATH.
Trending plugins
7-day copy clicks
Run automatically on Claude Code events. Claude doesn't decide.
1 critical · 2 cautions to review before installing
JavaScript or TypeScript that runs inside Claude Code as you, unsandboxed. Read from its source, it runs programs; reads environment variables (CLAUDE_PROJECT_DIR).
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.
Claude Code asks for these when you enable the plugin. Sensitive values are stored in your system keychain.
Skill-usage log directoryskill_usage_dir
Relative directory where the skill-usage-audit hooks write skill-usage.jsonl, under the skill_usage_scope root (repo: the project root; user: $HOME). Leave unset to use .claude/observability. The data-dir scope ignores it. Absolute, drive, UNC, traversal, and escaping-symlink paths are invalid.
string
Skill-usage log scopeskill_usage_scope
Where the skill-usage store lives. repo (default) keeps it in the project tree, out of git status via a machine-local .git/info/exclude entry; user puts the skill_usage_dir subpath under $HOME as one cross-repo store; data-dir uses ${CLAUDE_PLUGIN_DATA}/skill-usage/<repo-slug>.
One of repo, user, data-dir
stringdefault repo
Hook stdin read timeout (seconds)stdin_read_timeout
Idle bound on reading the hook payload from stdin: how long the pipe may go silent before the hook gives up and fails open. Default 2.
numbermin 1default 2
Hook events file size cap (bytes)hook_events_max_bytes
Size at which the telemetry sink rotates the shared hook-events.jsonl to hook-events.jsonl.1, replacing any older .1, so the pair stays near twice this value. Default 10485760. Applies whether or not the per-session event log is on.
numbermin 1default 10485760
Hook log root directorysession_event_log_dir
Project-relative directory holding the per-session hook event log (sessions/) and the telemetry sink's hook-events.jsonl. Default .observability/claude. Absolute, drive, UNC, traversal and escaping paths are invalid, and the project root itself is refused.
stringdefault .observability/claude
Session file retention (days)session_log_keep_days
At SessionEnd, keeps every session file younger than N days regardless of count; default 14. A file is kept when it is younger than N days OR among the newest session_log_keep_sessions.
numbermin 1default 14
Skill-usage file size cap (bytes)skill_usage_max_bytes
Size at which a skill-usage producer rotates skill-usage.jsonl to skill-usage.jsonl.1, replacing any older .1, so the pair stays near twice this value. Default 10485760.
numbermin 1default 10485760
API-error-audit hookapi_error_audit_enabled
Emits turn-failure telemetry on API errors. On by default.
booleandefault true
Git exclude for the repo-scope storeskill_usage_git_exclude
Adds the repo-scope store's directory to .git/info/exclude when it sits inside a git work tree, so git status stays clean. On by default; machine-local, and never touches .gitignore or tracked files. Set false if your team deliberately commits the telemetry.
booleandefault true
Pre-compact-audit hookpre_compact_audit_enabled
Emits telemetry on context-compaction events. On by default.
booleandefault true
Session-event-log content fieldssession_event_log_content
Also records each event's top-level content strings (prompt, last_assistant_message, message, task text, error and the like) in the session event log; content the 64 KB read cap cuts is marked truncated. Off by default; has no effect while session_event_log_enabled is off.
booleandefault false
Session-event-log hooksession_event_log_enabled
Appends a JSON line to <session_event_log_dir>/sessions/<session_id>.jsonl per observable event in an enabled category. Runs in the hooks module, so it needs mods on. Off (the default), no event starts a process; on, each logged event starts one. It also gates SessionEnd retention.
booleandefault false
Session files to keepsession_log_keep_sessions
At SessionEnd, keeps the newest N session files regardless of age; default 30. A file is kept when it is among the newest N OR younger than session_log_keep_days.
numbermin 1default 30
Skill-usage-audit hookskill_usage_audit_enabled
Emits telemetry on skill usage, on by default. Shared by both skill-usage audit hooks (the Skill-tool and slash-command expansion paths), and also gates the shared skill-usage.jsonl store.
booleandefault true
Tool-failure-audit hooktool_failure_audit_enabled
Emits telemetry on Write, Edit, and Bash tool failures. On by default.
booleandefault true
Config-change-audit hookconfig_change_audit_enabled
Emits telemetry on config-source mutations. On by default.
booleandefault true
Session-event-log categoriessession_event_log_categories
Comma-separated event categories to record (session, prompt, tool, permission, agent, task, turn, config, worktree, compaction, model, mcp, display, other). Empty, the default, records every observable category. An unlisted category starts no process; SessionEnd retention runs regardless.
stringdefault
Pre-prune commandsession_log_pre_prune_command
Command run detached at SessionEnd with one argument: a directory holding the session files about to be pruned, deleted on the next retention run after 24 hours. Leave unset to delete directly. Runs through bash -c, so only your own user settings can supply it.
stringdefault
Permission-denied-audit hookpermission_denied_audit_enabled
Emits telemetry on permission denials. On by default.
booleandefault true
Instructions-loaded-audit hookinstructions_loaded_audit_enabled
Emits telemetry on rule and instruction file loads. On by default.
booleandefault true
Session-start instruction-load logginginstructions_loaded_audit_log_session_start
Makes the instructions-loaded-audit hook log session_start instruction loads. Off by default, because those loads are deterministic and high-volume.
booleandefault false
Collects telemetry about each Claude Code session (hook runs, session events and skill use) from this plugin's hooks and from any plugin's hook-telemetry producers, for later analysis. It is hooks only: no skills. It is off by default; turn it on with
claude plugin enable session-telemetry@<marketplace>
and start a new session. Where its records live, for a reader in another plugin, is the
session telemetry data contract;
/harness-ops:observability, /harness-ops:audit-skill-visibility and /harness-ops:setup read
them when harness-ops is enabled.
Seven advisory *-audit hooks, registered as eight rows because
skill-usage-audit has two producers, emit the marketplace
hook-telemetry envelope. One
JSON event per run carrying that hook's own duration_ms, outcome, and a
privacy-safe subject. Each is independently toggleable via its own userConfig
boolean (default on; see Per-hook kill switches).
Two scripts serve those eight rows. hooks/audit-event-emitter.sh carries
seven of them and picks the row from the payload's hook_event_name, the way
session-event-log.sh next to it serves 28 events from one file; the
seven events are distinct, so the event alone selects the row. Each row still
reads its own <name>_enabled switch and emits the same telemetry hook id,
hook_event, status and data fields it emitted as a standalone script, so
no downstream reader can tell the difference. The row with earned behavior
of its own keeps its file: skill-usage-audit.sh, whose kill switch is
inlined above its library source because it sits on the hot PostToolUse
path.
The hook budget is accounted per
hooks.json entry, and the collapse changes no entry: the same eight audit rows,
on the same events, with the same matchers, and one event still spawns exactly
one process. Per-entry cost is unchanged for an enabled row (the same library,
the same jq passes, plus one bash pattern match to read the event) and lower
when every switch is off, because the emitter reads all seven switches before it
parses the library. A row that is off on its own pays one buffered payload it
did not pay before, because the row is only known once the event has been read;
it parsed the same library then as now, and no extra process runs either way.
The six pure emitter rows are a no-op until a consumer wires a sink (below);
skill-usage-audit is one exception. Both its producers also write the shared
skill-usage.jsonl second store unconditionally (disable the whole feature with
skill_usage_audit_enabled=false; pick the store's home with skill_usage_scope
and skill_usage_dir). In the default repo scope the store dir is kept out of
git status via an idempotent machine-local .git/info/exclude entry
(skill_usage_git_exclude=false opts out for teams that commit the telemetry).
One row per Skill call, with these fields:
| Field | Present | What it holds |
|---|---|---|
ts | always | UTC timestamp of the call, YYYY-MM-DDTHH:MM:SSZ |
event | always | SkillUse, the key readers filter this store on |
skill | always | the skill name, leading slash stripped |
branch | always | the checked-out branch, unknown outside a git work tree |
project | always | the project root's basename, for display |
project_id | always | basename plus a digest, collision-resistant across checkouts in the user and data-dir scopes |
hook | always | skill-usage-audit |
source | always | tool (the Skill tool) or expansion (a user-typed slash command) |
expansion_type | expansion path only | slash_command or mcp_prompt |
skill-usage-audit is captured by two disjoint producers so both invocation
paths are measured: the model-invoked Skill tool (PostToolUse) and the
user-typed slash command (UserPromptExpansion, which bypasses the Skill
tool). Events carry a source field (tool vs expansion) so consumers can
tell the paths apart; both share the same telemetry hook id and second store.
Its share of the budget is stated as a git process count, the part of the
row's cost that varies with the store's contents. The store write spawns
3 git processes: the repo-root read, the .git/info/exclude hygiene read
(repo scope only), and one git rev-parse --abbrev-ref HEAD for the branch.
Measured with strace -ff -e trace=execve on a throwaway fixture repository. This row is not in
the always-on per-tool-call set: its matcher is Skill, so an ordinary tool
call spawns nothing.
7-day copy clicks
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 melodic-software/claude-code-plugins --plugin session-telemetryPlugins from other owners that cover similar ground