PrismDesk

Architecture Whitepaper

PrismDesk is a local-first AI-native desktop browser and extensible workbench engineered for developers, SREs, operations specialists, and analysts working across complex web portals and data tables.


1. Five Core Pillars

  1. Chrome-Class Isolated Multi-Tab Browser: Built on Electron 35 (BaseWindow + multi-WebContentsView + transparent OverlayView) with physical account isolation (Session Partition), automatic idle tab freezing/hibernation, isolated tab crash recovery, proxy/PAC support, and private CA fingerprint allowlists.
  2. 4-Layer Perception + Zero-Hallucination Local Analytics: Penetrates cross-origin iframes and enterprise table frameworks (native <table>, Ant Design, ElementUI/Plus, AG-Grid, VxeTable), pairs L2 CDP network JSON sniffing with L3 Vision screenshots and L4 live element highlighting, and runs LLM-generated SELECT / WITH SQL inside a local read-only WASM SQL sandbox (100% exact on 5,000 rows) with inline ECharts 5 and HD PNG/CSV export.
  3. PrismFlow Guarded Automation Suite: Visual step recorder + 16 atomic step types covering paginated extraction, multi-tab aggregation, cross-snapshot diff alerts, price-floor validated batch draft filling, read-only scheduled checks, and native multi-sheet .xlsx / .html reporting.
  4. 20+ Multi-Provider Routing (BYOM): Two-tier provider registry natively supporting OpenAI, Anthropic Claude, Google Gemini, Azure OpenAI, DeepSeek, Qwen, GLM, Kimi, Ollama, LM Studio, and vLLM endpoints, with wildcard domain rules locking sensitive sites to private models.
  5. 3-Track Open Plugins & Defense in Depth: Standard MCP services (Track A), sandboxed Web UI micro-apps (Track B), and Page Scripts & Domain Skills (Track C), protected by automatic DLP redaction, OS keychain encryption, 100% HITL write approvals, and local SQLite audit trails.

2. Multi-Process Isolation Architecture

flowchart TB
    subgraph UI["1. Presentation Layer (BaseWindow + WebContentsView)"]
        direction LR
        Shell["Top Shell & Privacy Switch"]
        Tabs["Web Tabs (Session Partition)"]
        Sidebar["AI Sidebar & Sandboxed UI"]
    end

    subgraph Main["2. Host Control Plane (Main Process)"]
        direction LR
        Extract["L1-L4 Perception Engine"]
        Perm["PermGate & OS Keychain"]
        Flow["PrismFlow & ReadOnly Scheduler"]
    end

    subgraph Worker["3. Isolated Runtime (UtilityProcess)"]
        direction LR
        Agent["Agent / DLP / Model Router"]
        Sandbox["WASM SQL & HITL Guard"]
        Store["MCP Host & Local SQLite"]
    end

    UI -->|"Typed IPC / Bridge"| Main
    Sidebar <-->|"MessagePort Streaming"| Worker
    Main --> Worker

3. Architectural Highlights

  • Control Plane / Data Plane Split: Model inference, MCP client pools, SQL execution, and SQLite live inside a dedicated UtilityProcess streamed directly to the sidebar via MessagePort — keeping browser interactions silky smooth while auto-restarting the worker if it ever faults.
  • Zero Native Z-Index Clipping: Context menus use native OS popups, while complex dialogs (Settings, PrismFlow, MCP, Plugin Market) render inside a dedicated transparent OverlayView.
  • Zero Native Module Compilation: Local SQLite runs via WASM (sql.js) and .xlsx export is pure TypeScript, ensuring effortless cross-platform packaging; API keys are encrypted via OS keychains (safeStorage).