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, turn permission/security/approval/audit types, voice contracts, method constants, and schema export. |
crates/client | library | Shared shell-neutral client core: gateway transport, request helpers, notification reducers, read models, selectors, timeline rows, composer and voice workflows, permission/security display, provider/model helpers, skills/MCP/settings/artifact presentation, and schema contracts. |
crates/client-ffi | library | C ABI/JSON boundary around pioneer-client for native shells such as the React Native Nitro module. Owns FFI runtime glue, tagged JSON responses, diagnostics, and client schema export. |
crates/cli-agent-runtime | library | Local CLI-backed agent runtime boundary. The committed implementation drives Codex CLI app-server sessions, events, approvals, requests, model probes, login, review, compaction, fork, and steering. |
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/tunnel | library | Remote access supervisor for gateway relay connectivity. Builds and supervises the rathole client, validates remote-access settings, publishes status snapshots, and handles reconnect policy. |
crates/observability | library | Telemetry and diagnostics initialization shared by gateway/runtime binaries. |
crates/promt | library | Prompt compiler. Builds stable and dynamic system prompt sections, reads bootstrap files, renders current permission guidance, applies prompt budgets, emits prompt manifests and fingerprints. |
crates/provider | library | Remote model API provider trait, registry, provider implementations, streaming/non-streaming chat, tool-call parsing, attachment normalization, model listing, and upload planning. CLI-backed runtimes intentionally live outside this crate. |
crates/tools | library | Built-in tool registry, permission evaluation and approval brokering, security snapshot enforcement, native sandbox backend preparation, 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. |