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.
adapters/— one adapter and output parser per agent CLI.engine/— team chat (teamChat.ts) and itsthreads/pipeline, Agent Swarm (agentMesh.ts), the Orchestrator (orchestra.ts),optimizer/, CLI limits (cliLimits.ts), the usage ledger (usageLedger.ts), the memory store (memoryStore.ts) and shared skills (sharedSkills.ts).git/— worktree helpers (worktreeManager.ts); orphaned worktrees are cleaned up automatically.
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.