How openbmb/pilotdeck works
PilotDeck is a multi-project AI agent productivity platform. Users submit work through Web, CLI, or messaging channels; the gateway routes sessions into agent execution, which uses models, tools, and workspace-scoped context to produce results. The README also identifies white-box memory, smart routing, and Always-on execution as core capabilities. Some relationships below are documented capabilities rather than verified call paths; unsampled or unclear wiring is omitted.
Main entry points: AgentLoop.ts Agent Loop · Gateway.ts Gateway · SessionRouter.ts Session Routing · ToolRuntime.ts Tool Runtime
Components 19
User Entry
- Web UI
ui/src/components/chat/hooks/useChatRealtimeHandlers.ts - CLI
src/cli/pilotdeck.ts - Messaging Channels
src/adapters/channel/loadEnabledChannels.ts - Gateway
src/gateway/Gateway.ts - Session Routing
src/gateway/SessionRouter.ts
Agent Runtime
- Agent Loop
src/agent/loop/AgentLoop.ts - Model Runtime
src/model/ModelRuntime.ts - Smart Routing
src/router/RouterRuntime.ts - Tool Runtime
src/tool/execution/ToolRuntime.ts
Workspace Context
- Workspace Isolation
src/pilot/paths.ts - White-box Memory
src/context/memory/edgeclaw-memory-core/src/service.ts - Context Management
src/context/budget/TokenBudgetManager.ts - Project Skills
src/extension/skills/SkillManager.ts - Local Deliverables
src/always-on/workspace/WorkspaceApply.ts
Background Operations
- Always-on Runtime
src/always-on/runtime/AlwaysOnManager.ts - Scheduled Tasks
src/cron/runtime/CronManager.ts
Extensions
- MCP Runtime
src/mcp/runtime/McpRuntime.ts - Plugins
src/extension/plugins/runtime/PluginRuntime.ts
Other components
- User
Connections 20
- User → Web UI: submits work
README.md - User → CLI: submits work
README.md - User → Messaging Channels: sends messages
README.md - Web UI → Gateway: sends requests
- CLI → Gateway: uses gateway
- Messaging Channels → Gateway: routes messages
- Gateway → Session Routing: routes sessions
src/gateway/index.ts - Session Routing → Agent Loop: runs sessions
- Agent Loop → Model Runtime: requests completion
- Agent Loop → Tool Runtime: dispatches tools
- Agent Loop → Context Management: manages context
- Agent Loop → Smart Routing: selects models
- Workspace Isolation → White-box Memory: scopes memory
README.md - Workspace Isolation → Project Skills: scopes skills
README.md - White-box Memory → Context Management: supplies context
- Always-on Runtime → Session Routing: runs background work
src/always-on/runtime/AlwaysOnManager.ts - Always-on Runtime → Local Deliverables: lands deliverables
README.md - Scheduled Tasks → Session Routing: schedules work
- Plugins → Tool Runtime: contributes tools
- MCP Runtime → Tool Runtime: bridges tools