How adhnanjeff/ai_dashboard works
This repository is an agent-work orchestration product with a web dashboard. Users create sessions and workflows, route work to provider-backed agents, review approvals and results, and manage memory, checkpoints, and Git worktrees. The API server is the orchestration entry point; its sampled setup wires scheduling, provider management, memory, worktrees, and resume services. The graph preserves documented-in-code capability modules even where their implementation was not sampled; those relationships are omitted or marked unverified rather than inferred as call chains.
Main entry points: server.ts HTTP API · scheduler.ts Run scheduler · engine.ts Workflow engine · resume-service.ts Resume service
Components 20
Dashboard
- Web dashboard
apps/dashboard/components/Overview.tsx - Session views
apps/dashboard/components/SessionView.tsx - New session
apps/dashboard/components/NewSession.tsx - API client
apps/dashboard/lib/api.ts
Orchestration
- HTTP API
services/orchestrator/src/api/server.ts - Run scheduler
services/orchestrator/src/routing/scheduler.ts - Provider routing
services/orchestrator/src/routing/router.ts - Agent supervisor
services/orchestrator/src/runtime/process-manager/supervisor.ts - Provider accounts
services/orchestrator/src/providers/accounts.ts - Policy and approvals
services/orchestrator/src/policy/policy-service.ts
Work State
- Persistent state
services/orchestrator/src/storage/store.ts - Checkpoints
services/orchestrator/src/checkpoints/checkpoint-service.ts - Resume service
services/orchestrator/src/checkpoints/resume-service.ts - Git worktrees
services/orchestrator/src/worktrees/worktree-service.ts
Product Capabilities
- Project memory
services/orchestrator/src/memory/memory-service.ts - Workflow engine
services/orchestrator/src/workflows/engine.ts - Repository indexing
services/orchestrator/src/indexing/indexer.ts - Factory snapshots
services/orchestrator/src/factory/snapshot.ts
Other components
- User
- Agent provider
Connections 30
- User → New session: starts work
apps/dashboard/components/NewSession.tsx - User → Web dashboard: reviews work
- New session → API client: submits requests
apps/dashboard/components/NewSession.tsx - Session views → API client: loads session data
apps/dashboard/components/SessionView.tsx - API client → HTTP API: HTTP requests
- HTTP API → Run scheduler: constructs scheduler
services/orchestrator/src/api/server.ts - HTTP API → Provider routing: constructs router
services/orchestrator/src/api/server.ts - HTTP API → Provider accounts: constructs provider service
services/orchestrator/src/api/server.ts - HTTP API → Resume service: constructs resumer
services/orchestrator/src/api/server.ts - HTTP API → Project memory: constructs memory service
services/orchestrator/src/api/server.ts - HTTP API → Git worktrees: constructs worktree service
services/orchestrator/src/api/server.ts - Run scheduler → Provider routing: uses routing
services/orchestrator/src/api/server.ts - Run scheduler → Provider accounts: uses providers
services/orchestrator/src/api/server.ts - Run scheduler → Agent supervisor: dispatches runs
services/orchestrator/src/routing/scheduler.ts - Agent supervisor → Agent provider: runs agent
- HTTP API → Persistent state: reads and writes
services/orchestrator/src/api/server.ts - Resume service → Run scheduler: schedules resume
services/orchestrator/src/checkpoints/resume-service.ts - Resume service → Agent supervisor: resumes runs
services/orchestrator/src/checkpoints/resume-service.ts - Resume service → Checkpoints: checks checkpoints
services/orchestrator/src/checkpoints/resume-service.ts - Checkpoints → Persistent state: stores checkpoint state
services/orchestrator/src/checkpoints/checkpoint-service.ts - Checkpoints → Project memory: includes memory
services/orchestrator/src/memory/memory-service.ts - Git worktrees → Persistent state: records worktrees
services/orchestrator/src/worktrees/worktree-service.ts - Workflow engine → Run scheduler: schedules steps
services/orchestrator/src/workflows/engine.ts - Workflow engine → Agent supervisor: runs steps
services/orchestrator/src/workflows/engine.ts - Workflow engine → Git worktrees: uses worktrees
services/orchestrator/src/workflows/engine.ts - Workflow engine → Project memory: uses memory
services/orchestrator/src/workflows/engine.ts - Repository indexing → Project memory: indexes memory
services/orchestrator/src/indexing/indexer.ts - Repository indexing → Git worktrees: uses Git admin
services/orchestrator/src/indexing/indexer.ts - HTTP API → Policy and approvals: enforces policy
services/orchestrator/src/api/server.ts - HTTP API → Factory snapshots: serves snapshots
services/orchestrator/src/api/server.ts