Core System
Architecture
High-Level Components
Desktop UI: Electron + React
Local Daemon: Bun + Elysia
Control Plane JSON
(SQLite)
Tool Registry + Jobs + Policy
Audit + Events
Repository Layout
apps/desktop: Electron shell + renderer UIapps/daemon: local API, orchestrator, runtime internalsconfig: control-plane schemas and runtime JSON configplugins: plugin manifests and tool handlersdata: runtime state and mutable datauserland: workspace surface for explicit code edits
Runtime Flow
- Desktop launches and connects to daemon APIs.
- Daemon loads control plane, tools, policy, and plugins.
- Jobs and tool calls run through validation and policy checks.
- Risky operations become approvals before execution.
- Events and audit records are written for traceability.
Control Plane Validation
Current daemon code validates:
- schema compatibility (
tool,policy,job,workflow,ui) - duplicate UI page/sidebar IDs and paths
- job script safety constraints and dependency format restrictions
This keeps self-editing bounded by explicit rules.
Last updated from repo snapshot: 2026-02-20
Last updated: 2026-02-20