How marmottajr/habblaud works
Habblaud is a local virtual-office dashboard for monitoring Claude Code and Codex agents, project rooms, activity, permissions, terminals, deliveries, and account usage. The main flow is local agent/session files into server sources and the office model, then HTTP/SSE data to a browser whose world scene and UI present the live office. Habblaud World is a separate optional social service. Several links are based on README or SOURCE INDEX evidence rather than sampled implementation; uncertain wiring is omitted.
Main entry points: office.ts Office model · src/app.ts Client bootstrap · http/app.ts HTTP API · sources Session sources
Components 24
Local agent ingestion
- Session sources
server/sources - Transcript parsing
server/sources/transcript.ts - Account usage
server/accounts/service.ts
Office server
- Office model
server/model/office.ts - HTTP API
server/http/app.ts - Live event stream
server/http/sse.ts - Permission requests
server/permissions/registry.ts - Terminal sessions
server/pty/manager.ts - Activity history
server/history/timeline.ts - Agent deliveries
server/deliveries/deliveries.ts
Browser office
- Client bootstrap
client/src/app.ts - Office data store
client/src/net/store.ts - World stream client
client/src/net/world-stream.ts - Dashboard UI
client/src/ui/index.ts
Pixel world
- City scene
client/src/world/city/index.ts - Agent simulation
client/src/world/sim/sim.ts - Scene rendering
client/src/world/render/renderer.ts - Pixel art assets
client/src/art/api.ts
Habblaud World
- World service
server/world/service.ts - World client
server/world/client.ts - World protocol
shared/world/protocol.ts
Other components
- Local operator
- Agent session files
- Browser user
Connections 23
- Agent session files → Session sources: reads sessions
- Session sources → Transcript parsing: parses transcripts
server/sources/transcript.ts - Session sources → Office model: updates agents
server/model/office.ts - Account usage → Office model: provides usage
server/model/office.ts - Local operator → HTTP API: opens dashboard
- HTTP API → Office model: routes requests
server/http/app.ts - Office model → Live event stream: commits snapshots
server/model/office.ts - Live event stream → Office data store: streams updates
- HTTP API → Permission requests: handles decisions
server/permissions/registry.ts - HTTP API → Terminal sessions: routes terminal
server/pty/manager.ts - Office model → Activity history: records activity
- Office model → Agent deliveries: tracks deliveries
- Browser user → Client bootstrap: opens app
client/src/app.ts - Client bootstrap → Office data store: creates store
client/src/app.ts - Client bootstrap → City scene: creates scene
client/src/app.ts - Client bootstrap → Dashboard UI: creates panels
client/src/app.ts - Client bootstrap → World stream client: opens stream
client/src/app.ts - City scene → Agent simulation: runs agents
- City scene → Scene rendering: renders city
- Scene rendering → Pixel art assets: uses sprites
- Office model → World client: provides office data
- World client → World service: uplinks state
server/world/client.ts - World service → World protocol: uses protocol
server/world/service.ts