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 dannycoatesv1.0.2In 1 marketplace
Logs all Claude Code hook events to NDJSON files in /tmp/cc-hook-debug/
Run automatically on Claude Code events. Claude doesn't decide.
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.
A Claude Code plugin that logs every hook event to NDJSON files for debugging and observability.
Each session writes to /tmp/cc-hook-debug/<session_id>.jsonl with one JSON object per line.
All 14 hook events: SessionStart, UserPromptSubmit, PreToolUse, PermissionRequest, PostToolUse, PostToolUseFailure, Notification, SubagentStart, SubagentStop, Stop, TeammateIdle, TaskCompleted, PreCompact, SessionEnd
All hooks run async (non-blocking). No matchers — everything is captured.
claude --plugin-dir /path/to/cc-hook-log
/plugin marketplace add https://github.com/dannycoates/cc-hook-log
/plugin install cc-hook-log@cc-hook-log
After running a session with the plugin active:
# Check for log files
ls /tmp/cc-hook-debug/
# View recent events
cat /tmp/cc-hook-debug/*.jsonl | head -5 | jq .
# List event types captured
cat /tmp/cc-hook-debug/*.jsonl | jq -r '.hook_event_name' | sort -u
A single script (log-hook.mjs) handles all hook events. It reads the hook input JSON from stdin, extracts the session_id, and appends the JSON as a single line to the session's .jsonl file.
node:fs/promises)MIT
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 dannycoates/cc-hook-log --plugin cc-hook-logPlugins from other owners that cover similar ground