Install the Ralphy CLI
mainYou can install the Ralphy CLI globally using npm. This version is cross-platform (macOS, Linux, Windows) and does not require external dependencies like jq, yq, or bc.
npm install -g ralphy-clirepository·main·Indexed 25 days ago
https://github.com/michaelshimeles/ralphyAn autonomous AI coding loop that runs AI agents on tasks until completion. It supports single prompts or structured task lists (PRDs) and enables parallel execution across multiple AI engines, including Claude Code, OpenCode, Codex, Cursor, Qwen-Code, Factory Droid, GitHub Copilot, and Gemini CLI. Features include browser automation for UI testing, sandbox mode for large repositories, and project-specific configuration via .ralphy/config.yaml.
You can install the Ralphy CLI globally using npm. This version is cross-platform (macOS, Linux, Windows) and does not require external dependencies like jq, yq, or bc.
npm install -g ralphy-cliInstall the ralphy-cli globally using npm to use Ralphy from anywhere in your terminal.
Requirements:
npm install -g ralphy-cliRalphy can use agent-browser to perform UI testing and interactions. This is useful for verifying deployments or testing user flows.
Usage:
--browser: Force enable browser automation.--no-browser: Force disable browser automation.Available Browser Commands for the AI:
agent-browser open <url>agent-browser snapshot (returns element refs like @e1)agent-browser click @e1agent-browser type @e1 "text"agent-browser screenshot <file>ralphy "test the login flow" --browserTo pass arguments directly to the underlying engine CLI without Ralphy interpreting them, use the -- separator. Everything after -- is passed verbatim to the engine.
# Pass copilot-specific arguments
ralphy --copilot --model "claude-opus-4.5" --prd PRD.md -- --allow-all-tools --allow-all-urls --stream on
# Pass claude-specific arguments
ralphy --claude "add feature" -- --no-permissions-prompt
# Pass custom arguments to any engine
ralphy --cursor "fix bug" -- --custom-arg valueralphy --copilot --model "claude-opus-4.5" --prd PRD.md -- --allow-all-tools --allow-all-urls --stream onRalphy supports two primary execution modes:
PRD.md in the current directory.Examples:
ralphy "add dark mode"ralphyralphy --prd tasks.mdYou can install Ralphy using npm (recommended) or by cloning the repository.
Using npm:
npm install -g ralphy-cliUsing Clone:
git clone https://github.com/michaelshimeles/ralphy.git
cd ralphy && chmod +x ralphy.shNote: If using the bash script version, substitute ralphy with ./ralphy.sh in all commands.
npm install -g ralphy-cli--init flag. This creates a .ralphy/ directory containing project rules and configuration for auto-detection.To ensure better code quality and more reliable execution, break large tasks into 'micro-tasks'. Instead of a single large task, provide a sequence of granular, actionable steps.
Example of a good micro-task breakdown:
- [ ] Create User model with email and password fields
- [ ] Add password hashing utility function
- [ ] Create signup API endpoint
- [ ] Create login API endpoint
- [ ] Add session/token generation
- [ ] Create logout endpoint- [ ] syntax. When a task is completed by the AI agent, it is automatically marked as completed using the - [x] syntax. Tasks are processed in order from top to bottom.For large repositories with massive dependency directories (like node_modules), use --sandbox mode. This is faster and more efficient than standard git worktrees.
How it works:
node_modules, .git, .venv) are symlinked.src/, app/) are copied.When to use:
--sandbox for large monorepos to avoid duplicating gigabytes of data.git commands within the sandbox.ralphy --parallel --sandboxYou can initialize and manage project-specific rules, commands, and boundaries in a .ralphy/config.yaml file. This ensures the AI follows your specific coding standards and project structure.
Commands:
ralphy --init: Auto-detects project settings and creates the config file.ralphy --config: Views the current configuration.ralphy --add-rule "rule text": Adds a new rule to the configuration.Config Structure (.ralphy/config.yaml):
project: Name, language, and framework.commands: Custom commands (e.g., test, lint, build) for the AI to use.rules: A list of strings defining coding standards.boundaries: Defines directories or files the AI should never_touch.capabilities: Configuration for features like browser automation.notifications: Webhook URLs for Discord, Slack, or custom endpoints.ralphy --init
ralphy --add-rule "use TypeScript strict mode"Ralphy can execute multiple agents simultaneously.
Parallel Execution:
ralphy --parallel: Runs with 3 agents by default.ralphy --parallel --max-parallel 5: Runs with 5 agents.Sandbox Mode:
For large repositories, use --sandbox to speed up execution. Instead of using git worktrees, Ralphy will use symlinks for read-only dependencies (like node_modules) and copies for source files. This avoids duplicating gigabytes of data.
ralphy --parallel --sandboxWorkflow Control:
--no-merge: Keeps branches without merging or creating PRs.--create-pr: Keeps branches and creates PRs.--branch-per-task: Creates a unique branch for every task.