๐ฅ๏ธ 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¶
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
- Run
/rlm bench preset=dspy_quickin the RLM tab - Press
Ctrl+5to switch to Research - Dashboard populates with real run metrics and sparkline
- 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¶
- ๐ Tab Reference: Detailed docs for each tab (RLM, Files, Details, Shell)
- ๐ฌ Research Tab: Dashboard, trajectory, replay, events
- ๐งฉ Widgets: Full widget API reference
- ๐จ Theme System: Colors, icons, animation constants