Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

docs(bin): document the tool-dialect-bench binary

Steven Enamakel77e9b763021c
diff --git a/crates/openhuman-cli/src/bin/README.md b/crates/openhuman-cli/src/bin/README.md
index 0dfe92cacf..10a9daaa01 100644
--- a/crates/openhuman-cli/src/bin/README.md
+++ b/crates/openhuman-cli/src/bin/README.md
@@ -22,6 +22,7 @@ the arguments to `openhuman_core::run_core_from_args`.
| `test-mcp-stub` | `test_mcp_stub.rs` | none (built by every `cargo test`) | Tiny stdio MCP server for tests |
| `openhuman-fleet` | `fleet.rs` | `http-server`, `bin-tools` | Process-per-user supervisor + reverse proxy |
| `rss-bench` | `rss_bench.rs` | `rss-bench` | Steady-state RSS benchmark for an embedded agent roster |
+| `tool-dialect-bench` | `tool_dialect_bench.rs` | none | Manual A/B of the text tool-call dialects against a local Ollama model |
| `library-profile` | `library_profile/main.rs` (+ `harness.rs`, `mock.rs`, `scenarios/`) | `rss-bench` (add `rss-bench-dhat` for heap profiles) | Hermetic library-embedding profiling scenarios |
`http-server` is in `default`; `bin-tools`, `rss-bench` and `rss-bench-dhat`
@@ -97,6 +98,29 @@ fixture and process driver. Build:
cargo build --release --features rss-bench --bin rss-bench
```
+### `tool-dialect-bench`
+
+Manual, network-touching A/B of `agent.tool_dispatcher` values (`xml`,
+`pformat`, `python`, `typescript`) against a local Ollama model. For every
+dialect × task it composes the system prompt the way `ToolsSection` and the
+dialect's protocol block do, sends one user turn with no schemas on the wire,
+parses the answer with `tinytools_agent::parse_text` and the harness's
+registry, and records provider-reported prompt/output tokens, system-prompt
+bytes, call recovery, tool-name and argument accuracy, latency and the
+`CallSource`. Prints a markdown summary table; `--json` appends every row.
+Never run by CI.
+
+```
+ollama pull qwen3:8b
+cargo run -p openhuman-cli --bin tool-dialect-bench -- \
+ --model qwen3:8b --dialects xml,pformat,python,typescript --trials 3
+```
+
+`OLLAMA_HOST` / `OPENHUMAN_LOCAL_INFERENCE_URL` pick the server, as for the
+product. `--tasks 0,5` narrows to fixture tasks, `--max-output-tokens N`
+raises the per-call cap for thinking models, `-v` prints each prompt and
+answer.
+
### `library-profile`
Hermetic, Rust-only library profiling workloads that measure production code