How iamlukethedev/claw3d works
Claw3D is a self-hosted 3D workspace for observing and interacting with AI-agent teams. The main workflow runs from a user connecting Studio to a supported runtime, through gateway-backed agent state and chat, to live activity in the office and operational surfaces such as tasks and standups. The graph also includes layout editing, local Studio preferences, and the server-side gateway proxy. Relationships are limited to those shown in excerpts or explicitly described in the README; unsampled subsystems are represented by their listed source paths without assuming internal call chains.
Main entry points: AgentsPageScreen.tsx Agent fleet UI · GatewayClient.ts Gateway client · store.tsx Agent state · useTaskBoardController.ts Task board
Components 22
Office experience
- 3D office
src/features/office/screens/OfficeScreen.tsx - Office scene
src/features/retro-office/RetroOffice3D.tsx - Layout builder
src/features/office/components/OfficeBuilderPanel.tsx - Layout API
src/app/api/office/layout/route.ts
Agents and runtimes
- Agent fleet UI
src/features/agents/screens/AgentsPageScreen.tsx - Agent state
src/features/agents/state/store.tsx - Runtime events
src/features/agents/state/runtimeEventBridge.ts - Chat interaction
src/features/agents/operations/useChatInteractionController.ts - Gateway client
src/lib/gateway/GatewayClient.ts - Runtime providers
src/lib/runtime/createRuntimeProvider.ts
Operational tools
- Task board
src/features/office/tasks/useTaskBoardController.ts - Shared task store
src/lib/tasks/shared-store.ts - Standups
src/lib/office/standup/service.ts - GitHub review
src/lib/office/github.ts - Execution approvals
src/features/agents/approvals/execApprovalRuntimeCoordinator.ts - Skills marketplace
src/lib/skills/marketplace.ts
Studio and connectivity
- WebSocket proxy
server/gateway-proxy.js - Studio server
server/index.js - Studio settings API
src/app/api/studio/route.ts - Settings storage
src/lib/studio/settings-store.ts
Other components
- User
- Agent runtime
Connections 21
- User → Agent fleet UI: manages agents
- User → 3D office: views workspace
- Agent fleet UI → Gateway client: connects through
src/lib/gateway/GatewayClient.ts - Gateway client → Runtime providers: selects provider
src/lib/gateway/GatewayClient.ts - Runtime providers → Agent runtime: connects to
- User → Studio server: opens Studio
- Studio server → WebSocket proxy: routes WebSocket
server/index.js - WebSocket proxy → Agent runtime: proxies WebSocket
- Runtime events → Agent state: updates state
src/features/agents/state/runtimeEventBridge.ts - Agent fleet UI → Agent state: renders state
- Chat interaction → Gateway client: sends chat
src/features/agents/operations/useChatInteractionController.ts - 3D office → Office scene: renders scene
- User → Layout builder: edits layout
- Layout builder → Layout API: publishes layout
- Studio settings API → Settings storage: loads and saves
src/app/api/studio/route.ts - Task board → Shared task store: reads and writes
src/features/office/tasks/useTaskBoardController.ts - Task board → Agent state: reads agents
src/features/office/tasks/useTaskBoardController.ts - User → Standups: runs standups
- Standups → GitHub review: uses GitHub review
src/lib/office/standup/service.ts - User → Execution approvals: reviews approvals
- User → Skills marketplace: manages skills