How kovacevicemir/all-in-one-ai-office works
AI Office provides a live, local-first dashboard for coordinating coding agents. Users configure agents and task queues, start work, then inspect activity, dependencies, context pressure, and terminal output; they can steer live runs and arrange the office floor. The runtime composes the domain with harness, model, session, and persistence adapters, and exposes it to the web client over HTTP and WebSocket. The README documents voice prompting and floor-plan editing; source excerpts do not show their complete UI wiring.
Main entry points: index.ts Runtime composition · App.tsx Office app · office.ts Office orchestration · client.ts Runtime client
Components 27
Web experience
- Office app
apps/web/src/App.tsx - Office scene
apps/web/src/office/OfficeScene.tsx - Staff controls
apps/web/src/components/AdminPanel.tsx - Agent inspector
apps/web/src/components/Inspector.tsx - Runtime client
apps/web/src/runtime/client.ts - Agent placement
apps/web/src/office/use-poses.ts - Floor-plan editing
apps/web/src/office/layout-document.ts - Pose persistence
apps/web/src/office/pose-storage.ts
Runtime service
- Runtime composition
apps/runtime/src/index.ts - HTTP API
apps/runtime/src/http.ts - Realtime hub
apps/runtime/src/hub.ts - API contracts
packages/contracts/src/index.ts
Office domain
- Office orchestration
packages/core/src/office.ts - Task dependencies
packages/core/src/queue.ts - Agent communications
packages/core/src/communications.ts - Adapter ports
packages/core/src/ports.ts
Pluggable adapters
- PI harness
packages/adapter-pi/src/pi.ts - DeepSeek provider
packages/adapter-pi/src/deepseek.ts - Session process
packages/adapter-session/src/index.ts - File state store
packages/adapter-store-file/src/index.ts - Fake harness
packages/adapter-fake/src/index.ts
Voice prompting
- Voice prompt flow
apps/web/src/voice/use-voice-prompt.ts - Browser speech engine
apps/web/src/voice/browser-engine.ts - Whisper worker
apps/web/src/voice/whisper.worker.ts
Other components
- Office operator
- Microphone input
- Speech model
Connections 28
- Office operator → Office app: uses
README.md - Office app → Office scene: renders
apps/web/src/App.tsx - Office app → Staff controls: offers staffing
README.md - Office app → Agent inspector: opens details
apps/web/src/App.tsx - Office app → Runtime client: reads and commands
- Runtime client → Runtime composition: HTTP and WebSocket
README.md - Runtime composition → HTTP API: creates API
apps/runtime/src/index.ts - Runtime composition → Realtime hub: creates realtime hub
apps/runtime/src/index.ts - Runtime composition → Office orchestration: composes domain
apps/runtime/src/index.ts - HTTP API → Office orchestration: routes requests
apps/runtime/src/http.ts - Realtime hub → Office orchestration: publishes events
apps/runtime/src/hub.ts - Runtime client → API contracts: validates messages
apps/web/src/runtime/client.ts - HTTP API → API contracts: validates API data
apps/runtime/src/http.ts - Office orchestration → Task dependencies: selects runnable tasks
packages/core/src/office.ts - Office orchestration → Agent communications: manages handoffs
packages/core/src/office.ts - Office orchestration → Adapter ports: uses adapter ports
packages/core/src/office.ts - Runtime composition → PI harness: registers harness
apps/runtime/src/index.ts - Runtime composition → DeepSeek provider: registers provider
apps/runtime/src/index.ts - Runtime composition → Session process: configures spawning
apps/runtime/src/index.ts - Runtime composition → File state store: configures persistence
apps/runtime/src/index.ts - Runtime composition → Fake harness: supports offline runs
README.md - Office app → Agent placement: loads agent poses
apps/web/src/App.tsx - Agent placement → Pose persistence: loads and saves
apps/web/src/office/use-poses.ts - Office operator → Floor-plan editing: edits floor plan
README.md - Microphone input → Voice prompt flow: provides speech
README.md - Voice prompt flow → Browser speech engine: requests transcription
- Browser speech engine → Whisper worker: sends audio
apps/web/src/voice/browser-engine.ts - Whisper worker → Speech model: transcribes locally