Skip to content
Soulsand Docs

Recipes

A coding agent on your repo

$ soulsand env set ANTHROPIC_API_KEY                        # once per account
$ soulsand env set GH_TOKEN                                 # git and gh use it
$ soulsand environment add-file .gitconfig ~/.gitconfig
$ soulsand environment add-repo https://github.com/you/app
$ echo 'cd ~/app && npm ci' | soulsand environment setup -

$ soulsand new fix-login
$ soulsand jobs fix-login                                   # wait for the setup job to exit
$ soulsand prompt fix-login "In ~/app: fix the login redirect bug, run the tests, commit on a new branch, push it and open a pull request with gh"
$ soulsand stop fix-login

The agent keeps working if you disconnect; soulsand events NAME shows what it did. Or run it as a background command with history:

$ soulsand exec fix-login --detach -- 'cd ~/app && claude -p "fix the login redirect bug and open a PR" --dangerously-skip-permissions'
$ soulsand logs fix-login JOB -f

The agent has root and reads every secret you give it: use narrowly scoped tokens.

Parallel agents

$ soulsand new base
$ soulsand exec base -- 'git clone https://github.com/you/app && cd app && npm ci && npm test'
$ soulsand snapshot base --name app-ready
$ soulsand new try --from app-ready --count 3               # try-1, try-2, try-3 (or soulsand fork base try --count 3)

$ soulsand prompt try-1 "In ~/app: make the search page faster" < /dev/null > try-1.log 2>&1 &
$ soulsand prompt try-2 "In ~/app: make the search page faster" --agent codex < /dev/null > try-2.log 2>&1 &
$ soulsand prompt try-3 "In ~/app: make the search page faster" --agent gemini < /dev/null > try-3.log 2>&1 &
$ wait

$ soulsand exec try-2 -- 'cd app && git diff --stat && npm test'   # compare
$ soulsand delete try-1 -y && soulsand delete try-3 -y                # keep the best

Each copy has its own disk and your variables; processes don't carry over. How many run at once is your setup's slots.