crates/gateway | binary + library | Main service. Owns WebSocket JSON-RPC sessions, auth, settings, workspaces, threads, turns, providers, MCP service, skills handlers, task runtime, resilience workers, and persistence coordination. |
crates/desktop | binary | Native GPUI desktop client. Connects to gateways, starts/manages a local gateway, and renders conversations, providers, skills, MCP, tasks, and settings. |
crates/cli | binary | Command-line utility, service management entry point, token issuance, and keystore maintenance surface. |
crates/protocol | library | Public JSON-RPC contract, request/response types, notification types, domain DTOs, method constants, and schema export. |
crates/agent | library | Per-thread agent runtime, turn execution, provider loop, tool loop, lifecycle hook wiring, MCP/tool/task materialization, skill resolution, recovery handling. |
crates/hooks | library | Typed lifecycle hook runtime, hook subscriptions, phase requests, contribution sets, execution/failure policy, dependencies, diagnostics, and hook-run summaries. |
crates/artifacts | library | Workspace-scoped artifact service, blob store abstraction, ingestion, path validation, quotas, GC planning, projections, and provider artifact resolution. |
crates/memory | library | Durable agent memory service, memvid backend integration, recall ranking, semantic writes, canonical keys, candidate policy, tombstones, and repair diagnostics. |
crates/keystore | library | Secret storage facade backed by db-keystore, stable secret ids, metadata, permission hardening, and an in-memory test store. |
crates/promt | library | Prompt compiler. Builds stable and dynamic system prompt sections, reads bootstrap files, applies prompt budgets, emits prompt manifests and fingerprints. |
crates/provider | library | Provider trait, provider registry, provider implementations, streaming/non-streaming chat, tool-call parsing, attachment normalization and upload planning. |
crates/tools | library | Built-in tool registry, shell sessions, filesystem tools, patch application, grep, web search/fetch/download, computer use, dynamic tool extension bundles, output policies, retry classification. |
crates/tasks | library | Durable task service, scheduler, trigger calculator, executor registry, event bus, projectors, retries, deliveries, write locks, startup reconciliation. |
crates/mcp | library | MCP install config parser, validation, secret redaction/materialization, stdio and streamable HTTP clients, runtime connector, catalog snapshots, retry policy. |
crates/skills | library | Agent Skills-compatible contract parser, installer, validation, security scanning, dependency preflight, policy merge, catalog loading, runtime tool declarations, prompt building. |
crates/crud | library | SeaORM-backed repository layer and projectors for turns, items, threads, artifacts, tasks, skills, MCP, recovery jobs, prompt manifests, and LLM context retention. |
crates/entity | library | SeaORM entity definitions generated/maintained for the SQLite schema. |
crates/migration | library | SeaORM migrations for database schema evolution. |
crates/sqlite | library | SQLite-specific helpers, especially write coordination for concurrent async access. |
crates/config | library | Layered configuration loader for default config, user config, gateway config, install paths, tools, artifacts, provider attachments, skills, database, and auth. |