Skip to content

Interactive TUI ​

Run mogick without arguments to open the full-screen TUI, which combines conversation, tool-call monitoring, session management, and settings.

Start the TUI ​

bash
mogick                          # Start with the current directory as the workspace
mogick --resume <session-id>    # Resume a session
mogick --continue               # Continue the most recent session

Change to your project directory before starting. In the TUI, press Shift+Tab to switch between Plan and Agent modes.

Before startup, Mogick checks for interactive standard input and output, TERM, terminal size, a UTF-8 locale, and Windows virtual-terminal support. mogick doctor includes these results by default. If the interface is misaligned, run mogick doctor --check-terminal-font. MOGICK_TUI_SKIP_TERMINAL_CHECK=1 is for debugging only; skipping checks does not guarantee correct rendering.

Interface layout ​

RegionLocationFeatures
Chat areaCenterConversation history, streaming responses, reasoning blocks, tool groups, and system events
Input boxBottomMultiline input, @ file references, pasted images, and / commands
SidebarRightSession information, context usage, MCP status
Status barBottom rowActive mode, run status, model name, and shortcut hints

When the terminal is 80 columns wide or narrower, the sidebar is hidden automatically. Press Ctrl+B to toggle it manually.

Shortcut keys ​

ShortcutAction
TabSwitch focus between chat area and input box
Shift+TabSwitch between Plan and Agent modes
Ctrl+POpen the command palette
Ctrl+BShow/hide sidebar
Ctrl+GOpen the Changes panel
Ctrl+OCycle tool detail display modes
EscRequest cancellation while running; an active panel handles it first
Ctrl+CPress twice to quit; a copyable input selection takes priority

The sidebar updates throughout the conversation. It shows the session title, summary, and ID; context-window utilization and cache hit rate; MCP connection status; turn duration; and current model. It hides automatically on narrow terminals, and you can toggle it with Ctrl+B.

See Command Palette and Sidebar for the meaning and examples of each information block.

Chat area ​

FeatureBehavior
Streaming outputText rendered verbatim
Reasoning blockCollapsed by default; press Enter to expand
Tool groupUse Ctrl+O to change detail mode; outside the input box, o toggles the latest tool block
@ file referenceType @ for fuzzy file search; multiple files are supported
Attachment chipFile and folder context appears as an openable chip; internal @file tags are hidden
Image inputCopy a PNG, JPEG, or GIF file and paste it into the input box
LanguageChinese and English; change it under Ctrl+P > Settings, then restart

System events include working-directory changes, AGENTS.md loading, MCP connection changes, mode switches, plan and permission approvals, and tool interception.

Themes ​

bash
export MOGICK_TUI_THEME=auto   # Follow the terminal (default)
export MOGICK_TUI_THEME=dark   # Dark theme
export MOGICK_TUI_THEME=light  # Light theme

Slash commands ​

CommandFunction
/newCreate a new blank session
/sessionsBrowse and switch previous sessions
/renameRename the current session
/modelsSelect a model by provider
/connectConnect a custom model
/mcpMCP server connection, start and stop
/skillsBrowse and load available Skills
/permissionsSwitch permission policy
/compactManual context compaction
/changesOpen the Changes panel
/reviewRun a read-only review of the current Changeset and show findings in Changes
/rewindRoll back the workspace to a checkpoint

See the Slash command reference for a complete list.

/changes or Ctrl+G opens the Changes panel, while /review starts a read-only review of the current Changeset. For panel shortcuts and Git Evidence export, see Review and track changes.

Settings ​

Ctrl+P > Settings:

SettingOptionsDefaultDescription
LanguageChinese / EnglishDetect from the terminal localeChange the interface language after restart
DiagnosticsOn / OffOffRecord ACP and CRP protocol traces for troubleshooting
SubagentsOn / OffOffEnable the agent.task subagent feature
TOON encodingOn / OffOffEncode tool results in TOON (Tool Output Object Notation) to reduce token usage

Upgrade panel ​

The top pops up when a new version is detected on startup:

OptionBehavior
Upgrade nowExit the TUI and run the upgrade in the foreground
Skip this timeClose the panel and prompt again on the next launch
Skip this versionStop prompting for this version

For file references, clipboard images and result links, see Files and images. To adjust supported reasoning effort, use /efforts.