Skip to content

๐Ÿ–ฅ๏ธ Terminal User Interface

RLM Code ships with a single unified TUI built on Textual and Rich. It provides a complete research-grade development environment with 5 tabs including a dedicated ๐Ÿ”ฌ Research tab for experiment tracking, trajectory viewing, benchmarks, session replay, and live event streaming.


๐Ÿš€ Launch

rlm-code

That's it. One command, one TUI, everything in one place.

๐Ÿ“ฆ Dependency

Textual is a required dependency of RLM Code and is installed automatically with pip install rlm-code.


๐Ÿ—‚๏ธ The Five Tabs

Tab Shortcut F-Key Purpose
๐Ÿ” RLM Ctrl+1 F2 Converse with LLMs, run slash commands
๐Ÿ“ Files Ctrl+2 F3 Browse project tree, syntax-highlighted preview (draggable split in one-screen mode)
๐Ÿ“‹ Details Ctrl+3 F4 Status panel, snapshot diff viewer
โšก Shell Ctrl+4 F5 Persistent stateful shell (env preserved)
๐Ÿ”ฌ Research Ctrl+5 F6 Dashboard, trajectory, benchmarks, replay, events

Switch tabs with keyboard shortcuts, Tab / Shift+Tab to cycle, or click the focus bar buttons below the header.


๐Ÿ“ Layout Modes

One-Screen Mode (default)

Only the active tab is visible, maximizing screen real estate. Toggle with Ctrl+O or /layout single.

Multi-Pane Mode

All panes visible simultaneously. Toggle with Ctrl+O or /layout multi. Individual panes can be shown/hidden with /pane.


๐Ÿ”ฌ Research Tab

The Research tab is where experiment data lives. It has 5 internal sub-tabs:

Sub-Tab What It Shows
๐Ÿ“Š Dashboard Run ID, status, reward, steps, tokens, cost, reward sparkline
๐Ÿ“ˆ Trajectory Step-by-step timeline showing action, reward, tokens, success
๐Ÿ† Benchmarks Leaderboard table from /rlm bench runs
โช Replay Step-through controls for time-travel debugging
๐Ÿ“ก Events Live event stream from the RLM event bus

๐Ÿ”ฌ See It in Action

  1. Run /rlm bench preset=dspy_quick in the RLM tab
  2. Press Ctrl+5 to switch to Research
  3. Dashboard populates with real run metrics and sparkline
  4. Click Trajectory to see the step-by-step breakdown

See ๐Ÿ”ฌ Research Tab for full details.

Mode Routing in RLM

In Local/BYOK connection modes, the RLM tab can auto-route likely coding prompts to the harness loop. ACP is supported via /connect acp, but ACP keeps harness auto-routing off by default. For controlled pure-recursive experiments, set RLM_TUI_HARNESS_AUTO=0 before launching the TUI.


โŒจ๏ธ Keyboard Shortcuts

๐Ÿ—‚๏ธ Tab Switching

Shortcut Action
Ctrl+1 / F2 ๐Ÿ” RLM
Ctrl+2 / F3 ๐Ÿ“ Files
Ctrl+3 / F4 ๐Ÿ“‹ Details
Ctrl+4 / F5 โšก Shell
Ctrl+5 / F6 ๐Ÿ”ฌ Research
Tab Cycle to next tab
Shift+Tab Cycle to previous tab
Escape Back to RLM

โšก Actions

Shortcut Action
F7 / Ctrl+Y ๐Ÿ“‹ Copy last response
Ctrl+O ๐Ÿ”€ Toggle one-screen mode
Ctrl+K ๐Ÿ” Open command palette
Ctrl+G ๐Ÿ” Focus RLM input
Ctrl+L ๐Ÿงน Clear logs
Ctrl+R ๐Ÿ”„ Refresh preview
Ctrl+Q ๐Ÿšช Quit

๐Ÿ“Œ Pane Toggles (Multi-Pane Mode)

Shortcut Action
Ctrl+B Toggle Files pane
Ctrl+J Toggle Details pane
Ctrl+T Toggle Shell pane

๐ŸŽจ Theme

The TUI uses a true-black background (#010101) with a purple accent palette inspired by the research aesthetic:

Element Color Hex
Background Near-black #010101
Pane borders Purple-blue #2f6188
Accent Purple #7c3aed
Active accent Bright purple #a78bfa
Title text Cyan #8de7ff
RLM text Light blue-white #dce7f3

๐Ÿงฉ Widget Library

Both standard panes and the Research tab draw from a shared widget library:

  • ๐ŸŽญ Animated: ThinkingSpinner, ProgressPulse, SparklineChart, TypewriterText, RewardFlash, StatusIndicator
  • ๐Ÿ“Š Panels: FileBrowser, CodePreview, ResponseArea, PromptBox, MetricsPanel, TimelinePanel, LeaderboardPanel

See ๐Ÿงฉ Widgets for the full API reference.


๐Ÿ“š Next Steps