Skip to main content

Agent Console

Monitor, message, start, rename, kill, and connect running AI agents from one multi-agent terminal UI.

On this page

The agent console command opens an interactive terminal UI for working with multiple AI agents at once. Use it when you want a multi-agent control room for monitoring active sessions, sending quick messages, starting managed agents, renaming or stopping agents, and connecting configured messaging channels without switching between several terminal windows.

bash
ai-devkit agent console

Agent Console showing an agent list, preview pane, and hotkey footer

Prerequisites#

  • AI DevKit installed globally (see Getting Started)
  • An interactive terminal: agent console requires a TTY
  • Supported agent tools installed for the workflows you want to use, such as Claude Code, Codex, Gemini CLI, or opencode
  • tmux installed if you want to start or kill managed agents from the console
  • A configured Telegram or Slack channel if you want to start remote channel bridges from the console (see Channel)

What the Console Shows#

The console has two main areas:

  1. Agent list: shows detected agents, status, name, agent type, recent summary or project path, and a remote marker when a channel bridge is connected.
  2. Preview pane: shows the selected agent's recent conversation with Markdown formatting, metadata, project path, and connected channel name when one is active.

While the selected agent is running, the preview shows a live working spinner on its bottom row. The row returns to conversation content when the agent is no longer running; terminals reporting TERM=dumb use an ASCII spinner.

On narrow terminals, the console hides the preview pane. Resize the terminal wider to show both panes.

Hotkeys#

Press h inside the console to show the built-in help panel.

KeyAction
/Filter agents by name; press Esc to clear the filter
j / DownSelect next agent
k / UpSelect previous agent
sStart a new managed agent
rRename the selected agent
pPin or unpin the selected agent
cStart a Telegram channel for the selected agent
CStop the selected agent's Telegram channel
MShow or hide the recent-memory pane
oOpen the selected agent terminal
vFocus the selected agent's detail/chat pane
i / mMessage the selected agent
KKill the selected agent
hShow or hide the help panel
qQuit agent console

Common Workflows#

Monitor Running Agents#

Start the console from any terminal to coordinate local multi-agent coding work:

bash
ai-devkit agent console

Use j and k to move between agents. The preview pane updates as you select agents and renders common Markdown formatting. Press / to filter the list by agent name; press Esc to clear the filter. Press p to pin or unpin an agent. Pinned agents are grouped at the top of the list.

The bottom-row working animation reflects the selected agent's last observed running status. It continues while text entry temporarily pauses polling and disappears for waiting, idle, or unknown agents.

Press v to focus the detail/chat pane, then use j and k to scroll. Press Esc or Left to return to the agent list. Press M to toggle a read-only list of recent memory items.

Send a Message#

Select an agent, press i or m, type your message, then press Enter.

The console sends the message to the selected agent using the same terminal control path as:

bash
ai-devkit agent send "your message" --id <agent-name>

If the agent is not waiting for input, AI DevKit may still send the message, but the agent might not process it until its terminal is ready.

Start a Managed Agent#

Press s to open the start-agent pane. Fields are visited in order: type, mode, cwd, name, task, args, then submit/cancel:

  • In the type field, move through the vertical list with Up/Down or j/k; types whose harness is unavailable are marked so you can pick a working one.
  • In the mode field, use Left/Right or h/l to switch between interactive and durable (durable is limited to claude, codex, and pi).
  • cwd accepts ~ expansion; press Ctrl+R in that field to cycle recently used project directories. task sets an initial prompt and args passes extra harness CLI arguments.
  • Tab or Down moves to the next field; Shift+Tab or Up moves back. Enter advances through fields and submits from the name field; Esc cancels.
  • While a start is pending, the pane shows elapsed time and lets you cancel. The pane remembers your last type and cwd.

Supported start types:

TypeAgent
claudeClaude Code
codexCodex
copilotGitHub Copilot
gemini_cliGemini CLI
grok_cliGrok CLI
antigravity_cliAntigravity CLI
opencodeopencode
piPi
kiroKiro CLI
devinDevin
museMuse Code

Starting an agent from the console uses the configured managed runtime (tmux by default, or Herdr when agentRuntime.provider is set to herdr in the global ~/.ai-devkit/.ai-devkit.json file). If tmux is not installed or the selected agent command is not in PATH, the console shows an error.

Rename an Agent#

Select an agent and press r. Agent names must be 2-64 characters, use lowercase letters, numbers, and hyphens, and start and end with a letter or number.

Renaming updates AI DevKit's local agent registry. It does not rename the project directory.

Open an Agent Terminal#

Select an agent and press o to focus its terminal window. This uses the same terminal focusing behavior as:

bash
ai-devkit agent open <agent-name>

Terminal focusing works with tmux, WezTerm, Ghostty, iTerm2, and Apple Terminal. VS Code terminal is not supported for external focus control.

Stop an Agent#

Select an agent and press K. Press Enter or y to confirm, or Esc or n to cancel.

Managed agents started through AI DevKit are stopped together with their tmux session.

Channel Controls#

The console can start and stop configured Telegram or Slack channel bridges for the selected agent.

First configure a channel:

bash
ai-devkit channel connect telegram
# or: ai-devkit channel connect slack --name work-slack

Then open the console:

bash
ai-devkit agent console

Select an agent, press c, choose a configured channel, then press Enter. The console starts the channel bridge in the background. The agent list shows remote, and the preview pane shows the connected channel name.

Press C on the selected agent to stop its running channel bridge.

If no channels are configured, the channel picker shows:

text
No channels configured. Run channel connect first.

For more channel setup details, see Channel.

Troubleshooting#

"agent console requires an interactive terminal (TTY)"#

Run ai-devkit agent console directly in a terminal, not from a non-interactive script or redirected command.

"No running agents"#

Start an agent in another terminal, or press s to start a managed agent from the console.

Preview says "No session file available"#

The selected agent has not created a readable session file yet. Send a message or wait for the agent to produce conversation output, then check the preview again.

"No channels configured"#

Run:

bash
ai-devkit channel connect telegram
# or: ai-devkit channel connect slack --name work-slack

Then reopen the channel picker with c.

Channel start fails#

Check channel status and logs:

bash
ai-devkit channel status

If a bridge is already running for that channel, stop it first:

bash
ai-devkit channel stop <channel-name>
esc