Skip to content

graff — a fast agentic coding harness in Zig: multi-provider, MCP, workflows, DGM evolution loop, TS/Python SDKs

Python

docs(cli): --max-model-calls help said "default 256", actual default is 0 = unlimited

justrach1b78952bfa1d
diff --git a/README.md b/README.md
index dcc4efe5..f2829b67 100644
--- a/README.md
+++ b/README.md
@@ -408,7 +408,7 @@ flags:
--timing show per-tool wall-clock on result lines (✓ (312ms) …)
--cost show running session spend in the prompt ([model · 12k tok · $0.0042])
--json structured stdio protocol (JSON in, JSONL events out, SDK transport)
- --max-model-calls N cap provider calls across root, children, retries, titles, compaction, and judges (default 256)
+ --max-model-calls N cap provider calls across root, children, retries, titles, compaction, and judges (default 0 = unlimited)
-h, --help usage
-V, --version version
```
diff --git a/src/cli.zig b/src/cli.zig
index b2e68a05..a7d0b772 100644
--- a/src/cli.zig
+++ b/src/cli.zig
@@ -109,7 +109,7 @@ pub const usage_text =
\\ --cost show running session spend in the prompt
\\ --json structured stdio protocol (JSON in, JSONL events out)
\\ --max-tool-calls N reject root tool calls after N per turn (JSON-safe budget)
- \\ --max-model-calls N total provider calls allowed across this run (default 256; includes children/title/judges)
+ \\ --max-model-calls N total provider calls allowed across this run (default 0 = unlimited; includes children/title/judges)
\\ --dedupe-tool-calls reject duplicate root tool name+input calls per turn
\\ --no-telemetry disable anonymous usage telemetry for this run
\\ --learning-privacy <mode> learning egress ceiling: local|aggregate|templates|examples (default aggregate)