Skip to content

๐Ÿ“‹ Tab Reference

The RLM Code TUI has 5 tabs, each accessible via keyboard shortcuts or the focus bar. This page documents the first four standard tabs. For the Research tab, see ๐Ÿ”ฌ Research Tab.


๐Ÿ” RLM Tab

The central hub for interacting with LLMs and running slash commands.

Shortcut Ctrl+1 / F2
Module rlm_code.ui.tui_app

What's Inside

  • Conversation log: RichLog widget showing the conversation
  • RLM input: Text input at the bottom for messages and commands
  • Status strip: Compact one-line status bar above the conversation

Message Rendering

Sender Border Style
๐Ÿ‘ค You Blue (#59b9ff) White text
๐Ÿค– Assistant Green (#6fd897) Markdown with model name + elapsed time

Slash Commands

Type any /command in the RLM input. All 50+ slash commands work here. Unknown commands are delegated to the full SlashCommandHandler.

โšก Shell Shortcut

Prefix any message with ! to run it as a shell command without switching tabs: !git status


๐Ÿ“ Files Tab

Project file browser with syntax-highlighted code preview.

Shortcut Ctrl+2 / F3

What's Inside

  • Directory tree: Textual DirectoryTree rooted at the working directory
  • Code preview: Syntax-highlighted file viewer with Monokai theme
  • Draggable split: In one-screen Files view, drag the vertical splitter between tree and preview to resize both areas

Supported Languages

Extension Language Extension Language
.py Python .ts TypeScript
.js JavaScript .tsx TSX
.json JSON .yaml / .yml YAML
.toml TOML .md Markdown
.sh Bash .txt Plain text

Click a file in the tree to preview it. Line numbers and indent guides are enabled.

Resizing the Files Layout

  • Switch to Files (Ctrl+2) in one-screen mode.
  • Drag the vertical divider between the left file tree and right preview panel.
  • The sidebar width updates live; preview width adjusts automatically.

๐Ÿ“‹ Details Tab

Status panel and diff viewer.

Shortcut Ctrl+3 / F4

What's Inside

  • Status panel: Rich table with workspace, model, provider, ACP, mode, layout info
  • Diff viewer: Unified diff between a snapshot and the current file state

Snapshot / Diff Workflow

/snapshot          # Take a baseline snapshot
# ... make edits ...
/diff              # View what changed

The diff uses the diff syntax highlighter with Monokai theme.


โšก Shell Tab

Terminal-first shell workspace for running commands.

Shortcut Ctrl+4 / F5

What's Inside

  • PTY terminal: Interactive terminal pane with keyboard input, history, and tab completion behavior from your shell
  • Prompt line: Minimal > typing line shown in the terminal status area

๐Ÿ”ง Persistent State

Powered by PersistentShell, a long-running shell process that preserves:

  • โœ… Environment variables set by previous commands
  • โœ… Working directory changes (cd)
  • โœ… Shell aliases and functions (within the session)
  • โœ… Exit codes for inline shell shortcuts (!cmd, >cmd) and shell command runner

Shell Detection

Inline shell execution uses a marker-compatible shell backend (zsh, bash, or sh) for reliable completion detection. PTY shell view uses your configured/default shell in interactive mode.

This keeps shell output predictable while preserving interactive behavior.

When a shell command modifies selected files, preview/diff panes are refreshed automatically.


๐Ÿ” Command Palette

Open with Ctrl+K.

A fuzzy-search modal that lists all available slash commands. Type to filter, arrow keys to navigate, Enter to select.

Available Palette Commands

/help  /workflow  /connect  /models  /status  /sandbox  /rlm  /rml  /harness
/clear  /snapshot  /diff  /view  /layout  /pane
/copy  /focus  /exit

Features:

  • ๐Ÿ”Ž Fuzzy text matching
  • โฌ†๏ธโฌ‡๏ธ Arrow-key navigation
  • โŽ Enter to select, Esc to close
  • Up to 16 results displayed

๐Ÿ”— Connect Wizard

Launched with /connect (no arguments).

A multi-step keyboard-driven picker that guides you through:

  1. ๐Ÿ”Œ Connection mode: Local models, BYOK cloud providers, or ACP profiles
  2. ๐Ÿข Provider selection: Available providers with live/preset status
  3. ๐Ÿค– Model selection: Provider-specific model list

Connection Modes

Mode Description
๐Ÿ  Local Ollama, LM Studio, vLLM, SGLang, MLX
๐Ÿ”‘ BYOK OpenAI, Anthropic, Gemini, DeepSeek, Groq
๐Ÿ”— ACP Agent Coding Profile connections

Direct Connection

/connect <provider> <model> [api-key] [base-url]

Examples:

/connect ollama llama3.2:3b
/connect openai gpt-4o sk-...
/connect anthropic claude-sonnet-4-5-20250929

๐Ÿ”„ Auto-Connect

If your rlm_config.yaml specifies a default_model, the TUI automatically connects to it on startup.


๐Ÿ‘‹ Greeting Detection

The TUI detects simple greetings (hi, hello, hey, yo, sup) and responds instantly without an LLM call:

Hey. I am here and ready. Tell me what you want to build.

This avoids unnecessary API calls for trivial interactions.


๐Ÿ“‹ Slash Command Reference

Command Description
/help ๐Ÿ“– Show all commands and shortcuts
/workflow ๐Ÿงญ Show recommended RLM workflow steps
/connect ๐Ÿ”— Launch connect wizard
/connect <provider> <model> ... ๐Ÿ”— Direct model connection
/models ๐Ÿ“‹ List all providers and models
/status ๐Ÿ“Š Refresh status panel
/sandbox ๐Ÿ“ฆ Sandbox status, doctor, runtime switch, profile/backend controls
/rlm ๐Ÿง  RLM runner (run, bench, status, replay, doctor, chat, observability)
/rml ๐Ÿง  Alias for /rlm
/harness ๐Ÿ›  Tool-using coding harness (tools, doctor, run)
/clear ๐Ÿงน Clear chat and shell logs
/snapshot [file] ๐Ÿ“ธ Take baseline snapshot for diffing
/diff [file] ๐Ÿ” Show diff against snapshot
/view <tab> ๐Ÿ—‚๏ธ Switch active tab
/layout <single\|multi> ๐Ÿ“ Switch layout mode
/pane <name> [show\|hide] ๐Ÿ“Œ Toggle individual panes
/focus <chat\|default> ๐ŸŽฏ Focus mode
/copy ๐Ÿ“‹ Copy last response to clipboard
/shell <cmd> โšก Run shell command
/exit ๐Ÿšช Quit the TUI

โš™๏ธ Environment Variables

Variable Default Description
RLM_TUI_HISTORY_ITEMS 4 ๐Ÿ“ Number of history items in context
RLM_TUI_HISTORY_ITEM_CHARS 320 ๐Ÿ“ Max chars per history item
RLM_TUI_HISTORY_TOTAL_CHARS 1800 ๐Ÿ“ Max total chars for history
RLM_TUI_THINK_TICK 0.08 โฑ๏ธ Thinking animation refresh interval (sec)
RLM_TUI_EVENT_FLUSH_SECONDS 0.12 ๐Ÿ“ก Event log batch flush cadence
RLM_TUI_EVENT_BATCH_LIMIT 32 ๐Ÿ“ก Max events per flush batch
RLM_TUI_ACP_DISCOVERY_TIMEOUT_SECONDS 0.45 ๐Ÿ”Œ ACP discovery timeout
RLM_TUI_ACP_CACHE_TTL_SECONDS 30 ๐Ÿ”Œ ACP discovery cache TTL
RLM_TUI_HARNESS_AUTO 1 ๐Ÿ›  Enable automatic harness routing for coding tasks
RLM_TUI_HARNESS_AUTO_MCP 1 ๐Ÿ›  Include MCP tools in auto harness route
RLM_TUI_HARNESS_AUTO_STEPS 8 ๐Ÿ›  Max steps for auto harness runs
RLM_TUI_HARNESS_PREVIEW_STEPS 6 ๐Ÿ›  Steps shown in harness preview
RLM_TUI_INPUT_DEBOUNCE_SECONDS 0.0 โŒจ๏ธ Input debounce delay
RLM_TUI_CHAT_MAX_LINES 2200 ๐Ÿ” RLM log line cap
RLM_TUI_TOOL_MAX_LINES 1600 ๐Ÿงฐ Tool log line cap
RLM_TUI_EVENT_MAX_LINES 3200 ๐Ÿ“ก Event log line cap

๐Ÿ“‹ Copy to Clipboard

Copy the last assistant response with F7, Ctrl+Y, /copy, or the Copy button.

Platform Tool
๐ŸŽ macOS pbcopy
๐Ÿง Linux wl-copy, xclip, or xsel