Project guide

Project Guide | Multi-CLI Pilot

Free multi-CLI reliability worksheet for comparing tool adapters and terminal workflows. This guide organizes the repository's original implementation notes for developer-tool builders and agent runtime teams.

Reviewed 2026-07-28. This page is derived from checked-in repository evidence and links back to its source.

Live Demo

Multi-CLI Pilot

One orchestration harness, multiple coding-agent CLIs. Drive Gemini CLI or Qwen CLI from the same agents, workflows, prompts, hooks, MCP tools, and team primitives.

Multi-CLI Pilot is the successor to gemini-pilot and qwen-pilot. Both repos have been consolidated here and the Gemini-only APIs are preserved as deprecated aliases — existing gp / gemini-pilot commands continue to work.

System Overview

A multi-agent CLI harness that shows how complex coding work can be coordinated without losing traceability.

AreaDetails
UsersEngineering teams, automation leads, and internal platform groups experimenting with agent-assisted development.
Technical pathValidate the demo, README, architecture notes, and quality gate before deeper workflow review.
System scopePrompt management, workflows, coordination, task queues, and MCP support in a reviewable CLI surface.
Operating boundaryAgent output remains advisory and approval-required; production repositories should keep human approval and CI gates.
Evaluation pathRun the local test/build scripts and inspect the workflow examples and coordination docs.

Evaluation Path

Architecture Notes

Why

Coding-agent CLIs ship fast but each one ends up with its own agents, workflows, and tmux scripts. Multi-CLI Pilot abstracts the CLI behind a provider adapter so the harness, HUD, MCP server, and tool- reliability pipeline stay the same regardless of which CLI you target.

Architecture

flowchart LR
  subgraph UX["UX"]
    CLI[mcp / gp]
    HUD[HUD display]
  end

  subgraph Core["Multi-CLI Pilot Core"]
    Config[Config + Env<br/>provider, models, approval]
    Agents[16 Agents + Registry]
    Workflows[10 Workflows]
    Hooks[Hook Manager]
    Team[Team Coordinator<br/>plan/execute/verify/fix]
    Harness[Harness<br/>session + metrics + state]
    MCP[MCP Server<br/>tools exported]
    ToolRel[Tool-Call Reliability<br/>parser + middleware]
  end

  subgraph Providers["Provider Adapters"]
    Gemini[Gemini CLI<br/>gemini]
    Qwen[Qwen CLI<br/>qwen]
  end

  CLI --> Config
  CLI --> Workflows
  CLI --> Agents
  Config --> Harness
  Harness --> Providers
  Workflows --> Harness
  Team --> Harness
  Hooks --> Harness
  MCP --> Harness
  HUD --> Harness
  ToolRel --> Harness

Features

macOS

  1. Download or clone this repo
  2. Double-click Install-Mac.command
  3. Open Terminal and type mcp --help (or the legacy gp --help)

Windows

  1. Download or clone this repo
  2. Double-click Install-Windows.bat
  3. Open CMD and type mcp --help

Linux

git clone https://github.com/KIM3310/multi-cli-pilot.git
cd multi-cli-pilot
chmod +x Install-Linux.sh && ./Install-Linux.sh

Source Install

npm install
npm run build
npm link

The npm registry package is not published. The repository is marked private until package ownership, release signing, and support policy are in place.

Requirements

Quick Start


## Run with the default provider (Gemini)
mcp


## Switch to Qwen for the current session
MCP_PROVIDER=qwen mcp


## Legacy aliases still work
gp
gemini-pilot

Provider Selection

The provider is resolved from the first matching source:

  1. MCP_PROVIDER (or the legacy GP_PROVIDER) environment variable
  2. provider field in .gemini-pilot/config.json (project)
  3. provider field in ~/.config/gemini-pilot/config.json (user)
  4. Built-in default (gemini)

Example project config:

{
  "provider": "qwen",
  "session": { "approvalMode": "auto", "defaultTier": "balanced" }
}

When provider is set to qwen and models.* entries have not been overridden, the loader substitutes Qwen tier defaults (qwen3-coder-plus / qwen3-coder / qwen3-coder-flash) automatically.

Project Structure

multi-cli-pilot/
  AGENTS.md           # Master orchestration contract
  prompts/            # 16 agent role prompts (markdown)
  workflows/          # 10 workflow definitions (markdown with frontmatter)
  src/
    agents/           # Agent registry
    benchmark/        # Benchmark runner
    cli/              # CLI entry point
    config/           # Config loader, schema, provider resolution
    errors/           # Error codes
    harness/          # Session harness (provider-aware)
    hooks/            # Event hook manager
    hud/              # HUD renderer
    init/             # `mcp init` templates
    mcp/              # MCP server integration
    metrics/          # Runtime session metrics tracker
    plugins/          # Prompt/workflow plugin loader
    prompts/          # Prompt file loader
    providers/        # Provider adapter layer (Gemini, Qwen)
    state/            # State manager and schema
    team/             # Team coordinator (plan/execute/verify/fix)
    tool-bench/       # Tool-calling benchmark harness
    tool-reliability/ # Tool-call parser + middleware
    utils/            # fs, logger, small helpers
    workflows/        # Workflow runner
  __tests__/          # Vitest test suite (225 tests)

Commands

CommandDescription
mcp initScaffold .gemini-pilot/ with config, memory, workflows
mcpLaunch an interactive session with the active provider
mcp config showPrint the resolved configuration
mcp workflows listList available workflows
mcp workflows run <name>Execute a workflow end-to-end
mcp agents listList registered agents
mcp teamStart a tmux-based multi-agent team

Backward Compatibility

source distribution.

are retained as deprecated type aliases pointing at the new MultiCliPilotConfig / MultiCliPilotConfigSchema names.

don't need to migrate anything.

Development

npm install
npm run typecheck      # strict TypeScript
npm test               # 225 tests across config, harness, team, MCP, …
npm run lint           # biome
npm run build          # emit to dist/

Cloud + AI Architecture

Enterprise Productization

System Architecture

Service Architecture

Search And Service Surface