Skip to content
Language: English (United States)

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.

Tools--no-mcpModels--cloud --modelSessions--resume --no-linkFences--ask --project-mcp

gen runs

Hanzo Gen · Self-upgrading harness

--claude: Claude Code02 / 23
bash
  1. curl -fsSL https://hanzo.sh | sh -s gen
  2. genno agent named: Hanzo Dev
  3. gen --claudeClaude Code, with the Hanzo toolset attached
  4. gen --codex "add a test"Codex, run headless on the task
  5. gen --claude --cloudits model calls on Hanzo’s, metered on your account

One line, then any agent.

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.

One runs agents. One is an agent.

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 →
Our agent.The coding agent Hanzo builds, with Kai deciding each step. It is the agent Gen opens when none is named.Hanzo Dev →

The agent you use is a flag.

Each launches as itself, with its own interface and its own habits, and Gen around it. gen --help lists every one.

What Gen puts around it.

Tools, models, sessions and fences, each set by a flag.

  1. 01

    Tools

    --no-mcp

    The Hanzo MCP toolset rides along on every agent that can take a server for one run.

  2. 02

    Models

    --cloud --model

    Its 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.

  3. 03

    Sessions

    --resume --no-link

    Signed 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.

  4. 04

    Fences

    --ask --project-mcp

    Sessions are approved inside a sandbox; ask before each action instead. A repository’s own .mcp.json stays off until you trust it.

bash
  1. gen --claude --cloud # its model calls through api.hanzo.ai
  2. gen --claude --cloud --model enso-ultra
  3. gen --codex --no-link # keep the session on this machine
  4. gen --resume <session-id> # pick a linked session back up
  5. gen --claude -- -c # after --, the agent's own arguments

Your command

Claude Code

gen --claude --cloud
hanzo dev --claude --cloud

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.

The same harness, as hanzo dev.

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 →
bash
  1. hanzo dev # gen
  2. hanzo dev --claude # gen --claude
  3. hanzo dev --codex --cloud # gen --codex --cloud

The harness, the agent, the CLI.

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
Agent prompt

Questions & Answers

  • 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.

MIT, in the open.

The harness, every agent's launcher and how its output is read are on GitHub, one file an agent.