Skip to main content

Interactive TUI

Launch Ante without a prompt to enter the interactive TUI:

ante

Overview

The TUI is built with ratatui and provides a rich chat interface directly in your terminal. It renders inline (up to 24 lines) and uses debounced rendering at approximately 100fps for smooth output.

Key features

Chat interface

The main view shows a conversation between you and the agent. Type your prompt in the input area and press Enter to send. The agent's responses stream in real-time with markdown rendering.

Tool approval

When the agent wants to execute a tool that requires approval (like Bash or Write), you'll see an approval prompt. You can:

  • Allow the tool call
  • Deny it and the agent will adjust its approach

Diff view

When the agent proposes file edits, Ante switches to a fullscreen diff view on an alternate screen. You can review the exact changes before approving.

Model and provider selection

Use the built-in selectors to switch models or providers during a session without restarting.

Theme selection

Ante includes a theme system for consistent styling. Choose a theme through the theme dialog.

Slash commands

The TUI supports built-in slash commands for common actions:

CommandDescription
/clearClear conversation history
/initInitialize codebase analysis
/exitExit (aliases: exit, quit)
/themeOpen theme selection dialog
/diffShow git diff (including untracked files)
/connectConnect to a provider (OAuth)
/modelOpen model selector
/offline-modeOpen offline model selector
/welcomeShow onboarding/welcome dialog
/statuslineConfigure the status line
note

Some commands are "visible" (appear in conversation history) and others are "silent" (execute without adding to history). /clear, /init, and /exit are visible; the rest are silent.

Skills also appear as slash commands with scope indicators: [p] for project-level, [u] for user-level, [s] for system-level, and [a] for agent-level skills.

Keyboard shortcuts

Chat input

KeyAction
EnterSend message
Ctrl+Enter / Alt+Enter / Shift+EnterInsert newline
Up / DownMove cursor, then navigate history
TabComplete command or file path suggestion
Ctrl+RStart reverse-i-search through prompt history
Ctrl+CInterrupt current task (double-press to exit)
Ctrl+DExit application
EscapeClose popup or interrupt active task

Global shortcuts

KeyAction
Ctrl+TOpen theme dialog
Ctrl+EStop running llama server (offline mode)
Ctrl+OToggle local inference log panel
Ctrl+K / Ctrl+JScroll inference log up/down

Diff view (fullscreen)

KeyAction
j / DownScroll down
k / UpScroll up
Page Down / Page UpPage scroll
Home / EndJump to top/bottom
q / EscapeClose diff view

Tool approval

KeyAction
aAccept tool call
AAccept all tool calls for this session
rReject/skip tool call
dView diff preview

Reverse search (Ctrl+R mode)

KeyAction
Ctrl+RNext match
Ctrl+SPrevious match
EnterAccept match
Escape / Ctrl+GCancel search

@ mentions

Type @ in the input to reference files or directories. A file search dropdown appears as you type:

  • @path/to/file.rs — embeds the file contents in your message
  • @path/to/dir/ — embeds the directory tree listing
tip

If you paste multiple file paths, Ante auto-prefixes them with @ for convenience.

CLI flags for TUI mode

ante --model claude-sonnet-4-5
ante --provider openai
ante --system-prompt "You are a Python expert"
ante --append-system-prompt "Always use type hints"
ante --allowed-tools Read Grep Glob
ante --disallowed-tools Bash Write

Streaming

Streaming is enabled by default in TUI mode. To disable it:

ANTE_DISABLE_STREAMING=1 ante