How blackbeaneagles/zerocomet works
Agent Pager turns an allowlisted group-chat request into a workspace edit, test run, and result card; a teammate can then ship or undo the changes. The browser provides chat, live status, result cards, and a console, while the server mints login tokens and coordinates CometChat with the agent runner. The README documents callback delivery and preview alongside polling. The source excerpts and index support the main calls; some browser transport details and unsampled implementation are documented but not shown directly.
Main entry points: Room.jsx Chat room · index.js HTTP server · brain.js Message coordinator · Messages.jsx Messages
Components 21
Chat interface
- App shell
web/src/App.jsx - Login
web/src/components/Login.jsx - Chat room
web/src/components/Room.jsx - Messages
web/src/components/Messages.jsx - Result cards
web/src/components/Cards.jsx - Message composer
web/src/components/Composer.jsx - Agent console
web/src/components/Console.jsx - Avatars
web/src/components/Avatar.jsx - Chat transport
web/src/lib/chat.js - Command parser
web/src/lib/commands.js - Demo agent
web/src/lib/mock.js
Pager server
- HTTP server
server/index.js - Runtime config
server/config.js - Message coordinator
server/brain.js - CometChat REST client
server/cometchat.js
Agent workflow
- Agent runner
server/agent.js
Editable workspace
- Launchpad workspace
workspace - Workspace history
workspace
Other components
- Group members
- CometChat
- Claude Code
Connections 30
- Group members → CometChat: sends messages
README.md - CometChat → HTTP server: delivers callback
README.md - HTTP server → Message coordinator: routes messages
server/index.js - HTTP server → Runtime config: reads settings
server/index.js - HTTP server → CometChat REST client: mints tokens
server/index.js - HTTP server → Message coordinator: starts polling
server/index.js - Message coordinator → Runtime config: checks allowlist
server/brain.js - Message coordinator → CometChat REST client: reads and posts
server/brain.js - Message coordinator → Agent runner: runs or ships
server/brain.js - CometChat REST client → CometChat: uses REST API
server/cometchat.js - Agent runner → Claude Code: runs prompt
server/agent.js - Agent runner → Launchpad workspace: edits and tests
README.md - Agent runner → Workspace history: diffs and commits
server/agent.js - Launchpad workspace → Workspace history: stores history
- App shell → Login: renders
web/src/App.jsx - App shell → Chat room: renders
web/src/App.jsx - Login → Chat transport: authenticates
README.md - Login → HTTP server: requests token
README.md - Chat room → Chat transport: uses transport
web/src/components/Room.jsx - Chat room → Demo agent: uses in demo
web/src/components/Room.jsx - Chat room → Messages: renders
web/src/components/Room.jsx - Chat room → Message composer: renders
web/src/components/Room.jsx - Chat room → Agent console: renders
web/src/components/Room.jsx - Messages → Result cards: renders
web/src/components/Messages.jsx - Messages → Agent console: uses step icons
web/src/components/Messages.jsx - Messages → Avatars: renders
web/src/components/Messages.jsx - Agent console → Avatars: renders
web/src/components/Console.jsx - Message composer → Command parser: parses commands
web/src/components/Composer.jsx - Chat transport → CometChat: uses JS SDK
README.md - CometChat → Group members: delivers chat cards
README.md