Skip to content

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.

  • <required> means you must provide a value.
  • [optional] means the value is optional.
  • For JSON arguments, use valid JSON (double quotes around keys/strings).

These work from most TUI screens.

KeyWhat it does
Ctrl+CIn chat: cancel active run. Press again within 1.5s to quit.
Ctrl+XQuit Tandem TUI immediately.
Ctrl+NCreate a new agent pane in chat.
Ctrl+WClose active agent pane.
Ctrl+UPage up in transcript/content.
Ctrl+DPage down in transcript/content.
Ctrl+YCopy latest assistant response to clipboard.
KeyWhat it does
nCreate a new session.
j / DownSelect next session.
k / UpSelect previous session.
d / DeleteDelete selected session.
EnterOpen selected session.
qQuit TUI.
KeyWhat it does
EnterSend current prompt.
Shift+Enter / Alt+EnterInsert newline in composer.
Tab / Shift+TabNext/previous agent pane.
Alt+1..9Jump directly to agent A1..A9.
Alt+MCycle mode (ask, plan, coder, etc).
Alt+GToggle Focus/Grid view.
[ / ]Previous/next grid page.
Alt+ROpen Request Center.
Alt+IQueue steering interrupt message.
F1Help modal.
F2Open docs.

When requests are pending:

KeyWhat it does
EnterConfirm current request choice/answer.
rReject current request.
EscClose request center.
SpaceToggle selected option (questions) or cycle permission choice.
Left / RightMove choice cursor (question options or permission choice).
1..9Select option by number (when available).
Up / DownFor question requests: move option cursor. For permission requests: move request cursor.
Ctrl+Up / Ctrl+DownMove previous/next request explicitly.
Ctrl+EExpand/collapse compact request panel.

Show built-in command help.

/help

Show engine health, version, mode, endpoint, and connection source.

/engine status

Restart the engine process and reconnect.

/engine restart

Show masked engine token or full token.

/engine token
/engine token show

Open the current workspace git diff in the pager overlay.

/diff

Open fuzzy file search and insert the selected path as an @mention.

/files
/files src/client

Edit the current draft in $VISUAL or $EDITOR, then return to the TUI.

/edit

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/tandem

List context runs from the engine.

/context_runs

Create a new context run.

/context_run_create {"objective":"Summarize the run plan","workspace":"/path/to/your/workspace"}

Show the current state of a context run.

/context_run_get run_123

Stream recent events for a context run.

/context_run_events run_123

Pause a running context run.

/context_run_pause run_123

Resume a paused context run.

/context_run_resume run_123

Cancel a context run.

/context_run_cancel run_123

Show the blackboard summary for a context run.

/context_run_blackboard run_123

Ask the engine to choose the next step.

/context_run_next run_123

Replay a context run from events/checkpoints.

/context_run_replay run_123

Show decision lineage for a context run.

/context_run_lineage run_123

Bind active agent todo updates to a context run.

/context_run_bind run_123

Sync current TUI tasks into context run steps.

/context_run_sync_tasks run_123

List available sessions with IDs.

/sessions

Create a new session. If title is omitted, default title is used.

/new
/new Release prep

Switch current chat to an existing session.

/use 1aa70178-...

List recently used slash commands and show replay helpers.

/recent

Replay a previously used slash command by its 1-based index.

/recent run 1

Clear stored recent slash-command history.

/recent clear

Rename current session.

/title Plan for March launch

Send text to current session (same as typing normally, but explicit).

/prompt Summarize this repository architecture.

Show historical messages from current session.

/messages
/messages 30

Cancel active run in current session.

/cancel

Show most recent prompt/system error for current session.

/last_error

Copy latest assistant response to clipboard.

/copy

Create additional agent pane (multi-agent chat view).

/agent new

List agent panes, status, and bound session IDs.

/agent list

Switch active agent pane.

/agent use A2

Close active agent pane.

/agent close

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 to orchestrate.
/agent fanout
/agent fanout 4
/agent fanout 6
/agent fanout 4 ship vps stress-lab improvements

List available modes.

/modes

Show current mode.

/mode

Set mode (ask, plan, coder, explore, immediate, orchestrate).

/mode plan
/mode coder

List providers known by engine and whether configured.

/providers

Set active provider for new requests.

/provider openrouter

List models for active or specified provider.

/models
/models openrouter

Set active model.

/model z-ai/glm-5

Show configured provider auth/key status.

/keys

Set provider key.

/key set openrouter sk-or-...

Remove stored provider key.

/key remove openrouter

Test connectivity for a provider.

/key test openrouter

Open request center for pending permission/question requests.

/requests

Approve tool permission request once or persistently.

/approve req_123
/approve req_123 always

Approve all pending requests in current session.

/approve all

Deny a permission request.

/deny req_123

Send freeform answer text to a question request.

/answer q_456 Proceed with option 2.

Pass-through tool call directly to engine.

/tool webfetch {"url":"https://tandem.ac/","return":"text"}

Queue steering message to redirect active run.

/steer Focus only on tests that currently fail.

Queue follow-up message after active run completes.

/followup Next, generate a rollout checklist.

Show steering/follow-up queue state.

/queue

Clear queued steering and follow-up messages.

/queue clear

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

Pin/unpin task in list.

/task pin task-2

List current tasks and statuses.

/task list

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

Update routine schedule.

/routine_edit nightly-summary 43200

Pause/resume routine execution.

/routine_pause nightly-summary
/routine_resume nightly-summary

Trigger routine immediately.

/routine_run_now nightly-summary
/routine_run_now nightly-summary 3

Delete routine.

/routine_delete nightly-summary

Show routine run history.

/routine_history nightly-summary
/routine_history nightly-summary 20

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

Show mission details.

/mission_get mission_abc

Apply raw mission event JSON.

/mission_event mission_abc {"type":"mission_started"}

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"

Show agent-team dashboard summary.

/agent-team

List mission rollups for agent-team subsystem.

/agent-team missions

List running instances, optionally scoped to one mission.

/agent-team instances
/agent-team instances mission_abc

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"

Approve tool permission request from agent-team run.

/agent-team approve tool req_987

Deny tool permission request from agent-team run.

/agent-team deny tool req_987

Print current engine/TUI config snapshot.

/config
/new plan website migration
/mode plan
/provider openrouter
/model z-ai/glm-5
/agent fanout 4
/requests
/approve all