Focused repo for two components only:
rlm— Recursive Language Model extension forpisafe-pi— macOS disposable NixOS VM wrapper for runningpi
make installmake install-safe-piIf ~/.local/bin is not in your PATH, add it in your shell profile.
safe-pi runs pi inside a disposable NixOS VM via Lima.
brew install limasafe-pi --help
safe-pi "your prompt"
safe-pi --model gpt-5By default, safe-pi prepends --new-session unless you pass an explicit session/resume flag.
Runtime behavior inside VM:
- Host project dir is mounted read/write at
/workspace - Host
~/.piis mounted read/write at/home/agent/.pi shellstarts in/workspacerunchecks for/workspace/flake.nix:- if present:
nix develop /workspace --command pi ... - otherwise: run
pidirectly from/workspace
- if present:
For direct VM lifecycle control:
./scripts/safe-pi-vm.sh up
./scripts/safe-pi-vm.sh shell
./scripts/safe-pi-vm.sh stop
./scripts/safe-pi-vm.sh destroy
./scripts/safe-pi-vm.sh statusTo reset to a fresh disposable VM, run destroy and then up (or just run safe-pi again).
packages/rlm— RLM extension sourceextensions/rlm— extension entry (symlink topackages/rlm)scripts/safe-pi— host wrapper commandscripts/safe-pi-vm.sh— VM lifecycle/runner scriptstrategies/program_idea_to_impl.md— default strategy seed used by RLM
| Package | Description |
|---|---|
packages/rlm |
Recursive Language Model state management for structured coding tasks |