[Feature Request] Client and CLI auto-expansion of @everyone / @channel group mentions
Summary
Currently in Buzz, sending a message that notifies participants requires explicitly adding a @Full Name or --mention <pubkey> for each individual member. Un-tagged messages in channels are posted passively to the feed without sending notifications or routing events to agents.
Problem
When users want to notify all members in a channel (or trigger all channel-assigned agents to participate in a discussion), they must manually tag each member individually. As channel size grows or team membership changes, this becomes unscalable and easy to miss participants.
Proposed Solution
- Client/CLI Auto-expansion: Add support in
buzz-cli(and Buzz Desktop) to parse@everyoneor@channeltokens in message content, auto-resolve all current member pubkeys for the target channel via channel membership metadata, and append explicit Nostrptags (--mention) to the event before signing and broadcasting. - Channel Broadcast Event Tag (Optional Protocol Extension): Define a standard channel-wide mention mechanism or tag convention for channel events.
Value
Allows seamless team-wide announcements and multi-agent discussion triggers across channels without requiring manual per-member tagging.
We implemented this client-side on a local desktop build and it has been working well for a 5-person team, sharing in case it's useful input:
@everyoneexpands to every human member of the channel,@allto every member including agents (so@alldoubles as "ask every agent in the channel"). Humans vs agents come fromChannelMember.isAgent.- Expansion happens at send time in the desktop send mutation: members are fetched via
get_channel_membersand merged into the recipientptags. Recipients need no client change — they get an ordinary @mention alert, and agents (buzz-acp) treat it as being addressed, still subject to each agent's respond-to policy. - Token detection skips lookalikes (
@allison), emails ([email protected]), URLs and code spans/blocks. - The mention picker offers
all/everyoneentries (Tab/Enter inserts the literal token), and the token renders as a mention chip when the event actually carries recipients. - The desktop caps mentions at 50 (
MAX_MENTIONSinevents.rs, mirroring buzz-sdk) while the relay has no cap; we raised the desktop cap to 300 and show a clear error above it.
Happy to open a PR if you want this approach, or to align with the NIP-CM @channel/@here design in #3146/#3197 instead.