How orchestratorinc/agent-orchestrator works
Orchestrator.inc is a desktop workspace and local daemon for planning, running, and supervising coding-agent tasks, with a cloud control plane and mobile client. The principal flow is task creation, isolated worker execution, and ongoing inspection through conversation, terminal, changes, previews, pull requests, CI, and review; a project orchestrator can plan and delegate work across workers. The graph preserves documented product stages and selected internal layers. Some links are documented in the README; unsampled subsystem connections are omitted rather than inferred.
Main entry points: useWorkspaceQuery.ts Workspace board · manager.go Session manager · main.go Cloud control plane · main.ts Desktop app
Components 20
Desktop workspace
- Desktop app
frontend/src/main.ts - Workspace board
frontend/src/renderer/hooks/useWorkspaceQuery.ts - Daemon API client
frontend/src/renderer/lib/api-client.ts - Remote host clients
frontend/src/renderer/lib/host-clients.ts
Agent execution
- Local daemon
backend/main.go - Session manager
backend/internal/session_manager/manager.go - Agent adapters
backend/internal/adapters/agent - Chat service
backend/internal/service/chat/controller.go - Terminal service
backend/internal/terminal/manager.go - Browser previews
backend/internal/previewserver/manager.go - Session lifecycle
backend/internal/lifecycle/manager.go
Cloud coordination
- Cloud control plane
cloud/cmd/ao-cloud/main.go - Worker orchestration API
cloud/internal/httpapi/worker_orchestration_handlers.go - Sandbox worker
cloud/cmd/ao-worker/main.go - Worker session store
cloud/internal/postgres/worker_session_store.go
Shared services
- Cloud client
packages/cloud-client/src/client.ts - Session inspector
packages/product-ui/src/SessionInspectorView.tsx
Mobile client
- Mobile launcher
packages/mobile/lib/useOrchestratorLauncher.ts - Mobile API
packages/mobile/lib/api.ts
Other components
- Developer
Connections 20
- Developer → Desktop app: opens workspace
README.md - Desktop app → Local daemon: starts daemon
README.md - Developer → Workspace board: creates task
README.md - Workspace board → Daemon API client: loads workspace
frontend/src/renderer/hooks/useWorkspaceQuery.ts - Daemon API client → Local daemon: requests data
README.md - Workspace board → Remote host clients: selects remote host
frontend/src/renderer/hooks/useWorkspaceQuery.ts - Developer → Session manager: starts worker
README.md - Session manager → Agent adapters: launches agent
backend/internal/session_manager/manager.go - Session manager → Session lifecycle: manages sessions
- Developer → Chat service: sends feedback
README.md - Developer → Terminal service: attaches terminal
README.md - Developer → Browser previews: opens preview
README.md - Developer → Cloud control plane: uses cloud services
- Cloud control plane → Worker orchestration API: routes orchestration
- Worker orchestration API → Worker session store: reads and writes
cloud/internal/httpapi/worker_orchestration_handlers.go - Sandbox worker → Cloud control plane: connects outward
cloud/cmd/ao-worker/main.go - Developer → Cloud client: uses cloud features
- Developer → Session inspector: inspects session
README.md - Developer → Mobile launcher: launches orchestrator
packages/mobile/lib/useOrchestratorLauncher.ts - Mobile launcher → Mobile API: starts or resumes
packages/mobile/lib/useOrchestratorLauncher.ts