Overview
I built a desktop AI engineering assistant that runs locally around a bundled OpenCode sidecar. A React interface sits on top of a Rust/Tauri command layer, with engine selection, provider configuration, encrypted credentials and tool integrations kept behind clear boundaries. The goal was practical: reduce the distance between asking for help and getting real work done inside a developer's environment.
The idea
Most chat interfaces stop at conversation. I wanted an assistant that could operate as part of a developer's workspace — able to use tools, connect to external systems, switch between engines and keep sensitive configuration under the user's control.
Architecture
The app separates concerns deliberately. The React webview owns the product UI; the Rust/Tauri layer owns process lifecycle, engine registry, vault access and native capabilities; OpenCode runs as a loopback sidecar started with the app; MCP exposes tool integrations; and an optional ACP path supports Hermes when it is installed. Engine choice and provider state are persisted locally rather than hard-coded into the UI.
Key capabilities
- Bundled OpenCode sidecar launched and health-checked with the desktop app
- React workspace with sessions, attachments and provider configuration
- Single-engine registry with persisted selection and an optional Hermes ACP path
- MCP tool integrations for filesystem and WordPress/Elementor workflows
- Encrypted vault for provider credentials and app-owned engine configuration
- Subagent delegation for bounded, self-contained work
Development challenges
The hard part was not the chat UI — it was keeping a long-lived child process and several optional integrations reliable inside a desktop app. The sidecar needed a predictable port, isolated configuration, secure local transport and a clean failure mode; MCP tools, provider secrets and swap-able engines all had to coexist without leaking state into the renderer.
My Approach
I treated the Rust layer as the source of truth: it starts and checks the sidecar, owns the engine registry, isolates Node/OpenCode directories and exposes explicit commands to the webview. Provider credentials live in an encrypted vault, MCP tools are spawned from a controlled configuration layer, and the optional Hermes path reports availability instead of pretending to work when it is missing.
Technical stack
- Tauri
- Rust
- OpenCode
- MCP
- Vite
- React
- TypeScript
- Tailwind CSS
Scope: AI Agent · Desktop Software · OpenCode · MCP
The result
A working desktop assistant where model choice, tool access and automation are part of one environment rather than separate browser tabs. The architecture keeps the UI responsive and leaves room to add engines, providers and tools without rewriting the product.