| name | viben |
| description | Viben CLI for AI-assisted development with multi-agent orchestration. Use when user asks about viben commands, wants to manage agents/tasks/providers, configure workspaces, or orchestrate multi-agent workflows. Triggers include "viben", "create agent", "start task", "swarm", "gateway", "provider", "executor", "mcp server", "skill install". |
Viben CLI
Viben is an AI-assisted development CLI with multi-agent orchestration.
Core Concepts
- Executor: Bottom-layer coding agent (Claude Code, Cursor, Gemini CLI)
- Agent: Executor + Skills + Prompts + MCP + Memory
- Task: Development unit with context injection
- Swarm: Multi-agent orchestration with Git worktree isolation
Source Code Structure
CLI (packages/core/src/cli/)
packages/core/src/cli/
โโโ bin.ts # Entry point
โโโ cli.ts # Program setup
โโโ index.ts # Exports
โโโ types.ts # CLI types
โโโ lib/ # Shared utilities
โโโ commands/ # Command implementations
โโโ index.ts # Command registration
โโโ init.ts # viben init
โโโ config.ts # viben config
โโโ workspace.ts # viben workspace
โโโ user.ts # viben user
โโโ gateway.ts # viben gateway
โโโ service.ts # viben service
โโโ executor.ts # viben executor
โโโ agent.ts # viben agent
โโโ task.ts # viben task
โโโ swarm.ts # viben swarm
โโโ session.ts # viben session
โโโ context.ts # viben context
โโโ queue.ts # viben queue
โโโ provider.ts # viben provider
โโโ model.ts # viben model
โโโ mcp.ts # viben mcp
โโโ skill.ts # viben skill
โโโ channel.ts # viben channel
โโโ cron.ts # viben cron
โโโ telemetry.ts # viben telemetry
Gateway API (packages/core/src/gateway/)
packages/core/src/gateway/
โโโ index.ts # Server setup (Fastify)
โโโ state.ts # AppState management
โโโ middleware/ # Auth, CORS, etc.
โโโ queue/ # Task queue system
โโโ sse/ # Server-Sent Events
โโโ routes/ # API endpoints
โโโ index.ts # Route registration
โโโ health.ts # GET /health
โโโ agents.ts # /api/agent/*
โโโ tasks.ts # /api/task/*
โโโ sessions.ts # /api/sessions/*
โโโ agent-run.ts # /api/agent-run/* (SSE)
โโโ agent-ws.ts # /api/agent-ws/* (WebSocket)
โโโ cron.ts # /api/cron/*
โโโ channels.ts # /api/channel/*
โโโ executors.ts # /api/executor/*
โโโ models.ts # /api/model/*
โโโ providers.ts # /api/provider/*
โโโ workspaces.ts # /api/workspace/*
โโโ mcp.ts # /api/mcp/*
โโโ queue.ts # /api/queue/*
โโโ github.ts # /api/github/*
โโโ group-chats.ts # /api/group-chat/*
โโโ history.ts # /api/history/*
โโโ terminal.ts # /api/terminal/*
โโโ files.ts # /api/files/*
โโโ filesystem.ts # /api/fs/*
โโโ kanban-data.ts # /api/kanban/*
โโโ preferences.ts # /api/preferences/*
โโโ ws.ts # WebSocket handlers
Other Core Modules
packages/core/src/
โโโ agents/ # Agent definitions & runner
โโโ services/ # Business logic services
โโโ config/ # Configuration management
โโโ db/ # Database (SQLite)
โโโ executors/ # Executor integrations
โโโ models/ # LLM model handling
โโโ providers/ # API provider handling
โโโ mcp/ # MCP client
โโโ task/ # Task state machine
โโโ team/ # Team collaboration
โโโ workspace/ # Workspace management
โโโ channels/ # Notification channels
โโโ github/ # GitHub integration
โโโ group-chat/ # Group chat support
โโโ skills/ # Skill system
โโโ sandbox/ # Sandbox execution
โโโ telemetry/ # Usage telemetry
โโโ types/ # Shared types
Command Reference
ๆ ธๅฟๅๅงๅไธ้
็ฝฎ
| Document | Command | Description |
|---|
| init.md | viben init | ๅทฅไฝๅบๅๅงๅ |
| config.md | viben config | Git ้ฃๆ ผ้
็ฝฎ็ฎก็ |
| workspace.md | viben workspace | ๅทฅไฝๅบๆไฝ |
| user.md | viben user | ็จๆท่บซไปฝ็ฎก็ |
ๆๅกไธ่ฟ่กๆถ
| Document | Command | Description |
|---|
| service.md | viben service | ๅๅฐๆๅก็ฎก็ |
| gateway.md | viben gateway | Gateway ่ฟ่กๆถ |
ๆง่กๅจไธๆบ่ฝไฝ
ไปปๅกไธ้็พค่ฐๅบฆ
| Document | Command | Description |
|---|
| task.md | viben task | ไปปๅก็ฎก็๏ผCRUDใไธไธๆใ่งๅใ็ๆง๏ผ |
| swarm.md | viben swarm | ๆบ่ฝไฝ้็พค่ฐๅบฆ |
| session.md | viben session | ๅผๅไผ่ฏ็ฎก็ |
| context.md | viben context | ่ทๅๅฝๅๅผๅไธไธๆ |
| queue.md | viben queue | Gateway ไปปๅก้ๅ็ฎก็ |
ๆจกๅไธๆๅกๅ
| Document | Command | Description |
|---|
| provider.md | viben provider | API Provider ็ฎก็ |
| model.md | viben model | Model ็ฎก็ |
ๆฉๅฑไธ้ๆ
| Document | Command | Description |
|---|
| mcp.md | viben mcp | MCP Server ็ฎก็ |
| skill.md | viben skill | Skill ็ฎก็ |
| channel.md | viben channel | Chat Channel ็ฎก็ |
่ชๅจๅ
| Document | Command | Description |
|---|
| cron.md | viben cron | ๅฎๆถไปปๅก็ฎก็ |
Global Options
--json Output as JSON
--global, -g Use global config
--workspace Use workspace config
-n, --name <id> Specify agent name/ID
--verbose, -v Verbose output
--quiet, -q Suppress non-essential output
--help, -h Show help