Architecture overview
IZ Code has a native core written in Rust, a web-based UI, and a small number of helper processes that it starts only when needed. The agent runtime, code index and memory live in the core, so every agent and every window shares them.
The big picture#
flowchart TD
subgraph win["IZ Code window"]
ui["UI: React, Monaco, workbench services"]
end
subgraph core["Rust core"]
rt["Agent runtime, Context Engine, permissions"]
idx["Code index, Agent Memory, database"]
sys["Search, Git, terminal, language servers"]
rem["Remote, account, updater, trust"]
end
ui -- "IPC" --> core
core -- "stdio, ACP" --> agents["Coding agents: Claude, Codex, Copilot"]
core -- "RPC" --> ext["Extension host (Bun)"]
core -- "SSH or encrypted relay" --> remote["Remote agent: SSH, peer, cloud"]| Layer | Built with | Job |
|---|---|---|
| Shell | Tauri 2 | Native window, menus, file dialogs, deep links, auto-update. Uses the operating system's web view instead of bundling a browser. |
| UI | React 19, Monaco, VS Code workbench services | Everything you see. Holds no secrets: tokens and keys stay in the core. |
| Core | Rust | Agent runtime, index, memory, search, Git, terminal, remote connections, settings, trust. |
| Extension host | A bundled Bun runtime | Runs VS Code extensions that need Node.js APIs, and language servers. One shared process, not one per extension. |
| Agents | Each agent's own CLI, spoken to over ACP | Model calls and reasoning. IZ Code supplies context, tools and permissions. |
Design choices#
One core, many windows. The index, memory and agent sessions belong to the core, not to a window. Two windows on the same folder share one index; closing a window does not stop an agent that is still working.
Agents are extensions. Each coding agent ships as an extension that starts its own CLI. The core talks to it over the Agent Client Protocol (ACP) and exposes sessions to the UI through the Agent Host Protocol (AHP). Adding an agent means publishing an extension, not changing the app. See Agent runtime.
The same context for every agent. Before a session starts, the Context Engine gathers project instructions (AGENTS.md, CLAUDE.md), Git state, MCP servers and code-index results within a token budget, so switching agents does not mean losing context.
Local first. The code index and memory are SQLite databases on your disk. Nothing is uploaded to build them. See Index, memory and data.
Thin client for remote work. In an SSH, peer or cloud workspace, the same Rust core runs on the other machine. Files, terminals, Git, language servers and agents run there; only the UI stays local. See Remote and cloud.
Self-contained runtimes. Language servers, the extension host and optional engines download or unpack their own runtimes the first time they are needed. You do not install Node.js, Python or a JDK to get started. See Extensions and languages.
Crates#
The Rust core is a Cargo workspace. The main crates:
| Crate | Role |
|---|---|
izcode-core | Agent runtime, Context Engine, permissions, code index, memory, database engine, specs, search, terminal, language-server registry, Workspace Trust |
izcode-ahp | Agent Host Protocol server between the UI and the agent runtime |
izcode-auth | Account sign-in: PKCE, device flow, session refresh |
izcode-collab, izcode-collab-core | Shared documents for team specs |
izcode-peer, izcode-peer-client | Remote Peer host and client |
izcode-relay | Encrypted relay so your devices can reach each other behind NAT |
izcode-remote-agent | The headless core that runs on SSH hosts and cloud workspaces |
izcode-rpc-wire | Framing for the RPC between UI, core and remote agents |
Security boundaries#
| Boundary | Rule |
|---|---|
| UI ↔ core | The UI never receives account tokens or API keys. |
| Agent ↔ your files | Every edit and command goes through the permission engine and Workspace Trust. Untrusted folders cannot be edited by agents. |
| Remote connections | SSH uses your keys and known-hosts. Peer traffic is end-to-end encrypted through the relay. |
| Updates | Every update is signed and checked before it is installed; downgrades are refused. |