Skip to content

matija/ralph-sandbox-exec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ralph-sandbox-exec

Run Ralph with sandbox-exec (macOS) instead of Docker.

Use

git clone git@github.com:matija/ralph-sandbox-exec.git
chmod +x ralph-sandbox-exec/*.sh

Then inside whatever project you want Ralph to work on, drop a PRD.md (write it yourself, or have your agent of choice draft one) and run:

cd some-project

# one task — Claude by default
/path/to/ralph-sandbox-exec/ralph-once.sh

# same, but Claude acts as an orchestrator and delegates
# implementation to pi (swap the harness in ORCHESTRATOR.md)
/path/to/ralph-sandbox-exec/ralph-once.sh --orchestrator

# loop up to 20 tasks
/path/to/ralph-sandbox-exec/afk-ralph.sh 20

Pick a different agent with a flag:

/path/to/ralph-sandbox-exec/ralph-once.sh --codex
/path/to/ralph-sandbox-exec/afk-ralph.sh --opencode 20
/path/to/ralph-sandbox-exec/afk-ralph.sh --pi 20
/path/to/ralph-sandbox-exec/ralph-once.sh --cursor

Agent commands used under the hood:

  • Claude: claude --dangerously-skip-permissions
  • Codex: codex --sandbox danger-full-access --ask-for-approval never
  • opencode: opencode run --dangerously-skip-permissions
  • Pi: pi --mode json (streaming) or pi -p (print)
  • Cursor: cursor-agent --force --sandbox disabled

Sandbox

All scripts run under sandbox-exec. Writes are blocked everywhere except:

  • the project folder
  • agent and cache dirs (~/.claude, ~/.cache, etc.)
  • /tmp

Reads and network are not blocked. To restrict those, add deny rules to ralph.sb.

About

Run Ralph (Claude, Codex, opencode, Cursor) on macOS using sandbox-exec instead of Docker.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages