How kc1t/alethe-agents works
Alethe is a local-first Tauri desktop workspace for running coding agents and shells in persistent project layouts. The principal workflow is to organize projects, open terminals backed by real PTYs, run or resume agent sessions, and keep shared tools and context manageable. The README also documents orchestration, MCP and skills, plugins, routing, and GitHub/Git workflows. The graph combines those documented capabilities with sampled frontend and Rust modules; several feature links are README-level because their runtime implementations were not sampled.
Main entry points: useXtermSession.ts Terminal Session · App.tsx Desktop Shell · projectsStore.ts Project State · WorkspaceView Workspace Views
Components 21
Workspace
- Desktop Shell
src/App.tsx - Project State
src/stores/projectsStore.ts - Workspace Views
src/components/WorkspaceView - Terminal Session
src/components/XTermView/useXtermSession.ts
Agent Runtime
- PTY Runtime
src-tauri/src/pty.rs - Agent Providers
src/lib/agentProviders.ts - Agent Install
src/lib/agentInstall.ts - Session Support
src-tauri/src/claude_sessions.rs
Coordination
- Orchestration UI
src/components/OrchestratorPane/index.tsx - Orchestrator Core
src-tauri/src/orchestrator.rs - MCP Manager
src/components/modals/McpManagerModal.tsx - MCP Runtime
src-tauri/src/mcp_store.rs - AI Memory
src-tauri/src/ai_memory.rs
Shared Capabilities
- Browser Panes
src/components/WebPane/index.tsx - Usage Analytics
src-tauri/src/activity_stats.rs - Remote Control
src-tauri/src/remote/http.rs - 9router Routing
src/lib/router9.ts
Extensions
- Plugin Host
src/lib/plugins/host.ts - Git Control
src/plugins/git-control/GitControl.tsx
Other components
- User
- GitHub
Connections 20
- User → Desktop Shell: uses
README.md - Desktop Shell → Project State: renders workspace
src/App.tsx - Project State → Workspace Views: organizes panes
README.md - Workspace Views → Terminal Session: hosts sessions
README.md - Terminal Session → PTY Runtime: controls PTY
- Terminal Session → Agent Providers: resolves commands
src/components/XTermView/useXtermSession.ts - Agent Providers → Agent Install: supports installation
- Terminal Session → Session Support: resumes sessions
README.md - User → Orchestration UI: configures workers
README.md - Orchestration UI → Orchestrator Core: dispatches work
README.md - User → MCP Manager: manages servers
src/components/modals/McpManagerModal.tsx - MCP Manager → MCP Runtime: manages MCP
- User → AI Memory: manages context
README.md - User → Browser Panes: opens browser panes
README.md - User → Usage Analytics: reviews usage
README.md - User → Remote Control: enables remote access
README.md - Terminal Session → 9router Routing: routes terminals
README.md - Desktop Shell → Plugin Host: initializes plugins
- Plugin Host → Git Control: loads contribution
- Git Control → GitHub: integrates GitHub
README.md