How devlikemasta/bureau-des-agents works
Le Bureau des agents is a local browser-based pixel-art interface for running real Claude Code agent teams. The user gives Max a mission; the server runs Claude Code and its specialists, then streams activity, approvals and deliverables to the office, where the user can follow work and inspect results. The UI also documents replay, team history, settings, site previews, guided tours and audio. Some subsystem links are supported only by README or source-index references; unsampled implementations and unverified links are omitted.
Main entry points: App.tsx Office app · link.ts WebSocket link · store.ts Client mission state · bureau.ts Mission coordinator
Components 23
Mission orchestration
- Local server
server/index.ts - Mission coordinator
server/bureau.ts - Claude runner
server/claude.ts - Agent team
server/team.ts - Activity translation
shared/activity.ts
Local bridge
- WebSocket link
src/net/link.ts - Message contract
shared/protocol.ts
Office interface
- Office app
src/App.tsx - Mission dialog
src/ui/Dialog.tsx - Team panel
src/ui/Panel.tsx - Office rooms
src/ui/Rooms.tsx - Controls
src/ui/TopBar.tsx - Client mission state
src/state/store.ts - Event bus
src/state/bus.ts
Pixel-art simulation
- Canvas office
src/ui/Office.tsx - Simulation instance
src/engine/instance.ts - Agent world
src/engine/world.ts - Pixel renderer
src/engine/render.ts
History and media
- Results and history
src/ui/Modals.tsx - Jukebox
src/audio/music.ts - Max voice
src/audio/voice.ts
Other components
- User
- Claude Code
Connections 28
- User → Office app: uses
README.md - Office app → Mission dialog: shows
src/App.tsx - Office app → Canvas office: shows
src/App.tsx - Office app → Office rooms: shows
src/App.tsx - Office app → Results and history: shows
src/App.tsx - Office app → Controls: shows
src/App.tsx - Mission dialog → WebSocket link: sends mission
- Controls → WebSocket link: requests replay
src/ui/TopBar.tsx - WebSocket link → Local server: exchanges messages
README.md - Local server → Mission coordinator: routes mission
server/index.ts - Mission coordinator → Claude runner: runs session
server/bureau.ts - Mission coordinator → Agent team: configures agents
server/bureau.ts - Claude runner → Claude Code: launches
README.md - Claude runner → Activity translation: translates tools
server/claude.ts - Mission coordinator → Activity translation: records activity
server/bureau.ts - Local server → WebSocket link: streams events
README.md - WebSocket link → Client mission state: delivers messages
src/net/link.ts - Client mission state → Event bus: publishes events
src/state/store.ts - Event bus → Simulation instance: dispatches events
src/engine/instance.ts - Canvas office → Simulation instance: reads simulation
src/ui/Office.tsx - Simulation instance → Agent world: updates
src/engine/instance.ts - Simulation instance → Pixel renderer: creates
src/engine/instance.ts - Office rooms → Team panel: renders avatars
src/ui/Rooms.tsx - Office rooms → Client mission state: reads mission state
src/ui/Rooms.tsx - Results and history → Client mission state: reads results
src/ui/Modals.tsx - Office app → Jukebox: controls jukebox
src/App.tsx - Jukebox → Client mission state: publishes playback
src/audio/music.ts - Office app → Max voice: starts guided tour
src/App.tsx