Files
dev/dev-cli
zeekay ccbf9c3829 feat(cli): run Hanzo Cloud agents from the terminal (dev agent)
Add `dev agent {list,run,show}` over the canonical `/v1/agents` registry
(cloud/clients/agents), reusing the signed-in hanzo.id session for auth.

- New crate `agents-client` mirrors `cloud-tasks-client`: wire types
  (Agent/AgentDetail/Run matching the server contract), an `AgentsBackend`
  trait, and a reqwest `HttpClient` that targets `{base}/v1/agents…`,
  injects the bearer JWT via `codex_api::SharedAuthProvider`, and quotes
  server errors honestly. A recorded error run (HTTP 502 with a Run body)
  is surfaced as the Run, not swallowed as a bare status.
- New `cli/src/agent_cmd.rs` module wires the subcommand like the existing
  `cloud` command: resolves base URL (default https://api.hanzo.ai,
  override CODEX_AGENTS_BASE_URL) + AuthManager from the loaded Config,
  fails secure when not signed in. `list`/`run`/`show`, each with `--json`;
  `run` reads the prompt from an arg or stdin.
- Cloud-agent invocation is additive and orthogonal to the local
  config-defined subprocess agents; no shared state.

Tests: 8 wiremock unit tests (list/get/run happy + recorded-error 502 +
503 server error + bearer header + path encoding). `cargo build`, `cargo
clippy -D warnings`, and `cargo test` are clean for the touched crates.

Bumps @hanzo/dev 0.6.91 -> 0.6.92 (patch) so a release can publish.
2026-07-01 23:59:20 -07:00
..

Hanzo

Hanzo Dev

Hanzo Dev (@hanzo/dev) is a fast, native coding agent for your terminal. Built in Rust on top of openai/codex, it adds multi-agent orchestration, CLI agent piping, browser automation, a rich theme system, and a full chat TUI.

 

Install

npm install -g @hanzo/dev
dev

Or run directly:

npx -y @hanzo/dev

The binary is named dev. The package also installs coder as an alias.

 

Key Features

  • Multi-agent orchestration — /plan, /solve, /code coordinate Claude, Gemini, Qwen, and GPT
  • CLI agent piping — spawns claude, gemini, qwen as sub-processes with output streamed into the TUI
  • Auto Drive — autonomous multi-step task execution with self-healing
  • Auto Review — background ghost-commit watcher for continuous code review
  • Rich TUI — Zen mode, 20+ themes, streaming markdown, agent terminal (Ctrl+A), session management
  • Browser integration — CDP support, headless browsing, inline screenshots
  • MCP support — Model Context Protocol with hot-reload and 260+ tools
  • Skills — dynamic tool injection with live reload
  • Upstream sync — automated merge from openai/codex every 30 minutes

 

Authentication

  • ChatGPT sign-in (Plus/Pro/Team) — run dev, pick "Sign in with ChatGPT"
  • API key — export OPENAI_API_KEY=sk-... && dev
  • Device code — headless environments auto-prompt device code flow

 

CLI Reference

dev [options] [prompt]

Options:
  --model <name>        Override model (e.g. gpt-5.1, claude-opus-4-6)
  --read-only           Prevent file modifications
  --no-approval         Skip approval prompts
  --config <key=val>    Override config values
  --oss                 Use local models (Ollama)
  --sandbox <mode>      Sandbox level (read-only, workspace-write)
  --url <endpoint>      Custom API endpoint
  --debug               Log API requests/responses
  --help                Show help
  --version             Show version

 

Configuration

Config: ~/.hanzo/config.toml (reads ~/.code/ and ~/.codex/ for compatibility)

model = "gpt-5.3-codex"
model_provider = "openai"
approval_policy = "on-request"
model_reasoning_effort = "medium"

[tui.theme]
name = "dark-zen"
zen = true

[mcp_servers.filesystem]
command = "npx"
args = ["-y", "@modelcontextprotocol/server-filesystem", "/path"]
Variable Purpose
HANZO_HOME Config directory (default: ~/.hanzo)
OPENAI_API_KEY OpenAI API key
ANTHROPIC_API_KEY Anthropic API key
OPENAI_BASE_URL Custom OpenAI-compatible endpoint

 

Agent Piping

Install companion CLIs to unlock multi-agent orchestration:

npm install -g @anthropic-ai/claude-code @google/gemini-cli @qwen-code/qwen-code

Then use /plan, /solve, or /code — Hanzo Dev detects installed CLIs and orchestrates them in parallel git worktrees.

Custom agents: create YAML-frontmatter .md files in ~/.hanzo/agents/ and invoke with /use <name>.

 

License

Apache 2.0 — community fork of openai/codex. Not affiliated with OpenAI.

See the main README for full documentation.