Commands
cradle has two commands: start, which launches an agent, and doctor, which checks your setup.
Usage
How cradle run works
The agent runs in your working directory — the agent folder is a parameter (default .), not a place cradle changes into. That means an agent folder can live anywhere on disk, or be referenced by a global alias, while every run still operates on the project in your current shell.
Everything after -- is forwarded verbatim to pi. Use it for pi's own flags, like --resume or -p "prompt", without cradle trying to interpret them.
--dry-run prints the generated-extension write plan and the composed command without spawning anything — and without requiring pi, nono, or sbx to be installed. For an sbx-backend run it also prints the sbx create/sbx policy/provision setup commands, in the order cradle run would run them, before the final sbx exec argv. Use it to see exactly what a run would do before it does it.
Per-agent runtime state — generated extensions and session history — lives under ~/.cradle/agents/<name>-<hash>/, outside the agent folder itself. That keeps the folder clean and committable: nothing a run writes ends up in your agent's source tree.
Flags
--offline--sandbox) unless --no-sandbox is also passed.--allow-host <host>--offline.--no-sandboxpi directly, without a sandbox wrapper. Useful for debugging. Combined with --offline/--allow-host, cradle warns the policy has no effect and runs with no network isolation.--sandboxsandbox/ file enables one or the folder opts out.--sandbox-backend <nono|sbx>--sandbox): nono (host OS policy) or sbx (Docker Sandboxes microVM).--dry-run--verbosenono's --silent flag to show its capabilities banner (nono backend only).-- <args>-- to pi verbatim.See Sandbox for how --offline, --allow-host, --no-sandbox, --sandbox-backend, and a folder's own sandbox/nono.json/sandbox/sbx.json interact, and Agent Folders for what cradle reads out of the folder before it runs.
Doctor
cradle doctor checks pi (required), and nono/sbx/mise (recommended — each on your PATH, with version). cradle run reads the agent folder and launches pi in your current working directory — sandboxed inside nono or sbx when the folder declares sandbox/nono.json/sandbox/sbx.json, bare (with a warning) otherwise.