TUI Commands
This page explains what each Tandem TUI command does, when to use it, and the most common examples.
Tip: type / in chat to open command autocomplete.
Command Syntax
Section titled “Command Syntax”<required>means you must provide a value.[optional]means the value is optional.- For JSON arguments, use valid JSON (double quotes around keys/strings).
Global Keybindings
Section titled “Global Keybindings”These work from most TUI screens.
| Key | What it does |
|---|---|
Ctrl+C | In chat: cancel active run. Press again within 1.5s to quit. |
Ctrl+X | Quit Tandem TUI immediately. |
Ctrl+N | Create a new agent pane in chat. |
Ctrl+W | Close active agent pane. |
Ctrl+U | Page up in transcript/content. |
Ctrl+D | Page down in transcript/content. |
Ctrl+Y | Copy latest assistant response to clipboard. |
Main Menu Keys (Sessions Screen)
Section titled “Main Menu Keys (Sessions Screen)”| Key | What it does |
|---|---|
n | Create a new session. |
j / Down | Select next session. |
k / Up | Select previous session. |
d / Delete | Delete selected session. |
Enter | Open selected session. |
q | Quit TUI. |
Chat Keys
Section titled “Chat Keys”| Key | What it does |
|---|---|
Enter | Send current prompt. |
Shift+Enter / Alt+Enter | Insert newline in composer. |
Tab / Shift+Tab | Next/previous agent pane. |
Alt+1..9 | Jump directly to agent A1..A9. |
Alt+M | Cycle mode (ask, plan, coder, etc). |
Alt+G | Toggle Focus/Grid view. |
[ / ] | Previous/next grid page. |
Alt+R | Open Request Center. |
Alt+I | Queue steering interrupt message. |
F1 | Help modal. |
F2 | Open docs. |
Request Center Keys
Section titled “Request Center Keys”When requests are pending:
| Key | What it does |
|---|---|
Enter | Confirm current request choice/answer. |
r | Reject current request. |
Esc | Close request center. |
Space | Toggle selected option (questions) or cycle permission choice. |
Left / Right | Move choice cursor (question options or permission choice). |
1..9 | Select option by number (when available). |
Up / Down | For question requests: move option cursor. For permission requests: move request cursor. |
Ctrl+Up / Ctrl+Down | Move previous/next request explicitly. |
Ctrl+E | Expand/collapse compact request panel. |
Slash Commands
Section titled “Slash Commands”Basics
Section titled “Basics”Show built-in command help.
/help/engine status
Section titled “/engine status”Show engine health, version, mode, endpoint, and connection source.
/engine status/engine restart
Section titled “/engine restart”Restart the engine process and reconnect.
/engine restart/engine token and /engine token show
Section titled “/engine token and /engine token show”Show masked engine token or full token.
/engine token/engine token showOpen the current workspace git diff in the pager overlay.
/diff/files [query]
Section titled “/files [query]”Open fuzzy file search and insert the selected path as an @mention.
/files/files src/clientEdit the current draft in $VISUAL or $EDITOR, then return to the TUI.
/edit/workspace [show|use <path>]
Section titled “/workspace [show|use <path>]”Show or switch the active workspace directory used by the current TUI process.
/workspace/workspace show/workspace use /path/to/your/workspace/workspace use ~/projects/tandemEngine Context Runs
Section titled “Engine Context Runs”/context_runs
Section titled “/context_runs”List context runs from the engine.
/context_runs/context_run_create <json>
Section titled “/context_run_create <json>”Create a new context run.
/context_run_create {"objective":"Summarize the run plan","workspace":"/path/to/your/workspace"}/context_run_get <run_id>
Section titled “/context_run_get <run_id>”Show the current state of a context run.
/context_run_get run_123/context_run_events <run_id>
Section titled “/context_run_events <run_id>”Stream recent events for a context run.
/context_run_events run_123/context_run_pause <run_id>
Section titled “/context_run_pause <run_id>”Pause a running context run.
/context_run_pause run_123/context_run_resume <run_id>
Section titled “/context_run_resume <run_id>”Resume a paused context run.
/context_run_resume run_123/context_run_cancel <run_id>
Section titled “/context_run_cancel <run_id>”Cancel a context run.
/context_run_cancel run_123/context_run_blackboard <run_id>
Section titled “/context_run_blackboard <run_id>”Show the blackboard summary for a context run.
/context_run_blackboard run_123/context_run_next <run_id>
Section titled “/context_run_next <run_id>”Ask the engine to choose the next step.
/context_run_next run_123/context_run_replay <run_id>
Section titled “/context_run_replay <run_id>”Replay a context run from events/checkpoints.
/context_run_replay run_123/context_run_lineage <run_id>
Section titled “/context_run_lineage <run_id>”Show decision lineage for a context run.
/context_run_lineage run_123/context_run_bind <run_id>
Section titled “/context_run_bind <run_id>”Bind active agent todo updates to a context run.
/context_run_bind run_123/context_run_sync_tasks <run_id>
Section titled “/context_run_sync_tasks <run_id>”Sync current TUI tasks into context run steps.
/context_run_sync_tasks run_123Sessions and Chat
Section titled “Sessions and Chat”/sessions
Section titled “/sessions”List available sessions with IDs.
/sessions/new [title...]
Section titled “/new [title...]”Create a new session. If title is omitted, default title is used.
/new/new Release prep/use <session_id>
Section titled “/use <session_id>”Switch current chat to an existing session.
/use 1aa70178-.../recent
Section titled “/recent”List recently used slash commands and show replay helpers.
/recent/recent run <index>
Section titled “/recent run <index>”Replay a previously used slash command by its 1-based index.
/recent run 1/recent clear
Section titled “/recent clear”Clear stored recent slash-command history.
/recent clear/title <new title...>
Section titled “/title <new title...>”Rename current session.
/title Plan for March launch/prompt <text...>
Section titled “/prompt <text...>”Send text to current session (same as typing normally, but explicit).
/prompt Summarize this repository architecture./messages [limit]
Section titled “/messages [limit]”Show historical messages from current session.
/messages/messages 30/cancel
Section titled “/cancel”Cancel active run in current session.
/cancel/last_error
Section titled “/last_error”Show most recent prompt/system error for current session.
/last_errorCopy latest assistant response to clipboard.
/copyAgent Commands
Section titled “Agent Commands”/agent new
Section titled “/agent new”Create additional agent pane (multi-agent chat view).
/agent new/agent list
Section titled “/agent list”List agent panes, status, and bound session IDs.
/agent list/agent use <A#>
Section titled “/agent use <A#>”Switch active agent pane.
/agent use A2/agent close
Section titled “/agent close”Close active agent pane.
/agent close/agent fanout [n]
Section titled “/agent fanout [n]”Ensure n agents exist and switch to Grid view. Default is 4.
- If a goal is provided (
/agent fanout [n] <goal...>), TUI dispatches a coordinated team kickoff to workers. - If current mode is
plan, fanout auto-switches mode toorchestrate.
/agent fanout/agent fanout 4/agent fanout 6/agent fanout 4 ship vps stress-lab improvements/modes
Section titled “/modes”List available modes.
/modesShow current mode.
/mode/mode <name>
Section titled “/mode <name>”Set mode (ask, plan, coder, explore, immediate, orchestrate).
/mode plan/mode coderProviders and Models
Section titled “Providers and Models”/providers
Section titled “/providers”List providers known by engine and whether configured.
/providers/provider <id>
Section titled “/provider <id>”Set active provider for new requests.
/provider openrouter/models [provider]
Section titled “/models [provider]”List models for active or specified provider.
/models/models openrouter/model <model_id>
Section titled “/model <model_id>”Set active model.
/model z-ai/glm-5Keys and Credentials
Section titled “Keys and Credentials”Show configured provider auth/key status.
/keys/key set <provider> <api_key>
Section titled “/key set <provider> <api_key>”Set provider key.
/key set openrouter sk-or-.../key remove <provider>
Section titled “/key remove <provider>”Remove stored provider key.
/key remove openrouter/key test <provider>
Section titled “/key test <provider>”Test connectivity for a provider.
/key test openrouterRequest Approval and Questions
Section titled “Request Approval and Questions”/requests
Section titled “/requests”Open request center for pending permission/question requests.
/requests/approve <request_id> [always]
Section titled “/approve <request_id> [always]”Approve tool permission request once or persistently.
/approve req_123/approve req_123 always/approve all
Section titled “/approve all”Approve all pending requests in current session.
/approve all/deny <request_id>
Section titled “/deny <request_id>”Deny a permission request.
/deny req_123/answer <question_id> <reply>
Section titled “/answer <question_id> <reply>”Send freeform answer text to a question request.
/answer q_456 Proceed with option 2.Tools and Queue Control
Section titled “Tools and Queue Control”/tool <name> <json_args>
Section titled “/tool <name> <json_args>”Pass-through tool call directly to engine.
/tool webfetch {"url":"https://tandem.ac/","return":"text"}/steer <message>
Section titled “/steer <message>”Queue steering message to redirect active run.
/steer Focus only on tests that currently fail./followup <message>
Section titled “/followup <message>”Queue follow-up message after active run completes.
/followup Next, generate a rollout checklist./queue
Section titled “/queue”Show steering/follow-up queue state.
/queue/queue clear
Section titled “/queue clear”Clear queued steering and follow-up messages.
/queue clearTask Commands (Local Task List Panel)
Section titled “Task Commands (Local Task List Panel)”/task add <description...>
Section titled “/task add <description...>”Add local task item.
/task add write smoke tests for auth flow/task done <id> /task fail <id> /task work <id> /task pending <id>
Section titled “/task done <id> /task fail <id> /task work <id> /task pending <id>”Update task status.
/task work task-3/task done task-3/task pin <id>
Section titled “/task pin <id>”Pin/unpin task in list.
/task pin task-2/task list
Section titled “/task list”List current tasks and statuses.
/task listRoutines
Section titled “Routines”/routines
Section titled “/routines”List routines.
/routines/routine_create <id> <interval_seconds> <entrypoint>
Section titled “/routine_create <id> <interval_seconds> <entrypoint>”Create interval routine.
/routine_create nightly-summary 86400 mission.default/routine_edit <id> <interval_seconds>
Section titled “/routine_edit <id> <interval_seconds>”Update routine schedule.
/routine_edit nightly-summary 43200/routine_pause <id> /routine_resume <id>
Section titled “/routine_pause <id> /routine_resume <id>”Pause/resume routine execution.
/routine_pause nightly-summary/routine_resume nightly-summary/routine_run_now <id> [count]
Section titled “/routine_run_now <id> [count]”Trigger routine immediately.
/routine_run_now nightly-summary/routine_run_now nightly-summary 3/routine_delete <id>
Section titled “/routine_delete <id>”Delete routine.
/routine_delete nightly-summary/routine_history <id> [limit]
Section titled “/routine_history <id> [limit]”Show routine run history.
/routine_history nightly-summary/routine_history nightly-summary 20Missions
Section titled “Missions”/missions
Section titled “/missions”List missions.
/missions/mission_create <title> :: <goal> [:: work_item_title]
Section titled “/mission_create <title> :: <goal> [:: work_item_title]”Create mission quickly from inline text.
/mission_create Release prep :: Ship v0.3.20 safely :: Final QA pass/mission_get <mission_id>
Section titled “/mission_get <mission_id>”Show mission details.
/mission_get mission_abc/mission_event <mission_id> <event_json>
Section titled “/mission_event <mission_id> <event_json>”Apply raw mission event JSON.
/mission_event mission_abc {"type":"mission_started"}/mission_start <mission_id>
Section titled “/mission_start <mission_id>”Shortcut mission started event.
/mission_start mission_abc/mission_review_ok <mission_id> <work_item_id> [approval_id]
Section titled “/mission_review_ok <mission_id> <work_item_id> [approval_id]”Approve review gate.
/mission_review_ok mission_abc work_1/mission_test_ok <mission_id> <work_item_id> [approval_id]
Section titled “/mission_test_ok <mission_id> <work_item_id> [approval_id]”Approve test gate.
/mission_test_ok mission_abc work_1/mission_review_no <mission_id> <work_item_id> [reason]
Section titled “/mission_review_no <mission_id> <work_item_id> [reason]”Deny review gate with optional reason.
/mission_review_no mission_abc work_1 "needs docs updates"Agent-Team (Orchestration)
Section titled “Agent-Team (Orchestration)”/agent-team
Section titled “/agent-team”Show agent-team dashboard summary.
/agent-team/agent-team missions
Section titled “/agent-team missions”List mission rollups for agent-team subsystem.
/agent-team missions/agent-team instances [mission_id]
Section titled “/agent-team instances [mission_id]”List running instances, optionally scoped to one mission.
/agent-team instances/agent-team instances mission_abc/agent-team approvals
Section titled “/agent-team approvals”List pending agent-team approvals.
/agent-team approvals/agent-team approve spawn <approval_id> [reason]
Section titled “/agent-team approve spawn <approval_id> [reason]”Approve spawn approval request.
/agent-team approve spawn appr_123/agent-team deny spawn <approval_id> [reason]
Section titled “/agent-team deny spawn <approval_id> [reason]”Deny spawn approval request.
/agent-team deny spawn appr_123 "resource limit"/agent-team approve tool <request_id>
Section titled “/agent-team approve tool <request_id>”Approve tool permission request from agent-team run.
/agent-team approve tool req_987/agent-team deny tool <request_id>
Section titled “/agent-team deny tool <request_id>”Deny tool permission request from agent-team run.
/agent-team deny tool req_987Config
Section titled “Config”/config
Section titled “/config”Print current engine/TUI config snapshot.
/configPractical Workflows
Section titled “Practical Workflows”Start a clean Plan-mode session
Section titled “Start a clean Plan-mode session”/new plan website migration/mode plan/provider openrouter/model z-ai/glm-5Force 4-agent execution layout
Section titled “Force 4-agent execution layout”/agent fanout 4Resolve pending requests quickly
Section titled “Resolve pending requests quickly”/requests/approve all