Spawns a child process under full Nanny enforcement. ReadsDocumentation Index
Fetch the complete documentation index at: https://docs.nanny.run/llms.txt
Use this file to discover all available pages before exploring further.
nanny.toml from the current directory and kills the process the moment any limit is crossed.
Examples
Options
| Flag | Type | Default | Description |
|---|---|---|---|
--limits=<name> | string | — | Activate a named limit set from nanny.toml. Inherits from [limits]. |
--config=<path> | path | ./nanny.toml | Path to config file. |
Exit codes
| Code | Meaning |
|---|---|
0 | Process exited cleanly (AgentCompleted) |
1 | Nanny stopped the process, a spawn failure occurred, or an internal error occurred |
Stderr
When Nanny stops a process it prints the reason to stderr:Event log
Every run emits NDJSON events to stdout.ExecutionStarted is always first; ExecutionStopped is always last:
For per-function governance (marking individual tools and rules in code), see the Rust SDK guide or Python SDK guide.