Agent presence
Shown as Quorum, a made-up product
Who is in a shared plan right now, with AI agents beside people. Open the stack to see where each one works, follow someone, pause an agent or review its changes, and read the last five minutes of edits.
Installation
pnpm dlx shadcn@latest add "https://propui.dev/r/quorum-presence.json?token=…"Adds the piece to components/propui/04-quorum-presence/ and installs motion. Needs a free account: sign in and the command includes your token. Fonts load from Prop UI; download the zip to self-host them.
When to use
Reach for it when
- Showing who is in a shared document right now, with AI agents in the room beside people.
- Letting someone see where each person or agent is working, jump there or follow them.
- Reviewing what an agent changed in a shared document before it lands, with Accept and Discard.
Something else fits when
- Following one agent's run step by step: Run rewind shows each step and lets you redirect it.
- A team's agents across many projects: AI agent runs gives the whole desk.
- A document only one person edits: a saved-state line in the header is enough.
Usage
Fills a full window: give it a container with a definite height.
import Piece from "@/components/propui/04-quorum-presence/Section";
export default function Page() {
return (
<main className="h-dvh w-full overflow-hidden">
<Piece />
</main>
);
}Replace DOC, SECTIONS, PEOPLE, AGENTS, SPARE_AGENT, JOINERS, AGENT_CHANGES and SEED_TICKS in data.ts, and drive the room from your presence feed instead of SCRIPT (the beat loop in Section.tsx). The stack, counts, section dots and the activity strip all read from the room.
Your data
Replace these and everything on screen follows.
DOC{ title; team; edited }- The header title and the line under it.
SECTIONS{ id; label }[]- The section tabs, and the section each person or agent is in.
PEOPLEPerson[] ({ id; name; initials; role; hue; tile; section; doing; changes; away?; you? })- The people in the room; the first is you. hue colours their ring, section dot and activity ticks.
AGENTS, SPARE_AGENTAgent[] ({ id; name; task; hue; section; scope; step; steps; paused; pending })- Agents in the room with their task, progress and what they may change; the spare joins from Try a state.
JOINERSPerson[]- Who arrives when someone joins.
AGENT_CHANGESRecord<string, string[]>- The changes an agent leaves for review when its task is done.
SEED_TICKS, WINDOW{ who; section; verb; at }[], number- The edits already on the activity strip, and how many seconds it shows (300).
SCRIPTBeat[]- The simulated room: edits, moves and agent steps, one every few seconds.
Interactions
- Click the avatar stack to open Here now: people and agents grouped, each with what they are doing and the section they are in.
- Click a section chip to jump there, or Follow someone to light their section in the header; Stop ends it.
- Pause or Resume an agent, and Review its changes when its task is done (Accept or Discard).
- Hide yourself from the room, and see who can see presence.
- Hover a tick on the Last 5 minutes strip, or focus it and use the arrow keys, to read who edited what and when.
- Share sets an access level and copies the link; Try a state makes someone join or leave, brings the second agent in, sets someone away, or pauses the room.
Keyboard
- P
- Open or close Here now (not while typing in a field).
- ⌘+.orCtrl+.
- Open or close Here now.
- Esc
- Close the open list or menu and return focus to its button; otherwise stop following.
- ←or→
- On the activity strip, read the previous or next edit.
- HomeorEnd
- On the activity strip, jump to the first or latest edit.
Behaviour
Read from the code: roles, motion, breakpoints and what runs.
Accessibility
- The stack is a button whose label gives the count of people and agents and the shortcut; Here now is a labelled dialog that takes focus when it opens.
- Section tabs are buttons in a labelled nav; your section carries aria-current, and each tab's dots have a label with the count.
- The status line under the card and the strip's reading are polite live regions, so joins, follows and edits are announced.
- Share and Try a state are menus with menuitem, menuitemradio and menuitemcheckbox roles; Hide me is a switch.
- Agents are told apart from people by shape (rounded squares) and their state by the ring and text, never by colour alone.
Motion
- Joins and leaves animate on one spring; someone leaving pops out of the layout and fades fast.
- The overflow count rolls one number at a time in a fixed slot and waits for the avatars to settle.
- The typing badge breathes and a working agent's glyph turns slowly; the activity strip scrolls on one transform.
- Reduced motion stops the breathing, the turning glyph and the strip's scroll transition.
Responsive
- The card is 760px wide and shrinks with the screen.
- Below 760px the header wraps so the stack and Share get their own row.
- Below 640px the stack shows three avatars instead of five, the header's extra details hide, and Here now becomes a bottom sheet over a scrim.
Performance
- Two intervals run the room (a one-second clock and a beat every few seconds); both skip while the tab is hidden and stop while the room is paused.
- The activity strip moves by one CSS transform; edits that have scrolled out are dropped every ten seconds.
- No canvas or images: one local font file and inline SVG.
Notes for AI
Give your coding assistant the Markdown, not a screenshot.
- Keep the room in data.ts; counts, dots and the strip are derived from it.
- An agent leaves changes in pending only when its task is done; keep Review gated on that.
- Light and dark follow the nearest data-theme attribute above the piece, or the system setting. Keep colours in the tokens at the top of post.css.
/p/quorum-presence/markdownThe whole library for assistants: llms.txt, or the MCP server in AI tools and MCP.