TypeScript · Node ≥ 22.13 · Ink / tmux · MIT
A multi-agent, split-screen CLI powered by the Cursor SDK. It works like Cursor's agent: type a task and it runs. There are two modes, a Boss pipeline (architect, then UI, then developer, then QA, then reviewer) and Multitask, which runs streams truly in parallel. Every agent streams live into its own pane.
Figure 1. One prompt, many agents, one screen. The Boss pipeline handles feature work; Multitask fans out across a repository. Both stream into one event bus.
The Boss pipeline dispatches agents stage by stage, and each role's output streams into its own panel:
agent-team "add a login page to the project"
# or try it without an API key
agent-team "add a login page to the project" --dry-runInside the REPL, type / and press Enter to open the menu. From there you can switch parallel mode, tmux, workspace, and more:
agent-team
# agent-team [run] › /
# pick /parallel, /tmux, /workspace ...
# agent-team [mt] › analyze the backend and web modules in parallelEach agent gets its own pane, and tail -f follows its log live. On macOS a new Terminal window opens automatically:
agent-team -p --tmux "analyze backend, web and api in parallel"
# attach manually: tmux attach -t agent-team-xxxxxx# Boss pipeline (architect → UI → dev → QA → review)
agent-team "add a login page to the project"
# Multitask, truly parallel
agent-team -p "analyze the whole monorepo in parallel"
# set a working directory and dry-run
agent-team "analyze the project structure" --workspace ./my-app --dry-runSample dry-run output (click to expand)
[Boss] Task received: add a login page to the project
[Boss] Planned 5 subtasks: default pipeline: architecture → development → test + review
[Boss] Running 2 tasks in parallel: task-architect, task-ui
[task-architect] [sim] Architect is working...
[task-ui] [sim] UI designer is working...
[task-dev] [sim] Developer is working...
[Boss] Aggregating results...
- Boss pipeline. Architect, UI, developer, QA and reviewer, dispatched in stages by dependency.
- Multitask parallelism. A coordinator splits a large goal into several streams that analyze or execute at the same time.
- Ink split-pane TUI. Live multi-panel output inside your terminal (the default).
- tmux split. Every worker gets its own pane (
--tmux). - Interactive REPL. Type
/for a command menu, just like the Cursor CLI. - dry-run. Runs the whole flow with simulated output, no API key needed.
- Cross-host plugin. One
plugin/package plugs into Cursor, Claude Code and Codex (Skill, MCP and slash commands).
git clone https://github.com/Gary-Lin08/agent-team-cli.git
cd agent-team-cli
npm install
npm run build
npm run install:globalMake sure ~/.local/bin is on your PATH (add it to ~/.zshrc or ~/.bashrc):
export PATH="$HOME/.local/bin:$PATH"Get a key from Cursor Settings:
export CURSOR_API_KEY="your_key_here"
# or copy .env.example to .env and source itWithout a key, it runs in dry-run mode automatically, which is good for trying out the flow locally.
agent-team doctoragent-team plugin install
# or install into a single host:
# agent-team plugin install -t cursor
# agent-team plugin install -t claude
# agent-team plugin install -t codexSee PLUGIN.md for details.
# interactive mode (recommended)
agent-team
# one-liner: Boss pipeline
agent-team "add a login page to the project"
# parallel mode: several Multitask streams at once
agent-team -p "analyze the backend and web modules in parallel"
# set a working directory
agent-team "analyze the project structure" --workspace /path/to/project| Command | Description |
|---|---|
agent-team |
Enter the interactive REPL |
agent-team "task" |
Run a task (Boss pipeline by default) |
agent-team -p "goal" |
Multitask parallel mode |
agent-team multitask "goal" |
Same as above (mt is an alias) |
agent-team doctor |
Environment check |
agent-team install |
Install to ~/.local/bin |
agent-team roles list |
List agent roles |
agent-team roles show architect |
Show a role's prompt |
Tasks that are too short or are placeholders are rejected before the pipeline starts (exit code 2):
agent-team run "q"
# ❌ Task description too short or invalid ("q")
# exit code: 2A valid task needs at least 3 characters and can't be a placeholder such as q, test or hello.
| Flag | Description |
|---|---|
-w, --workers <n> |
Max concurrent workers (default 3) |
-s, --streams <n> |
Max Multitask streams (default 6) |
-p, --parallel |
Enable parallel Multitask mode |
--workspace <path> |
Working directory |
--config <path> |
Custom config file |
--dry-run |
Force simulation (skips the real API even with a key) |
--tmux |
Use tmux split panes (requires tmux) |
-m, --mode ink|tmux |
UI mode |
| Mode | Triggered by | Best for |
|---|---|---|
| Boss pipeline | default / agent-team "task" |
Feature work: five roles advance in dependency order |
| Multitask parallel | -p, or tasks that mention "parallel", "analyze the project", etc. |
Large-repo analysis: a coordinator fans out several streams at once |
agent-team
# › / ← type / and press Enter for the command menu
# › add a login page ← or type a task and press EnterSlash commands inside the REPL:
| Command | Description |
|---|---|
/parallel |
Switch to parallel mode |
/run |
Switch to pipeline mode |
/workers 4 |
Set concurrency |
/streams 8 |
Set stream count |
/dry-run |
Toggle simulation |
/workspace /path |
Change working directory |
/status |
Show current settings |
/quit |
Exit |
Default config: agent-team.config.yaml
workers:
maxConcurrent: 3
defaultModel: composer-2.5 # Cursor SDK model ID
ui:
mode: ink # ink | tmux
refreshMs: 100
logLines: 30
multitask:
maxStreams: 6
defaultParallel: 4
roles:
enabled:
- architect
- ui-designer
- developer
- qa
- reviewerPass a project-level config with --config, or drop an agent-team.config.yaml in your project root.
| Role ID | Name | Responsibility |
|---|---|---|
boss |
Boss | Splits the task, orders dependencies, dispatches workers |
multitask-coordinator |
Coordinator | Plans parallel streams and aggregates results |
architect |
Architect | Technical design and module boundaries |
ui-designer |
UI designer | Component specs and visual structure |
developer |
Developer | Writes the code |
qa |
QA engineer | Tests and edge cases |
reviewer |
Reviewer | Security and quality review |
Role prompts live in roles/*.md; edit them as you like.
| Dependency | Version | Required |
|---|---|---|
| Node.js | >= 22.13 | Yes |
| CURSOR_API_KEY | — | No (dry-run without it) |
| tmux | any | No (only for --tmux) |
| Cursor agent CLI | — | No (optional) |
npm install
npm run dev -- "test task" # run directly with tsx
npm run build # compile
npm run typecheck # type-check
npm test # all testsSee CONTRIBUTING.md.
npm run install:global
export PATH="$HOME/.local/bin:$PATH"Run /status in the REPL. If you turned on /dry-run manually, run it again to turn it off, or /quit and restart.
Check that defaultModel in agent-team.config.yaml is valid and that CURSOR_API_KEY is exported. Run agent-team doctor to test API connectivity.
This comes from the @cursor/sdk local runtime. It's harmless and can be ignored.
user input → routeTask (intent router)
├─ Boss pipeline → Director → Worker × N
└─ Multitask → Coordinator → Stream × N
↓
runWorkerViaSdk (@cursor/sdk)
↓
EventBus → Ink / tmux / text-mode


