How alice-viola/angy works
Purpose and Entry Points
Angy is a local-first desktop command center for autonomous AI coding-agent fleets. Users create epics; the app schedules, executes, verifies, and presents multi-agent work in isolated Git branches. Frontend bootstraps at src/main.ts and src/App.vue; the native Tauri process starts through src-tauri/src/main.rs and src-tauri/src/lib.rs.
Desktop Boundary and Runtime
The application is a Vue 3/TypeScript frontend packaged by Tauri 2 with a Rust native host. Tauri capabilities and platform integration—including PTY support—are implemented in src-tauri/capabilities/default.json, src-tauri/src/platform.rs, and src-tauri/src/pty.rs. The frontend invokes native facilities for filesystem, process, Git, terminal, and SQLite-backed operations; it is not a conventional web deployment.
UI, State, and User Workflows
Vue feature views expose the operating model: epic Kanban management, agent chat/fleet, execution graphs, code editing, terminals, Git, and analytics. Primary surfaces are src/components/kanban/KanbanView.vue, src/components/agents/AgentsView.vue, and src/components/graph/MissionControlView.vue. Pinia stores provide shared client state for projects, epics, sessions, fleet, Git, graph, and UI state, centered in src/stores/epics.ts, src/stores/sessions.ts, and src/stores/projects.ts.
Scheduling and Epic Lifecycle
The scheduler continuously selects eligible Todo epics according to priority, dependencies, concurrency/cost constraints, recovery state, and per-repository locks. It dispatches execution and moves epics through pipeline/review lifecycle states. This control plane is concentrated in src/engine/Scheduler.ts, src/engine/PipelineEngine.ts, and src/engine/PipelineStateStore.ts. Persistent domain access is abstracted through src/engine/Database.ts and src/engine/repositories.ts, backed by local SQLite.
Deterministic Multi-Agent Pipeline
HybridPipelineRunner is the central TypeScript state machine: it directs planning and adversarial plan review, splits approved plans into sequential increments, gates each builder increment on tester verification, then performs integration review and final testing/fix loops. Relevant orchestration paths are src/engine/HybridPipelineRunner.ts, src/engine/OrchestratorPool.ts, and src/engine/SpecialistConstants.ts. Agents are managed as sessions/processes, with streaming and buffering boundaries in src/engine/SessionService.ts, src/engine/SessionMessageBuffer.ts, and src/engine/StreamParser.ts.
Agent Providers and Execution
Angy supports direct Anthropic and Gemini APIs through the embedded @angycode/core workspace package, plus Claude Code CLI processes. The reusable agentic loop owns provider streaming, tool calls, session persistence, and usage/cost tracking: code/packages/core/src/agent/AgentLoop.ts, code/packages/core/src/providers/index.ts, and code/packages/core/src/tools/registry.ts. Claude CLI lifecycle/health handling is app-side in src/engine/ClaudeProcess.ts, src/engine/ClaudeHealthMonitor.ts, and src/engine/ProcessManager.ts. External dependencies are Anthropic, Google GenAI, optional claude executable, and user-provided API keys.
Repository Isolation and Human Gate
Each epic operates in an epic/{id} Git branch per target repository; branch creation, changes, merge operations, and diffs are separated from agent reasoning. Core boundaries are src/engine/BranchManager.ts, src/engine/GitManager.ts, and src/engine/DiffEngine.ts. Completed work reaches a human review gate in the Kanban UI before squash merge or rejection/requeue, preventing autonomous pipelines from directly finalizing product changes.
Main entry points: App.vue App shell · KanbanView.vue Human review gate · PipelineEngine.ts Pipeline lifecycle · HybridPipelineRunner.ts Hybrid pipeline runner
Components 17
Desktop UI
- Vue bootstrap
src/main.ts - App shell
src/App.vue - Operations views · Kanban, fleet, and mission-control surfaces.
src/components/kanban/KanbanView.vue - Shared state · Projects, epics, and session state.
src/stores/epics.ts - Human review gate · Users squash merge, reject, or requeue completed work.
src/components/kanban/KanbanView.vue
Control Plane
- Scheduler · Selects eligible work under dependency, lock, cost, and recovery constraints.
src/engine/Scheduler.ts - Pipeline lifecycle
src/engine/PipelineEngine.ts - Pipeline state
src/engine/PipelineStateStore.ts - Hybrid pipeline runner · Plans, reviews, increments, verification, integration, and fix loops.
src/engine/HybridPipelineRunner.ts - Git isolation · Uses an epic/{id} branch per target repository.
src/engine/BranchManager.ts
Agent Execution
- Agent sessions · Manages agent processes and streaming boundaries.
src/engine/SessionService.ts - Agent loop · Owns provider streaming, tools, persistence, and usage tracking.
code/packages/core/src/agent/AgentLoop.ts - Providers and tools · Anthropic, Gemini, and registered tool calls.
code/packages/core/src/providers/index.ts - Claude CLI runtime · Optional local Claude Code process health and lifecycle.
src/engine/ClaudeProcess.ts
Native & Local Data
- Tauri host
src-tauri/src/main.rs - Platform and PTY
src-tauri/src/platform.rs - Local SQLite
src/engine/Database.ts
Connections 18
- Vue bootstrap → App shell: mounts
- App shell → Operations views: presents
- Operations views → Shared state: reads and updates
- App shell → Tauri host: invokes native APIs
- Tauri host → Platform and PTY: uses
- Shared state → Scheduler: submits epic work
- Scheduler → Pipeline lifecycle: dispatches
- Pipeline lifecycle → Hybrid pipeline runner: runs pipeline
- Pipeline lifecycle → Pipeline state: persists lifecycle
- Pipeline state → Local SQLite: stores locally
- Hybrid pipeline runner → Agent sessions: orchestrates roles
- Agent sessions → Agent loop: runs sessions
- Agent loop → Providers and tools: streams and calls tools
- Agent sessions → Claude CLI runtime: launches optional CLI
- Hybrid pipeline runner → Git isolation: operates in epic branch
- Git isolation → Human review gate: submits completed diff
- Human review gate → Scheduler: requeues rejected work
- Human review gate → Git isolation: approves squash merge