Custom CLI for running Ralph loops using claude in docker sandboxes with git worktree isolation.
chmod +x install.sh ralph
./install.shInstalls (symlinks) to:
/usr/local/bin/ralph/usr/local/share/zsh/site-functions/_ralph(completions)
ralph new <feature> # Create worktree + branch, start PRD session
ralph run <feature> # Run automated loop (default 10 iterations)
ralph run 5 <feature> # Run with custom iteration count
ralph run-once <feature> # Single iteration
ralph chat <feature> # Interactive sessionralph newcreates a git worktree at../<project>-ralph-worktrees/<feature>with branchralph/<feature>- Copies files listed in
.worktreeincludeto the new worktree - Runs Claude in a docker sandbox with the worktree mounted
- PRD and progress tracked in
.ralph/within each worktree
If Claude can't access git in the sandbox:
fatal: not a git repository: /path/to/main-repo/.git/worktrees/<feature>
The sandbox was likely created before the volume mount fix. Remove it and retry:
docker sandbox ls # Find the sandbox ID
docker sandbox rm <sandbox-id> # Remove it
ralph run <feature> # Will create new sandbox with correct mounts- Docker with
docker sandboxsupport - Git
- Claude CLI