Docs/Reference

Architecture

How the Electron main process, the core engine and the React UI fit together.

Vulgr has three main layers; the UI talks to the main process through a secure IPC bridge.

Desktop main process

electron/ — window management, node-pty terminal processes (ptyManager.ts), the Claude JSON stream (claudeChatManager.ts), command approvals (approvalBroker.ts), GitHub OAuth Device Flow sign-in (githubAuth.ts), auto-updates (updater.ts), the System One compiler (systemOneCompiler.ts) and the agent setup wizard (agentInstaller.ts).

Core orchestration engine

src/ — shared by the desktop app and the orchestrate CLI.

User interface

ui/ — built with React 19, Tailwind CSS v4, Base UI, cmdk and WebGL-accelerated @xterm/xterm; light and dark themes (App.tsx). The chat interface lives in ui/src/zeron/, translations in ui/src/i18n/messages/ — English and Turkish are both required.

Benchmarks

bench/ — vulgr-bench compares Vulgr chat (single agent and team) against plain Claude Code and AGY on SWE-bench tasks, and measures weighted token usage.

Secure IPC bridge

The UI reaches the main process only through window.warpApi (preload.ts), exposed with contextBridge.

Edit this page on GitHub ↗