Quick Start
Get up and running with Ralph TUI in 2 minutes using JSON mode - no external dependencies required.
2-Minute Quickstart
The fastest way to get started is with JSON mode - no external dependencies required! You'll have Ralph TUI running autonomously in just a few steps.
JSON mode uses a simple prd.json file for task tracking. It's perfect for getting started quickly without setting up external tools.
Install Ralph TUI
Install Ralph TUI globally using bun:
Ralph TUI requires Bun as its runtime. If you don't have Bun installed, see the Installation guide.
Setup Your Project
Navigate to your project and run the setup wizard:
The interactive wizard will:
- Detect installed agents (Claude Code, OpenCode, Factory Droid)
- Create a
.ralph-tui/config.tomlconfiguration file - Install bundled skills for PRD creation and task conversion
- Optionally detect existing trackers
Create a PRD
Use the AI-powered PRD creator to define your feature:
The AI will ask about your feature goals and requirements, then generate:
- A PRD markdown file (
./tasks/prd-<feature>.md) - A task file (
./prd.json) ready for execution
Answer the AI's questions about your feature. When done, you'll be prompted to create tasks automatically.
Run Ralph
Start the autonomous execution loop:
Ralph will now:
- Select the highest-priority task with no blockers
- Build a prompt from the task details
- Execute your AI agent
- Stream output in real-time
- Detect completion and move to the next task
What Just Happened?
Let's break down what each step accomplished:
- Setup configured Ralph and installed the
ralph-tui-prdskill for AI-powered PRD creation - Create-prd had an AI conversation about your feature and created structured tasks
- Run started the autonomous loop - Ralph picks tasks, builds prompts, runs your agent, and marks tasks complete
Alternative: With Beads Tracker
If you use Beads for issue tracking, you can run Ralph with an epic:
Beads provides additional features like:
- Git-backed persistence
- Task dependencies
- Hierarchy (epics containing stories)
- Labels and priorities
Alternative: Using Skills Directly in Your Agent
Prefer to stay in your agent's native interface? After running ralph-tui setup, you can use the installed skills directly:
This approach lets you:
- Reference files with
@filenameduring PRD creation - Use your existing conversation context
- Keep your preferred agent interface
Recommended hybrid workflow: Create your PRD using /ralph-tui-prd in your agent where you can reference source files, then use ralph-tui run for autonomous task execution.
Controlling Execution
While Ralph is running, use these keyboard shortcuts:
Execution Control
| Key | Action |
|---|---|
s | Start execution |
p | Pause/Resume execution |
+ / = | Add 10 iterations |
- / _ | Remove 10 iterations |
q | Quit |
? | Show all shortcuts |
Navigation
| Key | Action |
|---|---|
j / ↓ | Navigate down (task list, iteration history, or subagent tree) |
k / ↑ | Navigate up |
Tab | Switch focus between panels (when subagent tree is visible) |
Enter | Drill into selected item |
Esc | Go back / close dialog |
View Controls
| Key | Action |
|---|---|
o | Cycle right panel views (details → output → prompt) |
O | Jump directly to prompt preview |
d | Toggle progress dashboard |
h | Toggle show/hide closed tasks |
r | Refresh task list from tracker |
T | Toggle subagent tree panel |
t | Cycle subagent detail level (minimal → moderate → detailed) |
Understanding the TUI
The terminal interface shows:
- Left Panel: Task list with status indicators (✓ complete, ▶ active, ○ pending, ⊘ blocked)
- Right Panel: Details view with three modes:
- Details: Task metadata (title, description, dependencies)
- Output: Live agent stdout/stderr
- Prompt: Preview of the rendered prompt being sent to the agent
- Subagent Tree Panel (toggle with
T): Shows AI agent's spawned subagents in a tree hierarchy- Displays subagent type, description, status, and duration
- Use
Tabto switch focus, thenj/kto navigate and see subagent details - Shows the task prompt given to each subagent and its result
- Header: Current iteration count (e.g.,
[3/10]) and active task - Footer: Available keyboard shortcuts
Use O to preview the exact prompt being sent to your AI agent. Press T to see the subagent tree - this shows what autonomous subtasks the AI is spawning to complete your work.
Next Steps
Now that you have Ralph TUI running:
- Installation - Explore all installation options
- CLI Commands - Learn the full command reference
- Configuration - Customize Ralph for your workflow
- Troubleshooting - Tips for effective autonomous coding