Dash is a multi-agent orchestration platform that coordinates AI agents to work together on complex tasks. Think of it as an operating system for AI agents.
| Concept | Description |
|---|---|
| Agent | An AI worker that executes tasks (Claude, Kimi, GPT-4) |
| Swarm | A group of agents coordinated to solve a problem |
| Workflow | A defined sequence of steps for agents to execute |
| Context | Shared memory that agents use to coordinate |
graph TB
subgraph Clients
CLI[CLI Tool]
TUI[Terminal UI]
API[REST API]
WEB[Web Dashboard]
end
subgraph Gateway
REST[REST Endpoints]
WS[WebSocket Events]
AUTH[Authentication]
end
subgraph Core
ORCH[Orchestration Engine]
AM[Agent Manager]
SM[Swarm Manager]
WM[Workflow Manager]
end
subgraph Services
CTX[Context Manager]
EVT[Event Bus]
SFT[Safety Manager]
end
subgraph Storage
SQL[SQLite]
RED[Redis]
GIT[Git Worktrees]
end
CLI --> REST
TUI --> REST
API --> REST
WEB --> WS
WEB --> REST
REST --> AUTH
WS --> AUTH
AUTH --> ORCH
ORCH --> AM
ORCH --> SM
ORCH --> WM
AM --> CTX
SM --> CTX
WM --> CTX
AM --> EVT
SM --> EVT
WM --> EVT
ORCH --> SFT
CTX --> SQL
EVT --> RED
AM --> GIT
SM --> GIT
Orchestration Engine - Coordinates all activities, distributes work, aggregates results.
Agent Manager - Spawns, monitors, and terminates AI agents. Handles lifecycle events.
Swarm Manager - Creates agent groups, manages coordination, balances load.
Workflow Engine - Executes multi-step workflows with dependencies and error handling.
Context Manager - Maintains shared state between agents and swarms.
Event Bus - Pub/sub system for real-time updates and logging.
Safety Manager - Validates all actions against safety policies.
Multiple agents work simultaneously on the same task, results aggregated.
Agent A1 ─┐
Agent A2 ─┼─► Results Aggregated
Agent A3 ─┘
Use for: Independent subtasks, search, data collection.
Each agent waits for the previous to complete.
Agent A1 ──► Agent A2 ──► Agent A3 ──► Agent A4
Use for: Pipeline tasks, code → review → test → deploy.
A leader agent coordinates worker agents.
┌──────────┐
│ Leader │
└────┬─────┘
┌─────┼─────┐
▼ ▼ ▼
A1 A2 A3
Use for: Complex coordination, task decomposition.
# Clone and install
git clone https://github.com/davidkimai/dash.git
cd dash
npm install
npm run build
# Check version
./dist/src/index.js --version
# Start API server
./dist/src/index.js dashboard --headless --port 7373# System status
dash status
# Agent operations
dash agent list # List all agents
dash agent spawn "Task" # Create agent
dash agent terminate <id> # Stop agent
# Swarm operations
dash swarm list # List swarms
dash swarm create --name my-swarm --task "Task"
# Workflow operations
dash workflow list
dash workflow run <id>import { createApp } from 'dash';
const app = await createApp({ port: 7373 });
// Create agent
const agent = await app.agents.create({
model: 'kimi-k2.5',
task: 'Research AI agents',
context: { priority: 'high' }
});
// Create swarm
const swarm = await app.swarms.create({
name: 'research-team',
agents: [agent1, agent2, agent3],
strategy: 'parallel'
});
// Execute workflow
const result = await app.workflows.execute({
name: 'analysis-pipeline',
steps: [...]
});dash/
├── src/
│ ├── api/ # REST API endpoints
│ ├── cli/ # CLI commands
│ ├── core/ # Orchestration engine
│ ├── events/ # Event bus
│ ├── workflow/ # Workflow engine
│ ├── scheduling/ # Task scheduling
│ ├── scaling/ # Auto-scaling
│ ├── recovery/ # Fault tolerance
│ ├── safety/ # Safety checks
│ ├── storage/ # Database layer
│ ├── tracing/ # OpenTelemetry
│ └── dashboard/ # Web UI
├── dist/ # Compiled output
└── docs/ # Documentation
npm install # Install dependencies
npm run dev # Development mode
npm run typecheck # TypeScript check
npm test # Run tests
npm run build # Production buildAccess the dashboard at http://localhost:7373 when the server is running.
Available metrics:
- Active agents (running/idle/total)
- Swarm status (running/completed/failed)
- Task throughput
- Error rates
- Latency percentiles
| Document | Description |
|---|---|
| ARCHITECTURE.md | System design |
| API.md | REST API reference |
| CLI.md | CLI command reference |
docker build -t dash .
docker run -p 7373:7373 dashnpm version patch # 2.0.0 → 2.0.1
npm run build
npm publish --access public- Fork the repository
- Create feature branch
- Commit changes
- Push to branch
- Open Pull Request
MIT License - see LICENSE for details.