feat: --brief flag + SendUserMessage notification integration - #81
Merged
Conversation
All sessions now spawn with --brief, enabling Claude's SendUserMessage tool for structured agent-to-dashboard messaging. Server changes: - sessions.ts: add --brief to spawn args (always on) - hooks.ts: detect SendUserMessage/Brief tool calls in PreToolUse events - Extract message content and status (normal/proactive) - Store as notification (feeds into existing unread badge system) - Log proactive messages (agent-initiated notifications) - Extended tool_input type with message/status/attachments fields How it works: - Claude routes important replies through SendUserMessage tool call - Hook relay captures it via PreToolUse event - Server stores as notification with the message content - Dashboard shows unread badge (existing system) - Proactive messages = agent needs attention (stronger signal) Terminal output is unchanged — --brief only adds the structured messaging channel, doesn't hide anything. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This was referenced Mar 27, 2026
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.
All sessions now have structured messaging via --brief. SendUserMessage calls are intercepted by the hook relay and stored as notifications. Terminal output unchanged.