How suryaprakashrachamalla/aifeista works
Carnival is a desktop workspace for supervising AI coding agents and related workflows. The primary journey is to open a Studio, start an Act in a chosen mode, supervise agents and their tools, and inspect the resulting work; other major capabilities include live studio worlds, workspace tools and routines, remote handoff, interface mods, and a voice-and-pointer companion. README statements support the product-level links; source excerpts support selected internal calls. Several subsystems are represented by their enclosing directories because their implementation was not sampled.
Main entry points: agent_manager.rs Agent manager · CompanionManager.swift Voice companion · main.ts Desktop shell · pipeline.ts Orchestration modes
Components 27
Desktop workspace
- Desktop shell
runtime/apps/desktop/src/main.ts - Backend lifecycle
runtime/apps/desktop/src/backend-controller.ts - Workspace profile
runtime/apps/desktop/src/project-manager.ts - Localization
runtime/apps/desktop/src/locale.ts - Update coordination
runtime/apps/desktop/src/update-coordinator.ts - Update window
runtime/apps/desktop/src/mandatory-update-window.ts
Agent execution
- Agent manager
crates/layer1-adapters/src/agent_manager.rs - Orchestration modes
runtime/packages/core/tools/src/pipeline.ts - Tool contracts
runtime/packages/core/tools/src/contracts.ts - Tool schemas
runtime/packages/core/tools/src/json-schema.ts - Remote handoff
crates/layer1-adapters/src/remote_handoff.rs
Runtime capabilities
- Studios and Acts
runtime/apps/desktop/src - Studio worlds
runtime/apps/web/src - Workspace tools
runtime/packages - Routines
runtime/packages/schedule/schedule/src - Plugins and mods
runtime/packages/experimental/claude-code-mods/src/engine.ts
Persistence and safety
- Session timeline
runtime/packages/experimental/timeline/src - Sandbox and guards
crates/layer0-sandbox/src/lib.rs - Adapter watchdog
crates/layer0-watchdog/src/lib.rs
Voice companion
- Voice companion
companion/leanring-buddy/CompanionManager.swift - Speech capture
companion/leanring-buddy/BuddyDictationManager.swift - Companion panel
companion/leanring-buddy/CompanionPanelView.swift - Screen capture
companion/leanring-buddy/CompanionScreenCaptureUtility.swift - Window positioning
companion/leanring-buddy/WindowPositionManager.swift - Apple speech
companion/leanring-buddy/AppleSpeechTranscriptionProvider.swift
Other components
- User
- Mac user
Connections 27
- User → Desktop shell: opens and operates
- Desktop shell → Backend lifecycle: starts backend
runtime/apps/desktop/src/main.ts - Backend lifecycle → Workspace profile: prepares profile
runtime/apps/desktop/src/backend-controller.ts - User → Studios and Acts: starts an Act
- Studios and Acts → Agent manager: runs agents
- Agent manager → Orchestration modes: invokes tools
- Orchestration modes → Tool contracts: uses contracts
runtime/packages/core/tools/src/pipeline.ts - Orchestration modes → Tool schemas: validates schemas
runtime/packages/core/tools/src/pipeline.ts - Agent manager → Studio worlds: drives live scenes
- Agent manager → Workspace tools: uses workspace tools
- User → Routines: schedules prompts
- User → Plugins and mods: reshapes interface
- Agent manager → Remote handoff: dispatches remote work
- Remote handoff → Agent manager: returns reviewable patch
- Agent manager → Session timeline: persists sessions
- Agent manager → Sandbox and guards: runs within boundaries
- Sandbox and guards → Adapter watchdog: supports safe swaps
- User → Voice companion: holds push to talk
- Voice companion → Speech capture: starts dictation
companion/leanring-buddy/CompanionManager.swift - Speech capture → Apple speech: uses provider
companion/leanring-buddy/BuddyDictationManager.swift - Voice companion → Companion panel: presents controls
companion/leanring-buddy/CompanionPanelView.swift - Voice companion → Screen capture: captures screen
companion/leanring-buddy/CompanionManager.swift - Voice companion → Window positioning: positions overlay
companion/leanring-buddy/CompanionManager.swift - Mac user → Voice companion: asks aloud
- Desktop shell → Localization: resolves locale
runtime/apps/desktop/src/main.ts - Desktop shell → Update coordination: coordinates updates
runtime/apps/desktop/src/main.ts - Update coordination → Update window: presents update