Architecture
How the desktop backend, React workspace, and agent orchestration layer fit together.
Desktop host
Rift Panel uses Tauri v2 with a Rust backend and a React 19 / TypeScript frontend. The native host manages PTY processes, filesystem operations, session history, database requests, and desktop integration. The frontend communicates through Tauri commands and events.
Workspace UI
React renders the project sidebar, layout tabs, recursive split panels, command palette, and drawers. xterm.js handles terminal display, Monaco provides code editing, and TanStack Query manages session queries. CSS variables provide dark and light themes.
Agent layer
External agent CLIs run through PTYs. TypeScript harness detectors infer activity and approval states from terminal output. The prompt queue, spec workflow, autonomy matrix, hook dispatcher, steering loader, and Mission engine use that state to coordinate work.
The Mission engine schedules dependency-ready tasks to worker sessions and records run/task events. Specs and project guidance use files under .riftpanel, while run records use the SQLite plugin.
Persistence
Rust stores session history and audit data in history.db. Mission state uses the application SQLite database. The webview stores layout and preference state in localStorage. Recent terminal caches are bounded separately from persistent history.