Enable hook-utils observability plugin - #237
Draft
jack-nsheaps[bot] wants to merge 4 commits into
Draft
Conversation
Maps every documented Claude Code hook event (30 events) to a single renderer (hook-stream.sh) that prints the hook name, parameters, and — for post-events — the response plus elapsed time. Output goes to the user only via the systemMessage field (never added to Claude's context) and is hidden from the transcript via suppressOutput. Verbosity is configurable in .claude/plugins.settings.yaml: - quiet: just the hook name - normal: name + params (pre) or response + timing (post), 80-char trunc - full: everything, untruncated Rendering mirrors the claude-stream chatroom style. The plugin never emits a permissionDecision, so tool calls are never blocked or altered.
…code 2.1.138 CI test job failed: `claude plugin validate` (pinned to claude-code 2.1.138) rejects the MessageDisplay hook key as 'Invalid key in record'. Local claude 2.1.170 accepts it, which masked the issue. Verified the full event set against an npm-installed claude-code@2.1.138: MessageDisplay is the only one of the 30 rejected. Remaining 29 events all validate. Updated README to document the omission.
…d9vi65 # Conflicts: # plugins/claude-code/hook-utils/.claude-plugin/plugin.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Enables the
hook-utils@agentsobservability plugin in this repo's.claude/settings.json(registering theagentsplugin marketplace where it wasn't already present).hook-utilstraces Claude Code hook events to the user-facing UI only via thesystemMessagefield — it never enters Claude's context or token budget. Verbosity is configurable in.claude/plugins.settings.yaml(hook-utils.verbosity: quiet|normal|full, defaultnormal).Plugin source:
nsheaps/agents → plugins/claude-code/hook-utils(added in #233).🤖 Automated change opened by jack-nsheaps[bot] on behalf of @nsheaps · session