name: mission-ralph description: "Launch ralph.sh in background. Lightweight mode (default) or full Pod crew (--pod). Best for large features (10+ tasks)."
/mission-ralph - Automatic Background Execution
Launch the Ralph loop in background. Runs automatically until all tasks complete or a critical blocker halts execution.
The Process
- Validate feature - Check feature exists and has tasks
- Activate feature - Run
bd update FEATURE_ID --status in_progress - Ask launch mode - "Start Ralph in mprocs (visible) or background (invisible)?"
- Launch Ralph:
- If background: Run the script directly
- If visible: Print the command for user to run in a new terminal window
- Inform user - Tell them how to monitor progress
- Exit - HOUSTON's job is done, Ralph takes over
Modes
| Mode | Flag | Execution | Token Cost |
|---|---|---|---|
| Lightweight (default) | (none) | Pathfinder scout → HOUSTON direct → Airlock | ~50k/task |
| Pod | --pod |
Full crew via /mission-pod skill | ~150k+/task |
Use lightweight mode for straightforward tasks. Use --pod when tasks need deeper analysis or have complex requirements.
Launch Command
# Lightweight mode (default) - background
bash skills/mission-ralph/scripts/ralph.sh FEATURE_ID &
# Lightweight mode - visible (mprocs TUI)
bash skills/mission-ralph/scripts/ralph.sh FEATURE_ID --visible
# Pod mode - background (full crew per task)
bash skills/mission-ralph/scripts/ralph.sh FEATURE_ID --pod &
# Pod mode - visible
bash skills/mission-ralph/scripts/ralph.sh FEATURE_ID --pod --visible
What Ralph Does
Ralph executes tasks in a loop until completion:
Lightweight mode (default):
- Get next ready task via
bd ready - Run Pathfinder scout to gather context
- HOUSTON executes task directly
- Run Airlock validation
- Handle result (complete, retry, or create blocking bug)
- Continue until no tasks remain or critical halt
Pod mode (--pod):
- Get next ready task via
bd ready - Spawn full Pod crew (Pathfinder → Builder → Inspector → Airlock)
- Handle result (complete, retry, or create blocking bug)
- Continue until no tasks remain or critical halt
User Communication
If background mode:
HOUSTON: Ralph loop launched for feature FEATURE_ID.
Ralph runs automatically in background.
Check progress: /capcom
You'll be notified on:
- Feature completion
- Critical blocker (requires intervention)
Safe to close this session.
If visible mode:
HOUSTON: Run this command in a new terminal window:
bash skills/mission-ralph/scripts/ralph.sh FEATURE_ID --visible
This opens mprocs with live task progress.
Check status anytime: /capcom
Monitoring
/capcom- Check feature status and task progressbd list --parent FEATURE_ID- See all tasksbd ready- See what's next in queuebd dep tree FEATURE_ID- See task hierarchy and status
Logging
Ralph logs to both console and file via tee:
.space-agents/mission/staged/{feature-slug}/ralph.log
When the mission completes, the entire feature folder (including logs) moves to:
.space-agents/mission/complete/{feature-slug}/
Exit Codes
| Code | Meaning |
|---|---|
| 0 | Feature complete |
| 1 | Critical blocker - check /capcom |
| 2 | Configuration error |