Skip to content

feat: --brief flag + SendUserMessage notification integration - #81

Merged
aterrylu merged 1 commit into
mainfrom
terry/brief-flag
Mar 27, 2026
Merged

feat: --brief flag + SendUserMessage notification integration#81
aterrylu merged 1 commit into
mainfrom
terry/brief-flag

Conversation

@aterrylu

Copy link
Copy Markdown
Owner

All sessions now have structured messaging via --brief. SendUserMessage calls are intercepted by the hook relay and stored as notifications. Terminal output unchanged.

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>
@aterrylu
aterrylu merged commit 79b2865 into main Mar 27, 2026
1 check passed
@aterrylu
aterrylu deleted the terry/brief-flag branch March 27, 2026 07:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant