Skip to content

About

Orchestrate a team of coding agents: dependency-ordered pipeline (architect → dev → QA → review) or parallel fan-out, streamed live into split panes. Works with Cursor, Claude Code and Codex.

Topics

Resources

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

agent-team-cli

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

Architecture: routeTask splits into the Boss pipeline and a Multitask fan-out; both stream into an EventBus

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.

Demo

Ink split-pane TUI (default)

The Boss pipeline dispatches agents stage by stage, and each role's output streams into its own panel:

Ink split-pane TUI: Boss pipeline with live multi-panel output

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

Interactive REPL and command menu

Inside the REPL, type / and press Enter to open the menu. From there you can switch parallel mode, tmux, workspace, and more:

REPL with slash-command menu

agent-team
# agent-team [run] › /
# pick /parallel, /tmux, /workspace ...
# agent-team [mt] › analyze the backend and web modules in parallel

tmux split

Each agent gets its own pane, and tail -f follows its log live. On macOS a new Terminal window opens automatically:

tmux split: multiple Multitask streams in parallel

agent-team -p --tmux "analyze backend, web and api in parallel"
# attach manually: tmux attach -t agent-team-xxxxxx

One-liners

# 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-run
Sample 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...

Features

  • 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).

Quick start

1. Clone and install

git clone https://github.com/Gary-Lin08/agent-team-cli.git
cd agent-team-cli
npm install
npm run build
npm run install:global

Make sure ~/.local/bin is on your PATH (add it to ~/.zshrc or ~/.bashrc):

export PATH="$HOME/.local/bin:$PATH"

2. Set an API key (optional)

Get a key from Cursor Settings:

export CURSOR_API_KEY="your_key_here"
# or copy .env.example to .env and source it

Without a key, it runs in dry-run mode automatically, which is good for trying out the flow locally.

3. Check your environment

agent-team doctor

4. Install the plugin (Cursor / Claude / Codex)

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

See PLUGIN.md for details.

5. Run

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

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

Invalid tasks

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

A valid task needs at least 3 characters and can't be a placeholder such as q, test or hello.

Common flags

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

Two run modes

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

REPL

agent-team
# › /                       ← type / and press Enter for the command menu
# › add a login page        ← or type a task and press Enter

Slash 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

Configuration

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

Pass a project-level config with --config, or drop an agent-team.config.yaml in your project root.

Agent roles

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.

Requirements

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)

Development

npm install
npm run dev -- "test task"     # run directly with tsx
npm run build                  # compile
npm run typecheck              # type-check
npm test                       # all tests

See CONTRIBUTING.md.

Troubleshooting

command not found: agent-team

npm run install:global
export PATH="$HOME/.local/bin:$PATH"

The header says dry-run but I set a key

Run /status in the REPL. If you turned on /dry-run manually, run it again to turn it off, or /quit and restart.

Agent fails to start / ConfigurationError

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.

Node ExperimentalWarning: SQLite

This comes from the @cursor/sdk local runtime. It's harmless and can be ignored.

Architecture (text)

user input → routeTask (intent router)
               ├─ Boss pipeline → Director    → Worker × N
               └─ Multitask     → Coordinator → Stream × N
                                     ↓
                           runWorkerViaSdk (@cursor/sdk)
                                     ↓
                           EventBus → Ink / tmux / text-mode

License

MIT

About

Orchestrate a team of coding agents: dependency-ordered pipeline (architect → dev → QA → review) or parallel fan-out, streamed live into split panes. Works with Cursor, Claude Code and Codex.

Topics

Resources

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages