Mainframe Mode

Mainframe mode provides a split-pane terminal interface where multiple agents run simultaneously, each in its own terminal pane. You get real-time visibility into every agent and can interact with any of them directly.

Starting Mainframe

Terminal
bash
# Start mainframe with default layout
codecli --mainframe
# Specify number of panes
codecli --mainframe --panes 4
# Connect to a running mainframe
codecli --connect-mainframe

Commands

CommandDescription
:focus {"<n>"}Switch focus to pane n
:broadcast {"<msg>"}Send message to all panes
:pause {"<n>"}Pause execution in pane n
:resume {"<n>"}Resume a paused pane
:kill {"<n>"}Terminate an agent pane
:spawn {"<agent>"}Add a new agent pane
:layout {"<layout>"}Change layout (2x1, 2x2, 3x1)
:mergeMerge all agent results into a summary
:quitExit mainframe mode
iNote
Mainframe mode works best in terminals with at least 120 columns and 40 rows. It requires ANSI escape sequence support.
PreviousMulti-Agent SwarmsNextPlugin System