The agentic harness. gen launches a coding agent in your terminal with the
Hanzo MCP toolset attached, routes its model calls through api.hanzo.ai, and
streams the session live to mission control. Hanzo's own agent is the default;
Claude Code, Codex, Cursor, Antigravity, Gemini, Qwen, OpenCode and the rest are
one flag away.
hanzo dev is Gen too: the Hanzo CLI links this crate, so gen and hanzo dev
take the same flags and run the same session.
curl -fsSL hanzo.sh | shGen signs in with your Hanzo account, the same one the Hanzo CLI uses. Sign in once:
hanzo auth logingen # an interactive Hanzo session
gen "fix the failing test" # a task, run headless
gen --claude # Claude Code
gen --codex "add a test" # Codex, headless
gen --cursor # Cursor's agent
gen --gemini # any agent is a flag
gen --claude -- -c # args after -- go to the agent
gen --resume <id> # pick a linked session back up
gen --help # every flagEvery agent's model calls go to api.hanzo.ai, which serves Enso, Zen and Kai,
so one account and one bill cover every agent. Hanzo's own agent routes there whenever
you are signed in. A third-party agent keeps its own login unless you pass
--cloud; with it, its calls route through api.hanzo.ai like Dev's. A few agents
have no way to name another endpoint (Cursor, Antigravity, Gemini, Copilot, Amp
and a handful more) and always use their own account. --model enso-ultra picks
the model on the Hanzo route.
When you are signed in, a session is registered with Hanzo cloud and its events
stream to mission control; --no-link keeps it local. Gen reads what the Hanzo
CLI has on file (hanzo config profile): hanzo config set code.link false keeps
every session local, and hanzo network use local points Gen at your own cloud. A
CLI too old to say keeps the session local on api.hanzo.ai until hanzo upgrade.
Runnable multi-turn assistant and tool-dispatch examples in examples/:
- Python:
examples/python/assistant.py(Two-turn tool calling loop) - TypeScript:
examples/typescript/assistant.ts(Native fetch assistant) - Go:
examples/go/main.go(Standardnet/httpconversational round) - Rust:
examples/rust/(Type-safe tool calling client withreqwest) - cURL:
examples/curl/assistant.sh(One-liner CLI query)
Run any harness in headless single-prompt mode:
hanzo "summarize this repository"
hanzo --claude "summarize this repository"
hanzo --codex "summarize this repository"
hanzo --gemini "summarize this repository"- Hanzo MCP attachment (
hanzo __mcp): attached automatically fordev,claude, andcodex(and opt-out via--no-mcp). Repo-local.mcp.json/ project settings remain isolated unless--project-mcp(--trust-project) is passed. - Gemini headless runs:
--geminidoes not attach a per-run MCP flag on the CLI; register Hanzo MCP once in user scope viagemini mcp add -s user hanzo hanzo-mcpif desired. - Local / offline runs: pass
--no-linkto skip cloud session streaming while preserving local execution andhanzo dev · session summaryformatting. - Running the test suite (
Linux/WSL2): the CI suite tests UNIX signal andHOMEisolation invariants (hanzo.yml). On Windows hosts, run the Linux test matrix inside WSL2 (cargo test --locked) in addition to native Windows checks (cargo test --locked --test multi_agent_harness_matrix --test filesize).
cargo build --release
cargo testMIT