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:
What nanny run does not do
- It does not retry. A stop is final.
- It does not interpret what your agent is doing. It only counts and times.
- Timeout enforcement works with any binary in any language. Per-function cost metering and custom rules require SDK annotations.