Skip to main content
Spawns a child process under full Nanny enforcement. Reads nanny.toml from the current directory and kills the process the moment any limit is crossed.

Examples


Options


Exit codes


Stderr

When Nanny stops a process it prints the reason to stderr:
This message is separate from the structured event log, which goes to stdout (or a configured file).

Event log

Every run emits NDJSON events to stdout. ExecutionStarted is always first; ExecutionStopped is always last:
Pipe to a file to keep your agent’s own output separate:

For per-function governance (marking individual tools and rules in code), see the Rust SDK guide or Python SDK guide.