How xbrxr03/clawos works
ClawOS is a local-first agent OS: users submit tasks through the CLI, voice activation, or dashboard; agent execution can invoke tools or workflows, with policy approval for sensitive actions, and services provide memory and other capabilities. The README documents additional product branches including research, A2A, MCP, voice, model management, and setup. Some service-to-service wiring is not shown in the excerpts, so those connections are omitted rather than inferred.
Main entry points: runtime.py Agent runtime · engine.py Workflow engine · service.py Tool bridge · main.py Wake voice
Components 24
Agent execution
- Agent daemon
services/agentd/v2/main.py - Agent runtime
runtimes/agent/runtime.py - Tool schemas
runtimes/agent/tool_schemas.py - Workflow engine
workflows/engine.py - Durable execution
workflows/durable_engine.py - Built-in workflows
workflows
Safety and tools
- Policy engine
services/policyd/service.py - Tool bridge
services/toolbridge/service.py - Browser adapter
adapters/browser/playwright_adapter.py - Approval gates
dashboard/frontend/src/overlays/ApprovalOverlay.tsx
Product services
- Wake voice
services/waketrd/main.py - Memory service
services/memd/service.py - Knowledge graph
services/braind/storage.py - Research engine
services/researchd/engine.py - Calendar service
services/calendard/engine.py - MCP server
services/mcpd/main.py - Agent mesh
services/a2ad/service.py - Voice service
services/voiced/main.py - First-run setup
services/setupd/service.py
User interfaces
- Control CLI
clawctl/main.py - Dashboard
dashboard/frontend/src/App.tsx
Shared runtime
- Configuration
clawos_core/config/loader.py
Other components
- User
- Local model server
Connections 27
- User → Control CLI: submits task
- User → Dashboard: uses control panel
- User → Wake voice: speaks wake word
- Control CLI → Agent daemon: submits task
- Wake voice → Agent runtime: enters agent
- Agent daemon → Agent runtime: runs agent
- Agent runtime → Local model server: requests inference
- Agent runtime → Tool schemas: uses tool definitions
- Agent runtime → Tool bridge: invokes tools
- Tool bridge → Browser adapter: uses browser adapter
services/toolbridge/service.py - Agent runtime → Policy engine: checks tool calls
- Policy engine → Approval gates: requests approval
- Agent runtime → Workflow engine: runs workflow
workflows/engine.py - Workflow engine → Policy engine: gates destructive runs
workflows/engine.py - Workflow engine → Agent daemon: gets agent
workflows/engine.py - Workflow engine → Built-in workflows: loads workflows
workflows/engine.py - Workflow engine → Durable execution: durable runs
- Agent runtime → Memory service: uses memory
- Memory service → Knowledge graph: stores graph
- Agent runtime → Research engine: requests research
- Agent runtime → Calendar service: uses calendar
- MCP server → Tool bridge: exposes tools
services/mcpd/main.py - User → Agent mesh: coordinates agents
- Wake voice → Voice service: uses speech service
- First-run setup → Configuration: configures system
- Tool bridge → Configuration: reads settings
services/toolbridge/service.py - Browser adapter → Configuration: reads settings
adapters/browser/session_manager.py