| 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 |
|---|
| 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