Ralph TUI AI Agent Loop Orchestrator - A terminal UI for orchestrating AI coding agents to work through task lists autonomously. Ralph TUI …
Ralph TUI AI Agent Loop Orchestrator - A terminal UI for orchestrating AI coding agents to work through task lists autonomously. Ralph TUI …
AI Agent Loop Orchestrator - A terminal UI for orchestrating AI coding agents to work through task lists autonomously.
Ralph TUI connects your AI coding assistant (Claude Code, OpenCode, Factory Droid, Cursor CLI, Gemini CLI, Codex, Kiro CLI) to your task tracker and runs them in an autonomous loop, completing tasks one-by-one with intelligent selection, error handling, and full visibility.
# Install
bun install -g ralph-tui
# Setup your project
cd your-project
ralph-tui setup
# Create a PRD with AI assistance
ralph-tui create-prd --chat
# Run Ralph!
ralph-tui run --prd ./prd.jsonThat's it! Ralph will work through your tasks autonomously.
ralph-tui.com - Full documentation, guides, and examples.
…Ralph selects the highest-priority task, builds a prompt, executes your AI agent, detects completion, and repeats until all tasks are done.
| Command | Description |
|---|---|
ralph-tui |
Launch the interactive TUI |
ralph-tui run [options] |
Start Ralph execution |
ralph-tui resume |
Resume an interrupted session |
ralph-tui status |
Check session status |
ralph-tui logs |
View iteration output logs |
ralph-tui setup |
Run interactive project setup |
ralph-tui create-prd |
Create a new PRD interactively |
ralph-tui convert |
Convert PRD to tracker format |
ralph-tui config show |
Display merged configuration |
ralph-tui template show |
Display current prompt template |
ralph-tui plugins agents |
List available agent plugins |
ralph-tui plugins trackers |
List available tracker plugins |
ralph-tui run --listen |
Run with remote listener enabled |
ralph-tui remote <cmd> |
Manage remote server connections |
…# Create a PRD with AI assistance (default chat mode)
ralph-tui create-prd
ralph-tui prime # Alias
# Use a custom PRD skill from skills_dir
ralph-tui create-prd --prd-skill my-custom-skill
# Override agent
ralph-tui create-prd --agent claude
# Output to custom directory
ralph-tui create-prd --output ./docs| Key | Action |
|---|---|
s |
Start execution |
p |
Pause/Resume |
d |
Toggle dashboard |
g |
Cycle scope filter in multi-epic sessions |
G |
Reset scope filter to All |
T |
Toggle subagent tree panel (Shift+T) |
t |
Cycle subagent detail level |
o |
Cycle right panel views |
a |
Open agent/model picker (local tab only) |
, |
Open settings (local tab only) |
C |
Open read-only config viewer (Shift+C, works on local and remote tabs) |
Alt+C (Linux) / Cmd+C (macOS) / Ctrl+C (Windows) |
Copy selected text |
Ctrl+C |
Interrupt (with confirmation) |
q |
Quit |
? |
Show help |
1-9 |
Switch to tab 1-9 (remote instances) |
[ / ] |
Previous/Next tab |
A |
Add new remote instance |
e |
Edit current remote (when viewing remote tab) |
x |
Delete current remote (when viewing remote tab) |
Multi-epic sessions: Repeated --epic and comma-separated --epics create one Ralph session across all selected hierarchy-tracker epics. Ralph uses one scheduler, one repo lock, one session branch, one merge queue, and task-scoped worktrees. The TUI scope filter (g/G) is only a local view filter over that session.
Dashboard (d key): Toggle a status panel showing:
claude-code, anthropic/claude-sonnet)prd, beads)See the full CLI reference for all options.
Ralph TUI supports custom color themes via the --theme option:
# Use a bundled theme by name
ralph-tui run --theme dracula
# Or use a custom theme file
ralph-tui run --theme ./my-custom-theme.jsonBundled themes: bright, catppuccin, dracula, high-contrast, solarized-light
See the Themes documentation for the full theme schema and creating custom themes.
Install ralph-tui skills to your agent using add-skill:
# Install all skills to all detected agents globally
bunx add-skill subsy/ralph-tui --all
# Install to a specific agent
bunx add-skill subsy/ralph-tui -a claude-code -g -y
bunx add-skill subsy/ralph-tui -a kiro-cli -g -y
# Or use the ralph-tui wrapper (maps agent IDs automatically)
ralph-tui skills install
ralph-tui skills install --agent claude
ralph-tui skills install --agent kiro
# If symlinked installs are problematic, copy files instead:
ralph-tui skills install --copyUse these slash commands in your agent:
/ralph-tui-prd # Create a PRD interactively
/ralph-tui-create-json # Convert PRD to prd.json
/ralph-tui-create-beads # Convert PRD to Beads issuesThis lets you create PRDs while referencing source files (@filename) and using your full conversation context—then use ralph-tui run for autonomous execution.
You can configure a custom skills_dir in your config file to use custom PRD skills:
# In .ralph-tui/config.toml or ~/.config/ralph-tui/config.toml
skills_dir = "/path/to/my-skills"
# Then use custom skills
ralph-tui create-prd --prd-skill my-custom-skillSkills must be folders inside skills_dir containing a SKILL.md file.
Control multiple ralph-tui instances running on different machines (VPS servers, CI/CD environments, development boxes) from a single TUI.
┌─────────────────────────────────────────────────────────────────┐
│ LOCAL [1]│ ● prod [2]│ ◐ staging [3]│ ○ dev [4]│ + │
├─────────────────────────────────────────────────────────────────┤
│ │
│ Your local TUI can connect to and control remote instances │
│ │
└─────────────────────────────────────────────────────────────────┘On the remote machine (server):
# Start ralph with remote listener enabled
ralph-tui run --listen --prd ./prd.json
# First run generates a secure token - save it!
# ═══════════════════════════════════════════════════════════════
# Remote Listener Enabled
# ═══════════════════════════════════════════════════════════════
# Port: 7890
# New server token generated:
# OGQwNTcxMjM0NTY3ODkwYWJjZGVmMDEyMzQ1Njc4OQ
# ⚠️ Save this token securely - it won't be shown again!
# ═══════════════════════════════════════════════════════════════On your local machine (client):
# Add the remote server
ralph-tui remote add prod server.example.com:7890 --token OGQwNTcxMjM0NTY3...
# Test the connection
ralph-tui remote test prod
# Launch TUI - you'll see tabs for local + remote instances
ralph-tuiRecommended: Use run --listen (runs engine with remote access):
# Start with remote listener on default port (7890)
ralph-tui run --listen --prd ./prd.json
# Start with custom port
ralph-tui run --listen --listen-port 8080 --epic my-epicToken management:
# Rotate authentication token (invalidates old token immediately)
ralph-tui run --listen --rotate-token --prd ./prd.json
# View remote listener options
ralph-tui run --help# Add a remote server
ralph-tui remote add <alias> <host:port> --token <token>
# List all remotes with connection status
ralph-tui remote list
# Test connectivity to a specific remote
ralph-tui remote test <alias>
# Remove a remote
ralph-tui remote remove <alias>
# Push config to a remote (propagate your local settings)
ralph-tui remote push-config <alias>
ralph-tui remote push-config --all # Push to all remotesWhen managing multiple ralph-tui instances, you typically want them all to use the same configuration. The push-config command lets you propagate your local config to remote instances:
# Push config to a specific remote
ralph-tui remote push-config prod
# Preview what would be pushed (without applying)
ralph-tui remote push-config prod --preview
# Push to all configured remotes
ralph-tui remote push-config --all
# Force overwrite existing config without confirmation
ralph-tui remote push-config prod --force
# Push specific scope (global or project config)
ralph-tui remote push-config prod --scope global
ralph-tui remote push-config prod --scope projectHow it works:
~/.config/ralph-tui/config.toml or .ralph-tui/config.toml)config.toml.backup.2026-01-19T12-30-00-000Z)Scope selection:
--scope global: Push to ~/.config/ralph-tui/config.toml on remote--scope project: Push to .ralph-tui/config.toml in remote's working directory--scope: Auto-detects based on what exists locally and remotelyRalph uses a two-tier token system for secure remote access:
| Token Type | Lifetime | Purpose |
|---|---|---|
| Server Token | 90 days | Initial authentication, stored on disk |
| Connection Token | 24 hours | Session authentication, auto-refreshed |
Security features:
~/.config/ralph-tui/audit.logRemote connections automatically handle network interruptions:
● connected, ◐ connecting, ⟳ reconnecting, ○ disconnectedWhen connected to remote instances, a tab bar appears at the top of the TUI:
| Key | Action |
|---|
No open issues yet, or sync has not completed.