Skip to content

[Feature Request] Client and CLI auto-expansion of @everyone / @channel group mentions #4970

Open

Description

@LesleyMurfin

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

  1. Client/CLI Auto-expansion: Add support in buzz-cli (and Buzz Desktop) to parse @everyone or @channel tokens in message content, auto-resolve all current member pubkeys for the target channel via channel membership metadata, and append explicit Nostr p tags (--mention) to the event before signing and broadcasting.
  2. 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.

Activity

  1. Gwani-28 commented on Sep 29, 2026

    @Gwani-28

    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:

    • @everyone expands to every human member of the channel, @all to every member including agents (so @all doubles as "ask every agent in the channel"). Humans vs agents come from ChannelMember.isAgent.
    • Expansion happens at send time in the desktop send mutation: members are fetched via get_channel_members and merged into the recipient p tags. 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 (me@all.com), URLs and code spans/blocks.
    • The mention picker offers all / everyone entries (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_MENTIONS in events.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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions