Skip to content
2 min readChangelog

Code CLI 2.0

Code CLI gets Mainframe mode for multi-terminal orchestration, an expanded tool system, new agent types, voice input, and deeper ecosystem integration

Code CLI 2.0

The biggest update since launch. Mainframe mode turns Code CLI into an orchestration hub, the tool system has expanded to 24+ tools, and the agent architecture has been redesigned.


Mainframe Mode

One Code CLI instance becomes the hub. Other instances become targets. The hub distributes tasks, monitors progress, and coordinates results — all from your terminal.

How It Works

Start target instances and run /mainframe-connect. Start the hub with /mainframe. The hub discovers targets via file-based discovery, establishes SSE connections for real-time events, and the orchestrator agent takes over.

Three Orchestration Modes

  • Normal — The AI analyzes your request and distributes subtasks across terminals
  • Loop — Set a goal and the orchestrator iterates until it's achieved
  • Manual — Directly interact with individual terminals from the hub

9 Orchestrator Tools

List terminals, check status, send prompts, read messages, create sessions, change models, change agents, abort tasks, and collect results from the async queue.


Expanded Tool System

24+ built-in tools with full context-awareness:

File Operations — Read, write, edit, multi-edit, apply patches, glob search, grep search, directory listing

Code Intelligence — Semantic code search, LSP integration

Execution — Bash with timeout control, subagent spawning for parallel work

Web — URL fetching, web search

Planning — Plan mode tools, todo management, kanban boards

Collaboration — Swarm note (scratchpad for multi-agent coordination), user questions, skill execution, batch tool calls


Agent Types

Eight agent configurations, each with specialized prompts and behaviors — build, explore, generate, multi (swarm), orchestrator, loop police, summary, and title generation.


New in This Release

Voice Input

Speak to Code CLI. Voice transcription feeds directly into the prompt.

Secrets Management

Encrypted credential storage integrated into the CLI. Create, read, and manage secrets from the terminal. Crypto and password modules built in.

Chat Sync

Sessions sync to the web. Register a session, maintain a heartbeat, poll for permissions and messages. Work in the terminal, check progress from your phone.

Session Diff

Code CLI tracks file changes across a session. View the diff with Ctrl+X, s — see exactly what the agent modified.

Todo & Kanban

Track tasks within a session. Todo items and a kanban board (backlog, in-progress, done) accessible via Ctrl+T.


Under the Hood

  • Runtime: Bun (no Node.js overhead)
  • TUI: Solid.js + OpenTUI
  • Server: Hono (HTTP when needed for Mainframe)
  • AI SDK: Vercel AI SDK with multi-provider support
  • Parsing: tree-sitter for code intelligence
  • MCP: Full Model Context Protocol client with OAuth
  • Config: Zod schema validation
  • IDs: ULID-based generation

Stay up to date with Poly

Get the latest engineering, product, and community updates delivered to your inbox.