Recursive agent harness. Mod anything.
Gen is a recursively self-upgrading agentic harness that runs the coding agent you use — Hanzo Dev, Claude Code, Codex, and custom loops — with full hackability, MCP tools attached, and every session linked to your Hanzo account.
gen runs
Hanzo Gen · Self-upgrading harness
curl -fsSL https://hanzo.sh | sh -s gen # gen alonecurl -fsSL https://hanzo.sh | sh # or every Hanzo tool, gen included
gen # Hanzo Dev, the defaultgen --claude # Claude Code; any agent is a flaggen --codex "add a test" # a task, run headless
curl -fsSL https://hanzo.sh | sh -s gengenno agent named: Hanzo Devgen --claudeClaude Code, with the Hanzo toolset attachedgen --codex "add a test"Codex, run headless on the taskgen --claude --cloudits model calls on Hanzo’s, metered on your account
Linux and macOS. hanzo.sh downloads gen’s native build and checks it: its checksum always, its provenance with a signed-in gh. Run it again to upgrade.
Sign in once with the Hanzo CLI, hanzo auth login, and every session is linked to your account.
The recursive harness. Mod anything.
A recursively self-upgrading agentic harness you can modify and remix. It launches any coding agent with Hanzo’s tools attached, routes model calls through Hanzo, and links the session to your account.
hanzoai/gen →Each launches as itself, with its own interface and its own habits, and Gen around it. gen --help lists every one.
Tools, models, sessions and fences, each set by a flag.
- 01
Tools
--no-mcpThe Hanzo MCP toolset rides along on every agent that can take a server for one run.
- 02
Models
--cloud --modelIts model calls go to api.hanzo.ai, metered on your account, for an agent that can name another endpoint. Without the flag, an agent uses the account it is signed in to.
- 03
Sessions
--resume --no-linkSigned in, a session is linked to your Hanzo account and streams to mission control as it runs, so it can be followed and picked back up.
- 04
Fences
--ask --project-mcpSessions are approved inside a sandbox; ask before each action instead. A repository’s own .mcp.json stays off until you trust it.
gen --claude --cloud # its model calls through api.hanzo.aigen --claude --cloud --model enso-ultragen --codex --no-link # keep the session on this machinegen --resume <session-id> # pick a linked session back upgen --claude -- -c # after --, the agent's own arguments
Your command
Claude Code
gen --claude --cloudhanzo dev --claude --cloudOnly when you pass --cloud, and only an agent that can name another endpoint. Without it, each agent keeps the account it is signed in to.
The Hanzo CLI links Gen, so hanzo dev takes the same flags and runs the same session. Use whichever is on your path.
The Hanzo CLI →hanzo dev # genhanzo dev --claude # gen --claudehanzo dev --codex --cloud # gen --codex --cloud
Where to get Gen, what it runs, and the same harness in the CLI.
Paste and ship
Paste this into any agent. It reads the skill manifest and calls Gen from there.
Read https://hanzo.ai/skill.md and use Hanzo Gen in my project. Start with: gen
- curl -fsSL https://hanzo.sh | sh -s gen installs gen alone; curl -fsSL https://hanzo.sh | sh installs every Hanzo tool, gen and the Hanzo CLI included. Run either again to upgrade. On Windows, take the build from the release page.
- The same harness. The Hanzo CLI links it, so gen --claude and hanzo dev --claude take the same flags and run the same session. Bare gen, like bare hanzo dev, opens Hanzo Dev.
- Only when you pass --cloud, and only an agent that can name another endpoint. Without it, each agent keeps the account it is signed in to.
- On --cloud, the agent’s model calls, on your Hanzo account. On the agent’s own account, only what Hanzo’s tools handled for it.
- No. Each agent runs as itself — its own interface and its own commands — and anything after -- goes to it untouched.
- MIT. The source is hanzoai/gen on GitHub.
The harness, every agent's launcher and how its output is read are on GitHub, one file an agent.