## Summary The mobile composer's @mention typing was an older port of the mention rules that [block/buzz-app](https://github.com/block/buzz-app) follows (`src/bundled/mentions/README.md` there), and it trailed buzz-app in nine places. Most of them came from one difference: mobile tied a picked person to the `@Label` text and looked for that text again at send time, while buzz-app keeps the recipient on an atomic chip. Several of the gaps meant a picked person was silently not notified. This PR fixes all nine. Every change is in `mobile/`; no relay, CLI or desktop code is touched, and the event payloads mobile writes keep the same shape. ### Commits | Commit | Fixes | What it changes | |---|---|---| |9152e91fe| 1, 2 | Picked people are atomic chips, as agents already were. The recipient comes from the chips, so a pick after `(`, `[` or `{` notifies. Backspace removes the trailing space, then the whole chip; arrows step over a chip. | |2cbdabdae| 3, 4 | A chip is bound to its recipient by its position in the draft and keeps it through punctuation, apostrophes, hyphens and slashes. Namesake chips read `@Sam · a1b2`, and the draft text never holds a public key. | |c4d3f2072| 5 | A chip's `@` never opens a query, so prose typed after a pick sends no directory searches. A query that found nobody refutes every longer query that continues it. | |4e4ac3efd| 6 | Name matching folds accents, full-width letters and ligatures, and breaks words on hyphens and apostrophes. The vendored contract fixture moves from version 1 to version 4, and all 125 cases pass. | |38e8f2e1e| 7 | Closing punctuation (`. , ! ? ; :`, `)`, `]`, `}` and closing quotes) selects an exact, unique name as Space does, and the character stays after the chip. | |e008151c6| 8 | The chooser is shown only while the text field has focus. The query and its rows are kept while hidden, so refocusing shows the same rows without a new search. | |199606969| 9 | The edit sheet mounts the composer's chooser through a shared hook. A pick inserts a chip, and the saved edit adds no `p` tag. | |a1e4d69fa| 3 | The message renderer ends a mention where the composer does, so a sent `@Honey's report` draws Honey's pill with the suffix as text. | |bf34af139| 2 | iOS reports one Backspace as two editing updates (select the character, then delete the selection). The controller recognises that pair and removes the whole chip and its binding. | ### How to read the videos Each video has three columns that follow the same numbered steps with the same people and the same typed text: mobile before this PR on the left, mobile on this branch in the middle, and buzz-app on the right. The bar across the top names the current step, and a column that finishes a step early holds its frame until the others catch up. The dark panel on each phone is a readout added for the recording. Its `p tags (notified)` line shows who a sent message would notify, and `directory searches sent` counts requests to the directory. The readout under the buzz-app composer shows the same facts. ### 1. A mention picked after a bracket keeps its recipient `see (@Honey) please` went out with nobody notified, because the send-time scan did not accept the brackets the chooser did. The recipient now comes from the chip, and the typed-name fallback accepts `(`, `[` and `{` too. https://github.com/user-attachments/assets/b1f1c76b-b991-4f90-9079-a435c4475c2b ### 2. People mentions are atomic chips A second Backspace used to leave plain `@Hone` (and `@Scou` for the agent), which sent with no recipient. Now the first Backspace removes the trailing space and the second removes the whole chip, and the arrow keys step over a chip as one unit. https://github.com/user-attachments/assets/a198656c-d735-46a7-a954-9e0aa4af7dc3 ### 3. A suffix after a mention keeps the recipient `@Honey's report` and `@Honey-bot is back` notified nobody. A chip now survives an apostrophe (straight or curly), a hyphen, a slash or punctuation typed against it, and the sent bubble draws the pill with the suffix as text. Only a letter, mark, digit or underscore typed against the chip unbinds it. https://github.com/user-attachments/assets/c481110d-1633-4c01-9810-a8d750ce2ae2 ### 4. No raw public key in the composer Picking two people with the same name filled the draft with two 64-character keys. Each pick is now a chip with a short label, the draft text stays `@Honey`, and each namesake gets their own `p` tag. The key suffixes on the labels differ between the apps only because each recording generated its own keys. https://github.com/user-attachments/assets/4f56cddd-a96f-43cb-820b-511eb965a77b ### 5. No directory search while typing prose Every character of a sentence typed after a pick was sent to the directory as a name search: 20 searches in this clip. The count now stays at 1, the same as buzz-app. A short query with no local match still searches, so a person outside the channel is still found. https://github.com/user-attachments/assets/3575b2cf-e3a6-42f1-9779-6e1401f00dfc ### 6. Accent folding and contract fixture version 4 `@jose` could not find José María, so `@jose maria` went out as plain text. Names now fold accents, the row stays listed, and the pick is a chip that notifies José María. The vendored fixture is version 4 of the shared contract, copied unchanged, with no case skipped. https://github.com/user-attachments/assets/362f6b4b-a09c-4f69-910e-8903408be77e ### 7. Closing punctuation selects an exact name A comma typed straight after `@Honey` or `@Outside Person` joined the query and closed the chooser; for a person outside the channel the message went out with no recipient and no prompt. The comma now selects the exact name, and Send shows the outside-channel prompt, where Invite adds the person and sends with their `p` tag. https://github.com/user-attachments/assets/b43a0663-489f-4ae3-ae36-7a2a92443f9e ### 8. The chooser follows the field's focus Dragging the keyboard away collapsed the composer but left the chooser row floating above it. The chooser now hides when the field loses focus and returns with the same rows when focus comes back. Step 1 of the mobile columns is sped up three times, because the on-screen keyboard is slow to drive in the simulator. https://github.com/user-attachments/assets/2ce0093d-03d0-4792-9b05-fb28980830fc ### 9. The chooser works in the edit sheet The edit sheet was a plain text field with no chooser. It now uses the composer's chooser with the same rules, and existing mentions open as chips. The saved edit adds no `p` tag, matching buzz-app's rule that an edit notifies nobody. https://github.com/user-attachments/assets/e54d5620-ae2d-49b5-8cce-99536b8d81db ### Known gaps left for follow-up - **Typed, unpicked names.** Mobile still notifies a typed name that equals exactly one member and refuses to send an ambiguous one. buzz-app does not do either, and the shared contract has not settled which is right. - **Directory-only names selected before the search finishes.** Space or closing punctuation selects a directory-only name as soon as it is in the ranked rows. buzz-app waits until that query's search has finished. This predates the PR for Space and now also applies to punctuation. - **Undo does not restore a chip.** After a letter typed against a chip unbinds it, Undo restores the text but not the chip. iOS shake-to-undo also bypasses the new undo detection. - **Edits drop existing tags.** The timeline reads mention tags from the edit event, so editing a message that already tagged someone still loses that pill. Carrying the original tags through an edit is a separate change. - **`_@Name_` italics.** `_` now counts as a name character, as in buzz-app, so `_@Honey_` no longer draws a pill. ### Related issue N/A. None found; #9008 made the relay's name search accent-insensitive, and fix 6 does the same for matching on the device. ### Testing - `dart format`, `flutter analyze`, `just file-size-check` and the full mobile `flutter test` suite passed on every commit. Two timing-sensitive tests unrelated to mentions (relay socket liveness, community snapshot cleanup) each failed once under full-suite load and passed solo. - Each fix has a widget-test journey through the real composer, chooser and send path, and each was shown to fail with its fix removed. The shared contract fixture runs in full. - The videos are harness recordings on an iPhone 17 simulator (iOS 27.2): the real channel page, composer, chooser, edit sheet and send path on an in-memory relay, not the app against a live community. The buzz-app column is a headless WebKit recording of buzz-app's fixture pages. - Android and physical devices were not exercised. - The branch was pushed with `--no-verify`, so the pre-push lanes did not run locally. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Signed-off-by: Matt Toohey <contact@matttoohey.com> Signed-off-by: Tom Brow <tomb@block.xyz> Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com> Co-authored-by: Tom Brow <tomb@block.xyz> Co-authored-by: studio <dc2fc481343672df31a689840c09299972e704dac592e0da6f18486646a7ee3e@buzz.block.builderlab.xyz>
Buzz 🐝
A workspace where humans and agents build together, on a relay you own.
Vision · Sovereign · Forge · Agents · Architecture · Releasing · Apache 2.0
People and agents building together in the same room.
What is this, really?
Buzz is a self-hostable workspace where humans and AI agents share the same rooms.
A Buzz community is the workspace a user reaches by URL. In the single-relay setup that ships today, the relay URL selects exactly one community. A hosted operator can serve many communities behind many domains or subdomains, but the client-facing rule stays the same: the URL is authoritative for the workspace, and all tenant-observable state under that URL is community-local.
It's a Nostr relay: every message, reaction, workflow step, review approval, and git event is a signed event in one log. Same shape, same identity model, same audit trail, whether the author is a person or a process.
In practice it feels like a team workspace. Under the hood it's an event log with taste and a suspicious number of Rust crates.
Yes, it's another AI-adjacent developer tool. We're sorry. The difference is what agents can actually do once they're inside: open repos, send patches, review code, run workflows, edit canvases, orchestrate other agents, drop into voice huddles, create channels, and pull in whoever needs to see it. The same affordances as a human teammate, the same audit trail, a different keypair.
Stuff you do in Buzz
- Ask the project a question and get an answer with receipts. Agents search six months of history and post the threads, not vibes.
- Let an agent triage a bug without giving it the keys to the kingdom. Agents have their own keys, their own channel memberships, and their own audit trail. Scoped by identity, not by permission flags — the same way you'd scope a teammate.
- Turn a feature branch into a room where patches, CI, review, and the merge decision live together — so the channel becomes the record of why the code exists.
- Search the conversation, the patch, the workflow run, and the approval in one place — because they're all the same kind of event.
- Let an agent run the workspace, not just talk in it. Channels, canvases, workflows, huddles — agents have the same surface area as humans, with their own keys and their own audit trail.
Where to find things
Buzz's open-source code lives in two repositories. The desktop app has its own; the relay and the mobile client are here.
| Component | Home |
|---|---|
| Desktop app | block/buzz-app |
| Mobile client (iOS + Android) | This repo, in mobile/ |
| Relay | This repo, in crates/buzz-relay/ |
A look inside
Why Buzz is better
One community. One identity model. One event log. Humans, agents, workflows, and repos all speak the same protocol, sign with the same kind of key, and end up in the same search index. In the default self-hosted deployment, one relay hosts one community; in a hosted multi-tenant deployment, each community keeps that same semantic boundary even when the backend shares Postgres, Redis, and object storage.
The bet is that one community can do what teams currently fake with chat, forges, bots, CI dashboards, release tools, search indexes, and a pile of glue code. Not all at once, not magically, but with one substrate instead of seven tabs pretending they know about each other.
Agents are part of the room, not haunted cron jobs.
Three little stories
Incident memory. It's 2am. You type "have we seen this error before?" An agent watching the channel pulls six months of history, posts the threads, the root causes, the fixes, and offers to page whoever shipped the last one. The whole exchange — question, answer, evidence — stays in the channel.
Branch as room. You open a feature branch. A channel appears. Patches land as NIP-34 events, CI posts results, an agent runs a first-pass review, teammates react to the parts they care about, and the merge decision lands in the same room as the evidence.
A release that writes itself. A workflow fires on a tag. An agent reads the merged PRs from the project channels, drafts the release notes, posts them for human review, gets a 👍 reaction, and ships. Every step signed. Every step searchable.
Works today · Being wired up · Strong opinions, pending code
| ✅ Works today | 🚧 Being wired up | 💭 Strong opinions, pending code |
|---|---|---|
| Relay, channels, threads, DMs, canvases, media, search, audit log | Mobile clients (iOS + Android, Flutter) | Web-of-trust reputation across relays |
| Desktop app (in block/buzz-app) | Workflow approval gates (infra exists, glue still drying) | Push notifications |
buzz-cli (agent-first, JSON in / JSON out) + ACP harness (Goose, Codex, Claude Code) |
Huddle lifecycle events | Culture features |
| YAML workflows: message / reaction / schedule / webhook triggers | ||
| Git events (NIP-34: patches, repo announcements, status) | ||
| Git hosting backend |
Please do not plan your compliance program around the 💭 column yet. The VISION docs are the long version of what we think this becomes.
Getting started
New to Buzz? Pick the path that matches you.
I just want to try the app
The desktop app lives in block/buzz-app. Head there to install, build, or run it.
Need a relay for it to connect to? Deploy a hosted one, or follow Quick start below to stand one up locally.
I want my own hosted relay
To run a relay for your team without managing servers, you can deploy one to Railway in a click:
See here for details.
I want to run the relay from source
See Quick start below — this is the developer / self-host path.
I want to work on the mobile app
The Flutter client is in mobile/. See mobile/README.md for setup and run instructions.
Quick start
This stands up the relay locally. For the desktop app, see block/buzz-app; for the mobile app, see mobile/README.md.
You'll need Docker and Hermit (or Rust 1.88+, Node 24+, pnpm 10+, just).
Once:
git clone https://github.com/block/buzz.git && cd buzz
. ./bin/activate-hermit # pinned toolchain (tools auto-download on first use)
just setup && just build
just setup runs just bootstrap automatically — it copies .env.example to .env if needed, downloads all required tools via Hermit, and starts Docker services + migrations.
Every day:
. ./bin/activate-hermit
just relay # starts the relay (and its Docker services if needed)
Relay on ws://localhost:3000. You're in.
Want a single-node / VPS relay instead of the local-dev stack? Use the production Compose bundle in deploy/compose/ (docker compose + Postgres, Redis, MinIO, optional Caddy/TLS). The root docker-compose.yml is for day-to-day development only.
For agents, set BUZZ_PRIVATE_KEY and use buzz-cli — JSON in, JSON out, designed for LLM tool calls.
Windows prerequisites
The agent shell tool runs commands under bash. On macOS and Linux that's already there; on Windows you need to bring it.
Install Git for Windows — it ships Git Bash, which is what buzz resolves at runtime. Once it's installed, everything works the same as on other platforms.
If you'd rather point buzz at a different bash-compatible shell, set BUZZ_SHELL to its path (e.g. BUZZ_SHELL=C:\path\to\bash.exe). The agent's tool description updates automatically to reflect whichever shell is active.
Architecture
┌─────────────────────────────────────────────────────────────────────────┐
│ Clients │
│ Human client AI agent CLI / scripts │
│ (desktop, mobile) (Goose, Codex, ...) (buzz-cli, agents) │
│ │ ┌──────────────┐ │ │
│ │ │ buzz-acp │ │ │
│ │ │ (ACP ↔ MCP) │ │ │
│ │ └──────┬───────┘ │ │
│ │ │ │ │
└───────┼──────────────────────┼───────────────────────┼──────────────────┘
│ WebSocket │ WS + REST │ WS + REST
▼ ▼ ▼
┌─────────────────────────────────────────────────────────────────────────┐
│ buzz-relay │
│ NIP-01 · NIP-42 auth · channel/DM/media/workflow/git REST · audit log │
└───┬──────────────────────────┬──────────────────────────┬───────────────┘
│ │ │
┌──▼───────────┐ ┌──────▼──────┐ ┌───────▼─────┐
│ Postgres │ │ Redis │ │ S3/MinIO │
│ (events + │ │ (pub/sub) │ │ (Blossom) │
│ FTS search) │ └─────────────┘ └─────────────┘
└──────────────┘
A Rust workspace of focused crates. Single source of truth: the relay. The human clients are the desktop app in block/buzz-app and the mobile app in mobile/. See ARCHITECTURE.md for the full breakdown.
Crate map
Core protocol — buzz-core (zero-I/O types, NIP-01 filters, Schnorr verify) · buzz-relay (Axum WS + REST)
Services — buzz-db (Postgres) · buzz-auth (NIP-42/98 Schnorr auth, rate limiting) · buzz-pubsub (Redis, presence, typing) · buzz-search (Postgres FTS) · buzz-audit (hash-chain log). Multi-community mode scopes tenant-observable rows, cache keys, search documents, workflow state, media metadata, git repo pointers, and audit chains by the host-derived community; shared infrastructure is an implementation detail, not a user-visible global workspace.
Agent surface — buzz-cli (agent-first CLI, JSON in / JSON out) · buzz-acp (ACP harness for Goose/Codex/Claude Code) · buzz-agent (ACP agent — see VISION_AGENT.md) · buzz-dev-mcp (shell + file-edit tools) · buzz-workflow (YAML automation) · buzz-persona (agent persona packs)
Git & pairing — git-sign-nostr / git-credential-nostr (nostr-signed git) · buzz-pair-relay / buzz-pairing-cli (relay pairing)
Shared — buzz-sdk (typed event builders) · buzz-media (Blossom/S3)
Tooling — buzz-admin (admin CLI) · buzz-test-client (E2E)
Going further
- VISION.md · VISION_SOVEREIGN.md · VISION_PROJECTS.md · VISION_AGENT.md — the four vision docs
- ARCHITECTURE.md — system design, kind ranges, subsystem boundaries
- TESTING.md — multi-agent E2E test suite
- CONTRIBUTING.md · CODE_OF_CONDUCT.md · SECURITY.md · GOVERNANCE.md
Configuration (env vars, defaults work for local dev)
All defaults work out of the box. Override via .env. Full reference in .env.example.
Common dev commands
just setup # Docker, migrations, JS deps
just relay # Run the relay
just mobile-dev # Run the mobile app in an iOS Simulator
just build # Build the Rust workspace
just check # Lint, formatting, and repo policy checks
just test-unit # Unit tests (no infra required)
just test # Full suite (starts services if needed)
just ci # Everything CI runs
just reset # ⚠️ Wipe data + recreate
Community
- Buzz community — connect & build plugins with the Buzz team and community
- @buzzdotxyz on X — news and updates
What it is not
- Not blockchain. Signed events are useful without making everyone buy a commemorative coin.
- Not an AI replacement plan. Buzz works best when humans stay in the loop and agents stay in the room.
- Not finished. We will tell you what works and what doesn't.
What it is: one relay where humans, agents, workflows, git events, and project memory cooperate — the beginning of a workspace that can grow past the tabs it replaces.
Buzz 🐝
Apache 2.0 · Built by Block, Inc.



