agent & retry
agent {
max-turns 0 // 0 = unlimited
worker-max-turns 0 // 0 = unlimited
}
retry {
max-retries 10 // auto-retry on timeout/reset/HTTP 408/429/5xx; 0 disables
}
Retries back off on a ladder: 3 s, 5 s, 10 s, 20 s, 30 s, 60 s, …
context
Context-window management (enabled by default; disabled #true to turn it
off). One shared input-token budget drives trimming, the overflow guard and
compaction:
context {
reserved 20000 // tokens kept for the model's reply; input budget = context_length − reserved
keep-recent-tokens 20000 // tokens kept verbatim as the "tail" when older messages are trimmed
tool-output-max-chars 16000 // cap on tool output sent to the model (truncated with a read hint); 0 disables
tool-output-max-bytes 50000 // byte cap applied on top of the char cap; 0 disables
fallback-context-length 128000 // used when the model catalog has no context length
}