Hanzo
CLIAgents

Agents

32 `hanzo` commands for Agents, each calling one operation on api.hanzo.ai.

Package agents is autonomous agents for your org: define them, run them, keep every run.

32 commands · API reference →

CommandCallsWhat it does
hanzo agents run <ref>POST /v1/agents/{ref}/runRun one of your org's agents and get the recorded run back.
hanzo agents runs <ref>GET /v1/agents/{ref}/runsReturns one agent's execution history, newest first — each run's input, its output or its error, and how long it took.
hanzo agents get <ref>GET /v1/agents/{ref}Returns one agent with its system prompt and its 20 most recent runs.
hanzo agents update <ref>PATCH /v1/agents/{ref}Changes an agent in place.
hanzo agents rm <ref>DELETE /v1/agents/{ref}Removes an agent and every run recorded against it.
hanzo agents activityGET /v1/agents/activityServes the org-wide recent-activity feed.
hanzo agents builds org get <org> <project>GET /v1/agents/builds/{org}/{project}Returns the readable build of one product: the agent session that produced it, turn by turn — the prompts, the…
hanzo agents builds listGET /v1/agents/buildsReturns the public index of every published build, most recently updated first, so a gallery can link straight to the…
hanzo agents metricsGET /v1/agents/metricsServes the invocations-over-time histogram for the org's Agents dashboard.
hanzo agents runs-allGET /v1/agents/runsReturns the org's agent runs across EVERY agent, newest first — what ran here, for whom, on which model, how long it…
hanzo agents sessions control <id>GET /v1/agents/sessions/{id}/controlReturns the steering commands (pause/resume/stop/message) recorded against the caller's own session that are newer than…
hanzo agents sessions events <id>POST /v1/agents/sessions/{id}/eventsAppend one turn to a session's ordered log.
hanzo agents sessions message <id>POST /v1/agents/sessions/{id}/messageSend text into a running session.
hanzo agents sessions pause <id>POST /v1/agents/sessions/{id}/pauseAsk a running session to pause.
hanzo agents sessions resume <id>POST /v1/agents/sessions/{id}/resumeAsk a paused session to carry on.
hanzo agents sessions stop <id>POST /v1/agents/sessions/{id}/stopAsk a session to stop for good.
hanzo agents sessions tree <id>GET /v1/agents/sessions/{id}/treeReturns the subagent-flow graph rooted at this session: the session, its children, their children, each node carrying…
hanzo agents sessions get <id>GET /v1/agents/sessions/{id}Returns one session with its direct child sessions and its 50 most recent events, oldest of those first.
hanzo agents sessions update <id>PATCH /v1/agents/sessions/{id}Updates a session's surface-owned truth: its status, its title, the run-target it is dispatched to, and the product it…
hanzo agents sessions streamGET /v1/agents/sessions/streamLive session and event updates for the caller's org, as Server-Sent Events.
hanzo agents sessions listGET /v1/agents/sessionsReturns the caller org's live sessions, newest first — each with its event count, its direct-child count and a one-line…
hanzo agents sessions createPOST /v1/agents/sessionsOpens a live agent session in the caller's org — the row every surface (the CLI's outer agent, hanzo.bot, the console,…
hanzo agents targets claim <id>POST /v1/agents/targets/{id}/claimClaimRoutedRun is the machine's long poll for work: it authenticates the daemon, stamps the liveness the dispatch gate…
hanzo agents targets key <id>POST /v1/agents/targets/{id}/keyMints (or rotates) the claim key a hanzo code --serve daemon presents to claim work for this machine, and returns it…
hanzo agents targets runs report <id> <runId>POST /v1/agents/targets/{id}/runs/{runId}/reportCompletes a claimed run: it delivers the terminal result to the run's durable owner, which is what lets that workflow…
hanzo agents targets get <id>GET /v1/agents/targets/{id}Returns one registered machine, with its live session load.
hanzo agents targets update <id>PATCH /v1/agents/targets/{id}Updates one machine in place.
hanzo agents targets rm <id>DELETE /v1/agents/targets/{id}Deregisters one machine.
hanzo agents targets listGET /v1/agents/targetsReturns every machine registered to the caller's org, newest first, each with its live session load.
hanzo agents targets createPOST /v1/agents/targetsRegisters a machine as an agent target, or re-links one that is already registered.
hanzo agents listGET /v1/agentsReturns every agent defined in the caller's org, each with the number of runs recorded against it.
hanzo agents createPOST /v1/agentsDefines an agent in the caller's org: a model, a system prompt (instructions) and a set of tool names.

How is this guide?