with one click
speckit-ralph-run
Run the ralph autonomous implementation loop
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Run the ralph autonomous implementation loop
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
Execute a single Ralph loop iteration - complete one work unit from tasks.md with proper commits and progress tracking
Automate the local Jira Data Center first-run wizard and the Agile Tools admin browser setup flow for this repository. Use when working in agile-tools and the user wants an agent to drive browser steps for local Jira setup, finish the first-run Jira wizard, create a local admin session in Agile Tools, create or validate a Jira connection, discover a board, inspect it, and create a flow scope from the seeded local Jira data.
| name | speckit-ralph-run |
| description | Run the ralph autonomous implementation loop |
| compatibility | Requires spec-kit project structure with .specify/ directory |
| metadata | {"author":"github-spec-kit","source":"ralph:commands/run.md"} |
$ARGUMENTS
You MUST consider the user input before proceeding (if not empty).
This command is a thin launcher for the ralph loop orchestrator. It validates prerequisites, resolves configuration, and launches the platform-appropriate orchestrator script in a visible terminal for the user to monitor. Once the script is launched, this command's job is done — it exits immediately and does not wait for the script to complete.
Parse arguments from $ARGUMENTS:
--max-iterations N or -n N (default: from config or 10)--model MODEL or -m MODEL (default: from config or claude-sonnet-4.6)--agent-cli CLI (default: from config or copilot; supported: copilot, codex)--verbose or -v (default: false)Validate prerequisites (all MUST pass before proceeding):
| Check | Method | On Failure |
|---|---|---|
| Agent CLI installed | Resolve configured agent_cli (copilot or codex) with which or Get-Command | Print error with install instructions, STOP |
tasks.md exists | Search specs/*/tasks.md for current feature | Print error, suggest running /speckit.tasks, STOP |
| Git repository | Run git rev-parse --git-dir | Print error: "Not a git repository", STOP |
| Feature branch | Run git branch --show-current, verify not main/master | Print warning but continue |
Detect feature context:
Run the prerequisite check script:
.specify/scripts/bash/check-prerequisites.sh --json --require-tasks --include-tasks
.specify/scripts/powershell/check-prerequisites.ps1 -Json -RequireTasks -IncludeTasks
Parse FEATURE_DIR, feature name, and spec directory from output
Load configuration:
.specify/extensions/ralph/ralph-config.yml if it existsSPECKIT_RALPH_MODEL, SPECKIT_RALPH_MAX_ITERATIONS, SPECKIT_RALPH_AGENT_CLI)Launch orchestrator script in a visible terminal:
Detect platform and run the appropriate script in a visible, non-hidden terminal so the user can monitor progress directly
Do NOT wait for the script to finish — launch it and exit immediately
Execute with resolved parameters:
PowerShell:
& ".specify/extensions/ralph/scripts/powershell/ralph-loop.ps1" -FeatureName "{feature}" -TasksPath "{tasks_path}" -SpecDir "{spec_dir}" -MaxIterations {n} -Model "{model}" -AgentCli "{agent_cli}" [-DetailedOutput]
Bash:
bash ".specify/extensions/ralph/scripts/bash/ralph-loop.sh" --feature-name "{feature}" --tasks-path "{tasks_path}" --spec-dir "{spec_dir}" --max-iterations {n} --model "{model}" --agent-cli "{agent_cli}" [--verbose]
Confirm launch and exit:
This command exits as soon as the orchestrator script is launched. It does not monitor the script or report its outcome.
| Outcome | Meaning |
|---|---|
| Command completes normally | Orchestrator was launched successfully — user should monitor the terminal |
| Command fails during validation | A prerequisite check failed — see error message for details |
The orchestrator script itself has its own exit codes (0 = all tasks complete, 1 = limit/failure, 130 = interrupted). The user will see these directly in the terminal where the script is running.
This command is a fire-and-forget launcher — it validates, configures, launches, and exits
The orchestrator script handles ALL loop logic: iteration management, termination, progress tracking
The script runs in a visible terminal so the user can watch progress in real time
This command uses whatever model is active in the current session since it only does lightweight setup work
Users can also run the scripts directly from terminal for debugging:
bash .specify/extensions/ralph/scripts/bash/ralph-loop.sh --feature-name "001-feature" --tasks-path "specs/001-feature/tasks.md" --spec-dir "specs/001-feature"
& ".specify/extensions/ralph/scripts/powershell/ralph-loop.ps1" -FeatureName "001-feature" -TasksPath "specs/001-feature/tasks.md" -SpecDir "specs/001-feature"