> _**CLI skill · `agent` namespace** · ~24,085 tokens · hoody-sdk v1.0.0-beta.17_ # `agent` — In-container AI coding agent over HTTP ## Purpose The `agent` kit exposes the in-container AI agent as a typed namespace: create a chat session, send a prompt, stream the turn (tool calls, gates, output), then confirm/answer/cancel as the agent works. services — `sessions` (with `sessions.turns`), `bots`, `definitions`, `models`, `providers`, `skills` (with `skills.hub`), `memory`, `github`, `workflows`, `tools`, `hooks`, `mcp`, `settings`, `loops`, `logs`, `tasks`, `stats`, `jobs`, `gates`, `changes`, `headless`, `todos`, `usage`, plus `platform` (token bootstrap) and `hoody agent logs export`. ## When to use - **Drive the agent programmatically** — create a session, prompt it, and consume the turn: `hoody agent sessions create` → stream the turn for live tool/gate/output events (per surface — see the streaming note under Quirks), or `hoody agent sessions turns run` for one blocking call → resolve gates with `hoody agent gates approve` / `hoody agent gates deny` / `hoody agent gates answer` → `hoody agent sessions turns cancel` to interrupt. - **Inspect or configure the agent** — list `models` (`hoody agent models list` / `hoody agent models get`; the Jev decision-model catalogue is the separate `hoody agent jev models list`) and `hoody agent providers list` (configure providers via `hoody agent providers auth default set` / `hoody agent providers keys set` / `hoody agent providers oauth start`); switch a session's active model with `hoody agent sessions model set`, browse/install `skills`, read/edit `memory`, manage `workflows`, `hooks`, `definitions` (named agent profiles), and `tools` — both the sessionless catalogue/registry (`hoody agent tools list` / `hoody agent tools readonly list` / `hoody agent tools get`, and `hoody agent tools run` (blocks, returns the result; the unlisted `hoody agent tools stream` returns the one-shot result over SSE frames instead, not a per-token stream) / `hoody agent tools start` (returns `{ job_id }`, poll `jobs`) to invoke a tool with no session — read-only by default, a mutating tool needs `allow_mutations: true` or a confirmed re-issue) and the per-session surface (`hoody agent sessions tools list` for a session's *effective* tool set, `hoody agent sessions mcp tools list`, and `hoody agent sessions tools run`). Unlike the sessionless `hoody agent tools run`, a per-session run executes against the session's *frozen* realm/container/cwd/tool-mode and claims the session's single serial turn slot — so it returns 409 `turn_in_flight` while a turn is running, 409 `gate_parked` while a gate is open, and 404 `tool_not_found` if the tool is not in that session's effective list; whether a mutating tool may run is decided by the live session's own tool mode and confirmation settings (the `allow_mutations` escape hatch is sessionless-only). - **One-shot non-interactive runs** — a headless run (`POST /api/v1/agent/headless/runs`) runs the full agent loop once over a throwaway session (see workflow 7 for the per-surface form: an async job or an SSE stream). - **GitHub from inside the agent** — first establish an account with `hoody agent github auth login` (omit the body for a GitHub device flow → poll `hoody agent github auth poll`; or pass a `token` PAT to persist it directly), then `hoody agent github auth status` to confirm; once an account is active, `hoody agent github repos clone` / `hoody agent github commits create` (and `hoody agent github status` / `hoody agent github branches list` / `hoody agent github repos list` / `hoody agent github prs create` / `hoody agent github sync`) for repo operations the agent performs in-container. ## When NOT to use - Want the interactive TUI, not the API? Run the bare `hoody agent` launcher — it opens the in-container Agent TUI over the terminal-kit WebSocket; this namespace is the HTTP control surface beside it. - Raw shell / command exec → `terminal` (PTY) or `exec` (one-shot). File I/O → `files`. The agent runs these as tools internally; call them directly when you don't need the LLM. - Account-level resources (containers, billing, realms) → `api`. ## Prerequisites - Container with the `agent` kit running; capability URL. - At least one usable model provider before prompting: one with a stored API key, a stored OAuth login, or passwordless access (the shipped default agent is pinned to a passwordless model). `hoody agent providers list` and `hoody agent models list` list the CATALOGUE, which is populated whether or not anything is configured; `hoody agent providers auth status` reports whether a provider is actually usable (`ready`, with `api_key_stored`, `oauth_stored` and `no_auth_ready` behind it). - A session id from `hoody agent sessions create` for every prompt/gate/cancel call. ## Capability URL → See `SKILL-CLI.md § Proxy URLs`. **Reaching a service you host on a container port** (any port, any namespace): - `https://{projectId}-{containerId}-http-.{node}.containers.hoody.com` — proxy speaks HTTP to `localhost:`. - `https://{projectId}-{containerId}-https-.{node}.containers.hoody.com` — proxy speaks HTTPS to `localhost:` (target needs TLS). Edge is always `https://`. No alias, firewall edit, or proxy registration needed; capability-token gates still apply. ## Common workflows ### 1. Prompt a session and stream the turn `hoody agent sessions create` (returns a session id) → stream the turn with `{ text }` to receive live events (tool calls, gates, output deltas) — see the streaming note under Quirks for the supported per-surface method (SDK helper / HTTP SSE route / CLI command) → resolve any gate as it arrives → turn ends. ### 2. One-shot synchronous prompt `hoody agent sessions create` → `hoody agent sessions turns run` with `{ text }` — waits for the turn to end, a gate that needs a person, or the server deadline (290 seconds by default). A clean turn returns `{status:"done", session_id, turn_id}` with no reply text; check `status`, because a failed, cancelled or quit turn answers `error` (with the error `event`), `canceled` or `quit`. A turn that parks on a gate returns `{pending_gate, turn_id}`. When the deadline passes first the answer is `503 service_unavailable` with `details.turn_id` and `details.turn_running: true`: the turn is NOT cancelled, so follow it with `hoody agent sessions turns get` (or the stream) instead of prompting again. Read the reply with `hoody agent sessions transcript get`. Best for short, non-interactive prompts where you don't need streamed events. ### 3. Resolve gates mid-turn While a prompt streams, the agent may pause for human input: a confirmation gate → `hoody agent gates approve` / `hoody agent gates deny`; an open question → `hoody agent gates answer` (to get a helper model to DRAFT an answer for a parked question call `hoody agent gates suggest` — it does NOT answer the gate: it dispatches an async job (HTTP 202) whose suggestion arrives via `hoody agent jobs result get` and an `event.question_suggestion` on the session stream — only one assist may be in flight per session — and the real answer still goes through `hoody agent gates answer`; for unattended runs arm `hoody agent sessions autoreply set` (a self-driving auto-user loop that withholds write-class actions unless you opt in with `allow_writes: true`, either on the arm call or later via `hoody agent sessions autoreply writes set`)). The gate identity to echo is the ENVELOPE-level `gate {id, generation, type}` that the stream frame parking the gate carries beside `seq` / `incarnation` / `event`. The `event.confirm_request` payload also has a numeric `gate_id`, but that is the daemon's id space and is never the value to echo. The answer body for a question gate: the envelope's gate id as `gate_id` (optionally its `generation`), then **answer** (or **text**, used when **answer** is blank) for a single question; for a batch (`event.user_question` carrying `questions[]`), `answers` maps each `questions[].id` to its answer text, for example `{"gate_id":"","answers":{"":"yes"}}`. A body with no `hoody agent gates answer`, no `text` and no `answers` is `400 bad_request` and the question stays parked. The `question_id` on `event.user_question` is a diagnostic number, not a body field. Echoing a wrong/stale `gate_id`/`generation`, or answering when nothing is parked, returns 409 (`no_pending_gate` / `stale_gate` / `gate_already_answered` / `gate_type_mismatch`). On a session whose approval policy is `always` and whose approver lease was ever minted (`hoody agent sessions approver lease claim`, or the lease handed back by a create or attach that asserted `always`), EVERY decision — `hoody agent gates approve` / `hoody agent gates deny`, and the confirmed re-issue of a gated `hoody agent sessions tools run` — must carry the current lease capability in the `X-Hoody-Approver-Lease` request header. (CLI: `--x-hoody-approver-lease`.) Without it the decision is refused `409 approver_lease_required`, a capability that does not verify is `409 approver_lease_invalid`, and an expired one is `approver_lease_expired` until a holder acquires again. Interrupt a running turn with `hoody agent sessions turns cancel`. Tear the session down: `hoody agent sessions close` removes it from the live map; `hoody agent sessions delete --id ` always erases the persisted record too (the CLI has no keep-the-record form; re-attach with `hoody agent sessions create --attach ` works only after `sessions close`). To roll a session back without tearing it down, `hoody agent sessions trim` with `{ turn_idx }` truncates conversation history to (and including) that turn index. ### 4. Pick a model / provider `hoody agent providers list` to list the catalogued providers (and `hoody agent providers auth status` to check that one is `ready`: a stored credential or passwordless access), `hoody agent models list` to list the catalogued models, then `hoody agent sessions model set` to bind a model to a session before prompting — SYNCHRONOUS: the response reports the actual outcome ({status:'ok', model, persisted} on success; structured 409/422 errors while busy or for an unconstructable spec). A successful switch is live for the session at once and then TRIES to persist into the chat agent's frontmatter (a global repin for future sessions of that agent); that save is best-effort, so only `persisted: true` confirms the repin — `persisted: false` means the session switched but future sessions keep the old pin. PRECEDENCE: the agent's frontmatter `model` is the DEFAULT for a session that does not request one; an explicit model on create (`hoody agent sessions create --model `), or this live `hoody agent sessions model set`, OVERRIDES that pin for the session — create is session-scoped and does not rewrite the agent, this live switch repins globally. The shipped default agent ships pinned, so its pin is the out-of-the-box default until an explicit model is chosen (an explicit model together with `attach` or `backend: "acp"` is rejected 400 — a resumed/delegated session cannot take an explicit model). Each session has further per-session knobs (all session-scoped PATCHes that apply live): `hoody agent sessions effort set` (`{ effort }` — `low|medium|high|xhigh|max`, or `""` for the model default), `hoody agent sessions verbosity set` (`{ level }` — `normal|concise|terse|minimal`), `hoody agent sessions env set` (`{ enabled }` — toggle whether the `HOODY_*` shell-env contract is injected for the bash tool), and `hoody agent sessions agent set` (`{ agent }` — bind a named profile from `agents`). To use a model from an endpoint that is not in the catalogue (anything that speaks the OpenAI Chat Completions, OpenAI Responses or Anthropic Messages API from a public HTTPS address, such as a model server you run yourself or a company gateway), add it as a **custom provider** first. `hoody agent providers create` takes `--id`, `--endpoint` (the base URL) and one `--models model=` per model, then `hoody agent providers keys set --id --api-key ` stores its key (a key never goes in the create command), and its models are `/` wherever a model is chosen: `hoody agent sessions create --model `. `hoody agent providers update` changes it and `hoody agent providers delete` removes it with its stored key. The change applies at once, with no restart: new sessions, model switches and Jev see it, and an open session on one of its models picks it up before its next turn. `id` is 1-40 lowercase letters, digits or inner hyphens and cannot change later; `model_prefix` is the `id` unless given, and must equal it; `wire_format` is `chat_completions` (default), `responses` or `messages`, and `auth_scheme` follows it (`bearer`, or `x-api-key` for `messages`). Built-in providers refuse update and delete (`409 provider_builtin`), as does a provider defined in a project's providers file (`409 provider_not_managed`). See Examples for the full run. ### 5. Skills, memory, todos, workflows, agents - **Skills** — `hoody agent skills list` (each carries an enabled + trust state), `hoody agent skills hub install` / `hoody agent skills hub search` / `hoody agent skills hub preview` to find and install from the hub. A newly installed/imported skill must be trusted before its code runs — `hoody agent skills trust` is the gate (identify the skill by `root_dir`+`rel_dir`, set the `trusted` flag); `hoody agent skills enable` / `hoody agent skills disable` only enable or disable by `name` (set the `disabled` flag). Both `hoody agent skills trust` (which grants arbitrary code-execution trust) and `hoody agent skills hub install` (which writes arbitrary skill code to disk) take effect immediately over this namespace: there is no confirmation step, and no privilege beyond ordinary access to the kit is required, so an autonomous caller can silently trust and install skill code. Add your own confirmation before exposing these to one. - **Memory** — `hoody agent memory search` for hybrid recall (BM25 + vector + graph) and `hoody agent memory items list` to enumerate by `project`; `hoody agent memory items create` / `hoody agent memory items update` / `hoody agent memory items delete` to write; `hoody agent memory graph get` for the relation graph (or `hoody agent memory items get` to read one record by `id`). `hoody agent memory enable` / `hoody agent memory disable` are the memory capture/privacy switch — they persist `features.memory` and flip the live store — and `hoody agent memory flush` forces the store's durability barrier; none of the three is admin-gated. Memory is project-scoped (pass `project`). Memory reads and item writes accept `X-Hoody-Realm` or `?realm=` to select `global` or a realm id (in the SDK, pass `realm` in the method's options); omitted, the agent's current realm is used. A realm this login does not serve returns `404 not_found`; an agent pinned to one realm refuses another with `400 realm_scope_unsupported`. If the selected realm's memory is not connected, the request returns `503 service_unavailable` with `Retry-After` and does not connect it. `hoody agent memory consolidate` remains human-only; see Common errors. `hoody agent memory search` / `hoody agent memory graph get` also return `503 store_unavailable` while the store is still warming — retry rather than treating it as an empty result. - **Todos** — `hoody agent todos list` / `hoody agent todos create` to file; then `hoody agent todos triage` (LLM inbox pass), `hoody agent todos claim` / `hoody agent todos release`, `hoody agent todos start` (dispatch a background orchestrator — returns `{job_id, session_id}`), `hoody agent todos cancel` to abort an in-flight run, and `hoody agent todos proposals approve` / `hoody agent todos proposals deny` to resolve a proposed run — approve is NOT inert: it spawns a background worker session equivalent to `hoody agent todos start` (a J-class autonomous run that spends model budget), while `hoody agent todos proposals deny` spawns nothing — plus `hoody agent todos snooze` / `hoody agent todos archive`. To move a todo between states (`inbox`, `ready`, `blocked`, `review`, `done`, `dropped`) or edit its fields, `hoody agent todos update` applies a CAS-guarded patch / `state` transition (`in_progress` is entered only by `hoody agent todos claim` / `hoody agent todos start`; `hoody agent todos update` refuses it, and an unknown state is rejected) — read the todo's OWN `revision` with `hoody agent todos get` and pass it back (`hoody agent todos revision get` is a store-wide change cursor, NOT the CAS token; a stale value → `409 todo_conflict`); a stale revision is rejected (409). `hoody agent todos archive` is not terminal — `hoody agent todos archived purge` permanently and irreversibly deletes archived todos of the selected realm that were archived more than 90 days ago (and those with a missing or invalid archive time); no confirmation gate, treat as destructive. Mind the comment split: `hoody agent todos comments create` (`/messages`, plural) only appends a comment, whereas `hoody agent todos messages send` (`/message`, singular) ALSO kicks an orchestrator turn — a budget-spending LLM run that returns `{job_id}` — so use the plural form for a plain note. The `job_id` returned by `hoody agent todos start`, `hoody agent todos messages send` and `hoody agent todos triage` completes as `succeeded` the moment the dispatch is accepted; it records the dispatch only, not the worker's outcome. Follow the todo itself (`hoody agent todos get`, its state and timeline) rather than polling that job. Note `hoody agent todos start` / `hoody agent todos triage` / `hoody agent todos proposals approve` are J-class autonomous runs with NO confirmation gate on the RPC (reaching the RPC is itself treated as the human approval; that denial lives only on the model-facing `run_todo` *tool*), so calling them from automation silently dispatches a real LLM run — gate them in your own caller. - **Workflows** — `hoody agent workflows list` / `hoody agent workflows get` / `hoody agent workflows set` / `hoody agent workflows delete` / `hoody agent workflows hidden set` manage saved definitions; `hoody agent sessions workflows start` dispatches one onto a live session and returns a JOB, not a run (optionally seed the run with a `{ prompt }` body — input text fed to the workflow) — poll `hoody agent jobs get` until its `run_id` populates (null during the brief dispatch window), then track via `hoody agent workflows runs list` / `hoody agent workflows runs get` and stop with `hoody agent workflows runs cancel`; feed a running workflow with `hoody agent workflows messages send` (`{ text }`). Run events flow on the owning session's stream, not a per-run bus. - **Bots** — `hoody agent bots create` opens a long-lived assistant that delegates work to sessions on containers; post to it with `hoody agent bots messages send` (HTTP 202; a busy Bot queues the message) rather than prompting its session, and see Examples for the full create, message, follow, forget, delete run. Replace its limits with `hoody agent bots guardrails set --guardrails ` (empty clears them): the Bot reads them before its next message and delegates opened afterwards receive them in their first prompt, while delegates already open keep theirs. `allowed_containers` and `allowed_agents` restrict the delegates it opens next (empty means any) and `yolo: true` (default false) asks delegates to approve tool calls automatically. Check `yolo_unapplied` in `hoody agent bots get`: `pending` means a delegate has not confirmed the change yet and it is sent again; `refused` means that delegate's approval policy does not allow YOLO, so it keeps asking for approvals and the change is not sent again until `yolo` changes. `hoody agent bots stream` and `hoody agent bots log get` carry finished rows only; for live reply text, thinking and tool calls follow the Bot's `session_id` (from `hoody agent bots get`, it changes after `hoody agent bots reset`) with `hoody agent sessions stream`, and do not answer questions on that session whose `frame_request.kind` starts with `bot.`, because the Bot runtime answers them. To stop only the Bot's running turn use `hoody agent sessions turns cancel` on its `session_id`. - **Agent profiles** — `hoody agent definitions list` to enumerate named profiles; `hoody agent definitions create` / `hoody agent definitions copy` / `hoody agent definitions rename` / `hoody agent definitions delete`; `hoody agent definitions source get` → edit → `hoody agent definitions source set` (pass the `revision` from `hoody agent definitions source get` as `hoody agent definitions source set --expected-revision `: a stale one is refused `409 revision_conflict` and nothing is written; without it the save is unconditional); `hoody agent definitions model set` / `hoody agent definitions tools set` / `hoody agent definitions tools toggle` / `hoody agent definitions turns limit set` / `hoody agent definitions reset`. The product-owned `bot` profile (the one a Bot runs) allows only a model pin through `hoody agent definitions model set` (an empty model clears it); `hoody agent definitions source set`, `hoody agent definitions tools set`, `hoody agent definitions tools toggle` and `hoody agent definitions turns limit set` are refused for it with `400 bad_request`, as are creating over it and renaming it, and a Bot's own `model` overrides the pin. To make a session use a profile, `hoody agent sessions agent set` (`{ agent }`) — that selects, it does NOT edit the profile. Two daemon guard rails: `hoody agent definitions delete` refuses the configured default chat agent, and a shipped-default profile that has no removable override of its own (`is_error:true` — use `hoody agent definitions reset` or `hoody agent definitions source set` instead); in a realm that holds its own saved override of a shipped profile, deleting it removes the override and the shipped version shows through again, and `hoody agent definitions reset` refuses a profile that has no shipped default (`is_error:true`). ### 6. Fire-and-observe, recurring prompts, and re-attach - **Fire-and-observe** — `hoody agent sessions turns start` with `{ text }` dispatches a turn and returns `{ job_id, session_id, turn_id }` immediately (HTTP 202) without streaming or blocking; watch completion via the `agent_done` on the session event stream (a connected `hoody agent sessions stream` socket, or `hoody agent sessions stream`) whose `turn_id` matches (another client's turn on the same session ends with its own `agent_done`). A cancel scoped with that `turn_id` stops only this turn. Refuses with 409 `turn_in_flight` if a turn is running, or 409 `gate_parked` if a gate is open. - **Observe / re-attach** — `hoody agent sessions stream` attaches to a live session's full `event.*` stream over WebSocket, and `hoody agent sessions stream` is the SSE form of the same route; neither falls back to the other on its own. Either way, pass `since` (gateway int64 seq, or the `Last-Event-ID` header) to resume from the 1024-event replay ring after a disconnect (a gap past eviction yields `event: lagged {code:replay_gap}`). Each frame is `{seq, incarnation, event}`, and a session re-attached under the same id starts a new incarnation whose `seq` restarts at 1, so send `incarnation` (the one you last saw) together with `since`: a mismatch answers `replay_gap` plus the full retained ring instead of silently resuming into a different history. Over SSE the `event:` line drops the `event.` prefix (`event.agent_done` arrives as `event: agent_done`) while the JSON `data:` keeps the full name, so match ordinary event frames on the parsed payload's `event.type` (for example `event.agent_done`); control frames (`lagged`, `end`, `replay_boundary`) have no `event` key. WebSocket frames are delivered unchanged. `hoody agent sessions replay` returns the buffered event tail of a *live* session (with `min_seq`/`max_seq`) for a one-shot catch-up (only a *live* session has this ring). `hoody agent sessions stream` does not revive a session either: on a persisted but non-live session it answers `404 not_found`, so re-attach it first (`hoody agent sessions create --attach `), then open the stream. - **Recurring prompts (loops)** — `hoody agent loops create` with `{ prompt, interval }` (plus optional `max_runs` / `stop_when` / `max_cost_usd` / `max_wall_ms` caps) schedules a prompt to re-fire on a live session; `hoody agent sessions loops list` / `hoody agent loops update` (pause via `{ paused: true }`) / `hoody agent loops delete` to manage, `hoody agent loops runs start` to fire one immediately. Loops are entirely session-scoped. Three rules refuse a request rather than adjusting it: `interval` has a floor of 60 seconds; at most 8 loops can be active (not paused, not ended) per daemon, so the 9th create is rejected; and each `hoody agent loops update` carries at most ONE intent (`paused`, or `expires_in`, or the budget fields `max_cost_usd` / `max_wall_ms`), so a request mixing two is rejected 400 (a body with none of them is treated as a budget update). ### 7. Headless one-shot run The run's shape is chosen by the request BODY, not by a header: the default (`format` `text` or `json`) is an async job — HTTP 202 `{ job_id }`, then poll `hoody agent jobs get` and fetch the output with `hoody agent jobs result get` — while `format: "stream-json"` (or `stream: true`) streams the run over SSE (`start` → `result` or `error` → `end`). A failure after the acknowledgement (a timeout, `admin_unauthorized`) arrives later, in the job result or as the `error` frame, never as the HTTP status. Every confirm, plan and question auto-approves in a headless run, so treat it as arbitrary code execution. `hoody agent headless start --prompt ""` prints the 202 `{ job_id }` (`--format` is `text` or `json`); poll `hoody agent jobs get --id ` and fetch the output with `hoody agent jobs result get --id `. Use `hoody agent headless stream --prompt ""` to print the SSE frames as they arrive instead. For a one-shot turn that needs no job, `hoody agent prompt "" --wait` creates a session and blocks until the turn completes (add `-y` to auto-approve confirm gates; questions still park the turn). ### 8. Configure MCP servers for a session Reads first: `hoody agent mcp list` (`{ session_id }`) returns the EFFECTIVE merged `mcp_servers` config, the per-layer settings files behind it, and each server's LIVE runtime state (connected, negotiated protocol revision, tool count, pid, revocation reason, recent stderr). Every write is TWO steps: `hoody agent mcp intents create` (`{ session_id, op, scope }`, op ∈ the strings "upsert", "delete", "set_enabled" and "import", scope ∈ `user`|`project`|`local`; an omitted scope means `user`, or `project` when the session has no user layer, which is the usual case for a container session — read the returned target path to confirm where the write lands) mints a single-use nonce bound to {session, op, resolved settings path} and returns the target path plus the current `mcp_servers` hash — then present that `nonce` plus the hash as `expect_hash` on the matching `hoody agent mcp upsert` / `hoody agent mcp delete` / `hoody agent mcp enable` / `hoody agent mcp disable` / `hoody agent mcp import`. BOTH are required on every write: skipping step one fails closed, a nonce minted for a different op or scope fails closed, and `expect_hash` has no omit-it default — a first write into a settings file that does not exist yet states that expectation with the empty-array hash rather than leaving the field out. To adopt someone else's config, preview it with `hoody agent mcp preview` (`{ session_id, document }` — writes nothing, needs no nonce, strips credential values) and then `hoody agent mcp import` with a fresh `op: "import"` nonce; imported servers land DISABLED, so enable each one with `hoody agent mcp enable`. After editing a settings file by hand, or to recover a server that died, `hoody agent mcp reconnect` (`{ session_id }`) re-reads the layers and reconciles every live session's pool — a healthy unchanged server is not restarted. `hoody agent mcp test` trials a candidate config without saving it, but it is human-only (see Common errors). ## Quirks & gotchas - The bare `hoody agent` verb is a **TUI launcher**, separate from this HTTP namespace; they coexist — the launcher opens the in-container Agent TUI, the namespace is the typed control surface. In that TUI, Ctrl+V pastes from the clipboard of the machine the CLI runs on, and Shift+click opens a link (the TUI tracks the mouse). - On the realm-scoped agent commands (Bots, sessions, gates, loops, todos, workflow runs, changes and stop calls), an explicit `--realm global` or `--realm <24-hex-id>` also scopes the agent request, through `X-Hoody-Realm`; `--realm all` lists every served realm on the Bots, sessions, gates, loops, todos and workflow-runs list commands. A `--realm` that disagrees with the command's own `--x-hoody-realm` is refused before anything is sent, and a saved or environment realm default is not forwarded this way. Everywhere else the global `--realm` only picks the platform API host that resolves `-c` to the container (`--realm global` is the base host), and a route that serves only the active realm refuses a per-request realm with 400 `realm_scope_unsupported`. - Source of truth is the agent kit's own OpenAPI document, served at `GET /api/v1/agent/openapi.{json,yaml}`; every route lives under the single `/api/v1/agent` prefix. The kit checks no credential of its own and asks for no bearer header; access is decided by the container's proxy permission policy. Refused by the Source IP Guard: Hoody Kit programs are reached through their URLs only. A request that does not come through the kit URL gets 403 `forbidden`, so call the kit URL. - The proxy service slug is `agent` and the kit URL host carries the index segment (`-agent-{index}`). The CLI resolves it from `--container` / `-c`; you do not build it by hand. - `hoody agent sessions turns run` waits for the turn to end (or returns `{pending_gate}` the moment a turn parks on a confirm/question), but at most until the server deadline (290 seconds by default): a turn still running then answers `503 service_unavailable` with `details.turn_running: true` and keeps running; prefer streamed prompting for anything non-trivial so you can observe progress and resolve gates as they arrive. (Stream the turn with `hoody agent prompt "" --session ` (`-c` picks the container, not the session); it reads the daemon's SSE for you. `hoody agent sessions turns start --id --text ""` is the raw fire-and-observe form: it dispatches the turn and prints the 202 `{job_id, session_id, turn_id}`. Add `--stream` to follow the session event stream instead; that stream does not end with the turn, so stop at the `agent_done` carrying your `turn_id`. `hoody agent sessions turns run` is the blocking form.) For non-interactive turns where you cannot resolve gates by hand, enable the `auto_approve` gate policy to answer confirm gates (off by default). On the blocking form (`hoody agent sessions turns run`, route `prompt:sync`) it stays on for the dispatched turn even after the request ends. On the streamed form (route `prompt:stream`) it is tied to the connection, not the turn: disconnecting before the turn ends stops it, and while the stream stays open it also answers confirm gates of LATER turns on the same session, so close the stream at your turn's `agent_done`. With either form, an ordinary confirm gate is approved, a gate raised by a tool-call rule is DENIED, and a session whose approval policy is `always` refuses the policy with `409 approval_policy_active` before the turn starts. CLI: `hoody agent prompt -y` (`--yes`), or `hoody agent sessions turns run --policy auto_approve` for the blocking form; the bare TUI launcher has no such flag. This only answers **confirm** gates, never questions. - **The agent's shell has the container user's own sudo.** The agent runs as the container's `user`, and its bash tool can use sudo exactly as that user can without a password: with the default passwordless sudo it can `sudo apt-get install`, `sudo systemctl enable --now` a unit and so on. When `user` has no passwordless sudo (the drop-in removed, a password required), the agent's shell has none either, because there is no terminal to type a password into; a policy that allows only some commands without a password allows the same commands to the agent (with sudo's default `listpw`). While the agent's shell can sudo, a session's `dir_scope` (`home`) no longer confines its bash commands: the file tools still keep to the scope, but the shell can reach the whole container, like the terminal kit. To take sudo away from the agent, take passwordless sudo away from `user` (see container-tools); the agent keeps everything else `user` has, such as Docker through the `docker` group. - Every prompt/gate/cancel call is **session-scoped** — you must hold a session id from `hoody agent sessions create` first; there is no implicit default session. Hook writes are session-scoped too (the guarded writes — `hoody agent hooks upsert` / `hoody agent hooks delete` / `hoody agent hooks enable` / `hoody agent hooks disable` / `hoody agent hooks enable` / `hoody agent hooks disable` — plus `hoody agent hooks intents create`, and the side-effecting `hoody agent hooks run` / `hoody agent hooks trust`, all require a live `session_id` — `hoody agent hooks trust` clears the per-session hook-trust prompt (the execution-trust probe `hoody agent hooks list` reports), the gate that must be acknowledged before a saved hook command is allowed to fire, mirroring `hoody agent skills trust` for skills; `hoody agent hooks reload` accepts one only to also return the reloaded summary) AND nonce-guarded: call `hoody agent hooks intents create` (`{ session_id, op, scope }`, op ∈ upsert|delete|toggle|set_disabled|rules_set; `rules_set` is for `hoody agent hooks rules set` and needs its own matching nonce) to mint a single-use nonce, then pass that `nonce` on the matching `hoody agent hooks upsert` / `hoody agent hooks delete` / `hoody agent hooks enable` / `hoody agent hooks disable` / `hoody agent hooks enable` / `hoody agent hooks disable` — the nonce binds to that session+op+scope tuple and the write fails closed without it. Note hooks are an arbitrary-command surface: `hoody agent hooks upsert` persists a command that fires on lifecycle events, and `hoody agent hooks run` on a command hook runs a command at once: running saved hooks goes through the session's hook-trust gate, while a run that supplies an unsaved inline `command` runs it without that saved-hook trust check. Every command-hook run is refused (`approval_policy_unsatisfiable`) while the session's approval policy is `always`, and `hoody agent hooks test` of a shipped hook only evaluates its trigger without running anything. These calls carry no confirmation step of their own — the same access that authorizes any agent-kit call authorizes these too, with nothing extra — so add your own confirmation before exposing this surface to an autonomous caller. - **`env` and `headers` VALUES are never returned by the MCP surface; every other field comes back verbatim.** `hoody agent mcp list` reports `env_keys` / `header_keys` — key NAMES only — because a redacted value invites a client to write the placeholder back as the real secret; a write whose body carries the redaction placeholder for a credential is REFUSED rather than stored. Other fields, including `url`, `command` and `args`, are echoed verbatim, so a credential embedded in one of them (a token in a URL, a key on a command line) is NOT redacted: keep secrets in `env` / `headers`, and treat the rest of a listing as sensitive. To change a secret you must supply its real value; to leave one alone, omit the field — `hoody agent mcp upsert` merges FIELD BY FIELD over the existing entry of the same name, so omitted fields keep their stored value (including fields this build does not model), and `env` / `headers` merge per key (a key set to `null` is deleted, `{}` clears the map). A genuine re-point (a changed `type`, `command`, `args` or `url`) clears `env` and `headers` unless the same request re-supplies them, so send the credentials the new target needs in that write; restating the identity you read back is not a re-point. `hoody agent mcp enable` / `hoody agent mcp disable` flip only the `enabled` flag so credentials and options survive a disable. Writes apply to live sessions before the response returns: a deleted, disabled, or re-pointed server is REVOKED in every live session first (a stdio child is reaped when its last holder releases), so a caller mid-turn cannot still reach it. Import is WHOLE-BATCH — one bad entry aborts everything — it understands the hoody (`mcp_servers` list), Claude/Cursor (`mcpServers` map) and VS Code (`servers` map) dialects, and REFUSES a document carrying more than one of them rather than guessing. - `POST /api/v1/agent/hoody/auth/bootstrap` (HTTP only; no CLI command) (token bootstrap) is enabled by default; a deployment can turn it off, and then every call answers 404. Browser clients may call it; the body must be exactly `application/json`. Where the deployment requires a capability, the body must carry the matching `capability` (a mismatch is also 404). The token must belong to this box's owner and carry the full login grant (otherwise 403). On a box with no credential it installs (201 `installed`) and adopts any local sessions or todos that have no owner; on a box logged in to the SAME account it replaces the stored token whether or not it expired (200 `renewed`). A token for a different account is refused `409 agent_login_conflict`, and a credential supplied through the environment is never replaced (`409 credential_present`). ## Common errors - A model rate limit can end the turn: `event.error.code` is `quota_wait_too_long` or `rate_limit`, and `agent_done.error_code` carries the same code. For `quota_wait_too_long`, read `retry_after_secs` from the error payload, wait that many seconds, then send the message again: the turn ended instead of waiting. `retry_after_secs` is omitted on other errors, so do not assume it exists for `rate_limit`. - A gate or question left unresolved stalls the turn — a streamed prompt that emitted an `event.confirm_request` (confirm gate) or `event.user_question` (question gate) will not complete until you answer it: `hoody agent gates approve` / `hoody agent gates deny` for a confirm, `hoody agent gates answer` for a question. For unattended runs, arm `hoody agent sessions autoreply set` (a self-driving auto-user loop), or pass `policy: "auto_approve"` on the prompt — but `auto_approve` only answers **confirm** gates (approving ordinary ones, denying rule-raised ones; refused with `409 approval_policy_active` on an `always` session), never questions; a parked question still stalls until `hoody agent gates answer` (or the auto-reply loop) answers it. - `hoody agent tasks list` and `hoody agent tasks transcript get` return their data INLINE and need no live session and no attached stream. `hoody agent tasks list` is the UNION of the live task registry and the session's PERSISTED task store (keyed by task id, live winning) — the live registry evicts completed tasks when a new one spawns, so a finished task can leave memory while its transcript is still durable, and a live-only list would hide it. `hoody agent tasks transcript get` reads a task that reached a terminal state even for a closed session and after a daemon restart; a task still RUNNING when the daemon died is NOT recoverable and reads 404. Its `source` field is `"live"` or `"store"`, and `complete` reports whether the response reflects a terminal projection DURABLY COMMITTED to that store. `after_seq` is EXCLUSIVE (entries strictly after it, plus any still-open entry); OMITTING it returns the whole transcript, which is distinct from `after_seq=0`. `hoody agent tasks cancel` / `hoody agent sessions tasks cancel` still act on a LIVE session and stop background tasks mid-turn (server-layer; tasks survive `hoody agent sessions turns cancel` but are not restartable). - `hoody agent memory consolidate` (POST /memory/consolidate) is **human-only and ALWAYS fails over this namespace** — it has no successful HTTP/SDK/CLI path: a call that passes the admin check returns `403 human_only`, and the admin check can refuse it first with `403 admin_unauthorized`. It can only be triggered from an interactive human session. Do not call it programmatically. - `hoody agent mcp test` (POST /mcp/probe) is **human-only and ALWAYS fails over this namespace** — probing STARTS A PROCESS (stdio) or makes an outbound request to a caller-chosen URL (http/sse), so a machine caller may not self-approve it and receives `403 human_only` on every HTTP/SDK/CLI call. The surface still exposes it for completeness, it simply always refuses. The deny list is still enforced on the candidate config before anything is started. Use `hoody agent mcp preview` for a write-free preview instead; there is no programmatic substitute for the live trial. - An MCP write needs BOTH a `nonce` and an `expect_hash` — neither is optional, and a stale hash is a CONFLICT rather than a silent overwrite. `hoody agent mcp upsert` / `hoody agent mcp delete` / `hoody agent mcp enable` / `hoody agent mcp disable` / `hoody agent mcp import` each require a fresh single-use `nonce` from `hoody agent mcp intents create` minted for that exact op and scope (one minted for a different op or scope fails closed) AND the `mcp_servers` hash you last read, from either `hoody agent mcp intents create` or `hoody agent mcp list`. A mismatch means someone else edited the layer since you read it — re-read, re-mint, retry; each nonce is good for exactly one write, so a retry always needs a new one. There is no "omit it for the first write" shortcut: writing into a settings file that does not exist yet means passing the empty-array hash. - `hoody agent workflows delete` removes **user** workflows and saved customizations. A built-in/**system** workflow that you never customized is refused (`is_error:true`) and re-seeds on every boot; `hoody agent workflows hidden set` is the only way to remove it from view. Deleting your saved customization of a system workflow succeeds and brings the shipped version back: at once in a scoped realm, at the next daemon restart otherwise. - Empty values on agent-profile edits mean *inherit / unrestrict*, not *clear to nothing*: `hoody agent definitions model set` with `model: ""` removes the model line (falls back to the default model), and `hoody agent definitions tools set` with `tools: []` removes the allow-list line, which means **all tools are allowed** (NOT zero). Pass a non-empty `tools` array to genuinely restrict. - Prompting with no usable model/provider configured fails the turn. `hoody agent providers list` lists every catalogued provider whether or not it is set up, so check the one you intend to use with `hoody agent providers auth status` before you prompt (blocking or streamed): `ready` is true for a stored API key, a stored OAuth login, or a passwordless provider (`no_auth_ready`). - A custom provider's `base_url` must be an `https` URL with no user name, password, query or fragment, at a public address; one that is not (an internal address, a name that only resolves inside a network, or a name that resolves to an internal address when a request is made) is refused `422 provider_invalid` with `details.field` `base_url`. Create is not idempotent by itself: repeating a create that went through answers `409 provider_exists`, so send an `Idempotency-Key` to retry safely (the same key with another body is `422 idempotency_key_reused`). Deleting a provider leaves an open session on one of its models unconfigured: its next prompt fails with `session_unconfigured` until you switch it to another model, and agents and Jev settings that name one of its models fail the same way until changed. - Calling prompt/gate/cancel against a session whose live connection was torn down (`hoody agent sessions close`) returns not-found. If the record survives, re-attach with `hoody agent sessions create --attach `; otherwise start a fresh session (the same create call without `attach`). After a *hard* delete (`hoody agent sessions delete`, which always erases the record) the record is gone and only a fresh session works. ## Related namespaces `terminal`, `exec`, `files`, `notes`, `api`. ## Examples A **Bot** here is the agent's long-lived assistant (`hoody agent bots`). It opens delegate sessions on containers, follows them and reports back. It is not the chat-app `bot` namespace. Set `P`, `C`, `N` from `hoody containers get` first. The Bot's id below is `release-bot`; omit `id` on create to have one generated, and take it from the response. ### 1. Create a Bot, message it, follow its replies, forget, delete **Goal:** run a Bot end to end. `guardrails` are limits on the work (they apply to the Bot and every delegate it opens), not instructions. A Bot lives in one realm: pass `realm` (`X-Hoody-Realm`) to pick one, otherwise the agent's current realm is used. The Bot's own session opens when the first message is posted, so `session_id` is empty until then. **Step 1 — create.** Send `id` to make a retry safe: a second create with the same id answers `409 bot_exists`. ```bash hoody agent bots create --id release-bot --name 'Release bot' \ --role 'Ships the weekly release.' --guardrails 'Never push to main.' ``` **Step 2 — message it.** The answer is `202` with `{message_id, state}`: `posted` (with `turn_id`) when the Bot is free, `queued` while it is busy, and the message goes out when its turn ends. Add an `Idempotency-Key` to retry safely. ```bash hoody agent bots messages send --id release-bot --text 'Check the staging build and tell me if it is green.' ``` **Step 3 — follow the replies.** The stream carries finished log rows only: first a `state` frame (the Bot), then `row` frames, plus `lagged`, `archived` and `end`. The reply is one `bot` row written when its turn ends, and a turn with no reply text writes none. Resume with `since` (or `Last-Event-ID`). For live text, thinking and tool calls, follow the Bot's own `session_id` with `hoody agent sessions stream` instead. To read without streaming, page the log: pass `next_since` back as `since` while `has_more` is true. ```bash hoody agent bots stream --id release-bot hoody agent bots log get --id release-bot --since 0 ``` **Step 4 — forget or reset.** `hoody agent bots forget` moves the log to the archive and clears the conversation; the Bot keeps its settings and delegates. `reset` also archives the log but starts a new session with the Bot's current model, which is how a changed `model` takes effect. The old session is not closed. Neither deletes the archive; `hoody agent bots archive purge` does. ```bash hoody agent bots forget --id release-bot --yes hoody agent bots reset --id release-bot --yes ``` **Step 5 — delete.** Removes the Bot with its log and archive, after a best-effort stop of its working delegates. Its session and delegates are not closed: they stay listed under the sessions and a person can continue them. There is no stop route for the Bot itself: to stop its running turn, cancel its `session_id` with `hoody agent sessions turns cancel`. ```bash hoody agent bots delete --id release-bot --yes ``` ### 2. Add a custom provider, store its key, use its model **Goal:** connect an OpenAI-compatible endpoint and run a session on one of its models. The provider id below is `acme`; its model is selected as `acme/llama-3.3-70b`. **Step 1 — create it.** `id`, `base_url` and `models` are required. Add an `Idempotency-Key` so a retry answers with the provider the first try created instead of `409 provider_exists`. The reply carries the provider, with each model's `spec`. ```bash hoody agent providers create --id acme --endpoint https://api.acme.example/v1 \ --models model=llama-3.3-70b,context_window=131072 ``` **Step 2 — store its key.** The key has its own route and is never returned. ```bash hoody agent providers keys set --id acme --api-key "$KEY" ``` **Step 3 — use its model.** Start a session on it; `hoody agent sessions model set` switches an open one and `hoody agent definitions model set` pins an agent profile. ```bash hoody agent sessions create --model acme/llama-3.3-70b ``` **Step 4 — change or remove it.** Update names only what changes (`models` and `headers` replace the current list and map; `id` and `model_prefix` are fixed). Delete asks for confirmation on the CLI and removes the stored key too. ```bash hoody agent providers update --id acme --endpoint https://eu.api.acme.example/v1 hoody agent providers delete --id acme --yes ``` ## Reference ### `hoody agent` (273) — AI agent — sessions, prompting, models, skills, memory, todos, workflows | Command | Aliases | Category | Summary | SDK Link | Example | |---------|---------|----------|---------|----------|---------| | `hoody agent acp disable` | | write | Disable a delegated ACP agent | `agent.acp.disable` | `hoody agent acp disable --agent my-agent` | | `hoody agent acp enable` | | write | Enable a delegated ACP agent | `agent.acp.enable` | `hoody agent acp enable --agent my-agent` | | `hoody agent acp model set` | | write | Set the delegated ACP agent's model | `agent.acp.setModel` | `hoody agent acp model set --agent my-agent --model openai/gpt-5.4-nano` | | `hoody agent acp secrets set` | | write | Store an ACP per-agent secret value | `agent.acp.setSecret` | `hoody agent acp secrets set --agent my-agent --key --value hello` | | `hoody agent acp status` | | read | Get BYOA ACP backend status | `agent.acp.getStatus` | `hoody agent acp status` | | `hoody agent bots archive get` | | read | Read a Bot's archive | `agent.bots.getArchive` | `hoody agent bots archive get --id abc-123 --since 1750000000000 --limit 10` | | `hoody agent bots archive purge` | | destructive | Delete a Bot's archive | `agent.bots.purgeArchive` | `hoody agent bots archive purge --id abc-123 -y` | | `hoody agent bots create` | | write | Create a Bot | `agent.bots.create` | `hoody agent bots create --name my-resource --role admin` | | `hoody agent bots delegates list` | | read | List the sessions a Bot opened | `agent.bots.listDelegates` | `hoody agent bots delegates list --id abc-123 --state open --page 10` | | `hoody agent bots delegates stop` | | write | Stop one of a Bot's delegates now (--close also closes its session) | `agent.bots.stopDelegate` | `hoody agent bots delegates stop --id abc-123 --sid --close` | | `hoody agent bots delete` | | destructive | Delete a Bot with its log and archive | `agent.bots.delete` | `hoody agent bots delete --id abc-123 -y` | | `hoody agent bots forget` | | destructive | Make a Bot forget its conversation | `agent.bots.forget` | `hoody agent bots forget --id abc-123 -y` | | `hoody agent bots get` | | read | Get a Bot: settings, pending gate, open delegates | `agent.bots.get` | `hoody agent bots get --id abc-123` | | `hoody agent bots guardrails set` | | write | Replace a Bot's guardrails | `agent.bots.setGuardrails` | `hoody agent bots guardrails set --id abc-123 --guardrails ` | | `hoody agent bots list` | | read | List the Bots | `agent.bots.list` | `hoody agent bots list --page 10 --limit 10` | | `hoody agent bots log get` | | read | Read a Bot's log | `agent.bots.getLog` | `hoody agent bots log get --id abc-123 --since 1750000000000 --limit 10` | | `hoody agent bots messages send` | | write | Post a message to a Bot | `agent.bots.sendMessage` | `hoody agent bots messages send --id abc-123 --text Hello` | | `hoody agent bots reset` | | destructive | Give a Bot a new session | `agent.bots.reset` | `hoody agent bots reset --id abc-123 -y` | | `hoody agent bots stream` | | read | Follow a Bot's log (SSE) | `agent.bots.stream` | `hoody agent bots stream --id abc-123 --since 1750000000000` | | `hoody agent bots update` | | write | Change a Bot's settings | `agent.bots.update` | `hoody agent bots update --id abc-123 --name my-resource --role admin` | | `hoody agent changes get` | | read | Change tokens for the Work lists | `agent.changes.get` | `hoody agent changes get` | | `hoody agent changes stream` | | read | Stream the change tokens (SSE) _(not listed in `--help`)_ | `agent.changes.stream` | | | `hoody agent completions create` | | write | Run one tool-free model completion | `agent.completions.create` | `hoody agent completions create --stream --model xiaomi-token-plan-sgp/mimo-v2.5 --system linux --messages role=user,content=Hello` | | `hoody agent completions create` | | write | Stream the completion as it is produced | `agent.completions.create` | `hoody agent completions create --stream --model xiaomi-token-plan-sgp/mimo-v2.5 --system linux --messages role=user,content=Hello` | | `hoody agent containers list` | | read | List containers in a realm (for binding) | `agent.containers.list` | `hoody agent containers list --page 10 --limit 10` | | `hoody agent definitions copy` | | write | Copy a chat agent | `agent.definitions.copy` | `hoody agent definitions copy --name my-resource --new-name ` | | `hoody agent definitions create` | | write | Create a chat-agent definition | `agent.definitions.create` | `hoody agent definitions create --name my-resource --frontmatter-description 'My description' --frontmatter-model openai/gpt-5.4-nano` | | `hoody agent definitions delete` | | write | Delete a custom chat agent | `agent.definitions.delete` | `hoody agent definitions delete --name my-resource` | | `hoody agent definitions list` | | read | List chat-agent definitions | `agent.definitions.list` | `hoody agent definitions list --page 10 --limit 10` | | `hoody agent definitions model set` | | write | Set an agent's model | `agent.definitions.setModel` | `hoody agent definitions model set --name my-resource --model anthropic/claude-opus-4-8` | | `hoody agent definitions rename` | | write | Rename a chat agent | `agent.definitions.rename` | `hoody agent definitions rename --name my-resource --new-name ` | | `hoody agent definitions reset` | | write | Reset an agent to its shipped default | `agent.definitions.reset` | `hoody agent definitions reset --name my-resource` | | `hoody agent definitions source get` | | read | Read a chat agent's source | `agent.definitions.getSource` | `hoody agent definitions source get --name my-resource` | | `hoody agent definitions source set` | | write | Write a chat agent's source | `agent.definitions.setSource` | `hoody agent definitions source set --name my-resource --content Hello` | | `hoody agent definitions tools set` | | write | Set an agent's tool allow-list | `agent.definitions.setTools` | `hoody agent definitions tools set --name my-resource --tools ` | | `hoody agent definitions tools toggle` | | write | Toggle a single tool for an agent | `agent.definitions.toggleTool` | `hoody agent definitions tools toggle --name my-resource --tool ` | | `hoody agent definitions turns limit set` | | write | Set an agent's max-turns | `agent.definitions.setTurnLimit` | `hoody agent definitions turns limit set --name my-resource --turns 10` | | `hoody agent files list` | | read | List the files that shape the agents (paths to open in an editor) | `agent.files.list` | `hoody agent files list --page 10 --limit 10` | | `hoody agent fusions delete` | | write | Delete a fusion composite | `agent.fusions.delete` | `hoody agent fusions delete --slug ` | | `hoody agent fusions list` | | read | List fusion composites | `agent.fusions.list` | `hoody agent fusions list --include-invalid --page 10` | | `hoody agent fusions set` | | write | Create or update a fusion composite | `agent.fusions.set` | `hoody agent fusions set --slug --spec '{}'` | | `hoody agent gates answer` | | write | Answer a parked question gate | `agent.gates.answer` | `hoody agent gates answer --id abc-123 --generation 10 --answers key=hello` | | `hoody agent gates approve` | | write | Approve a pending gate | `agent.gates.approve` | `hoody agent gates approve --id abc-123 --generation 10 --persist-dirs` | | `hoody agent gates deny` | | write | Deny a pending gate | `agent.gates.deny` | `hoody agent gates deny --id abc-123 --generation 10 --persist-dirs` | | `hoody agent gates list` | | read | List the gates waiting for a human | `agent.gates.list` | `hoody agent gates list --include-system --page 10` | | `hoody agent gates suggest` | | write | Propose answers for a parked question (helper model) | `agent.gates.suggest` | `hoody agent gates suggest --id abc-123 --mode suggest --model openai/gpt-5.4-nano` | | `hoody agent github accounts use` | | write | Select the active GitHub account | `agent.github.useAccount` | `hoody agent github accounts use --key github.com/octocat` | | `hoody agent github auth login` | | write | Start a GitHub device-flow login (or add a PAT) | `agent.github.login` | `hoody agent github auth login --host github.com --activate` | | `hoody agent github auth logout` | | write | Log out of GitHub | `agent.github.logout` | `hoody agent github auth logout --key github.com/octocat` | | `hoody agent github auth poll` | | write | Poll a GitHub device-flow login to completion | `agent.github.pollLogin` | `hoody agent github auth poll --host github.com --device-code --interval 10` | | `hoody agent github auth status` | | read | GitHub auth status | `agent.github.getAuth` | `hoody agent github auth status` | | `hoody agent github branches create` | | write | Create a branch at HEAD and switch to it | `agent.github.createBranch` | `hoody agent github branches create --branch ` | | `hoody agent github branches delete` | | destructive | Force-delete a local branch | `agent.github.deleteBranch` | `hoody agent github branches delete --branch -y` | | `hoody agent github branches list` | | read | List GitHub branches | `agent.github.listBranches` | `hoody agent github branches list` | | `hoody agent github branches use` | | write | Switch to an existing branch | `agent.github.useBranch` | `hoody agent github branches use --branch ` | | `hoody agent github commits create` | | write | Stage all and commit | `agent.github.createCommit` | `hoody agent github commits create --push --message Hello --set-upstream` | | `hoody agent github commits create` | | write | Stage all, commit, and push (on a clean tree it pushes without a new commit) | `agent.github.createCommit` | `hoody agent github commits create --push --message Hello --set-upstream` | | `hoody agent github commits list` | | read | Read the 100 most recent commits | `agent.github.listCommits` | `hoody agent github commits list` | | `hoody agent github commits message suggest` | | write | Draft a commit message with a model | `agent.github.suggestCommitMessage` | `hoody agent github commits message suggest --model anthropic/claude-sonnet-4-6` | | `hoody agent github diff` | | read | Read the working-tree or staged diff | `agent.github.diff` | `hoody agent github diff --staged` | | `hoody agent github issues create` | | write | Open an issue on the bound repository | `agent.github.createIssue` | `hoody agent github issues create --title 'My Title' --body 'Details go here'` | | `hoody agent github issues list` | | read | List issues of a repository | `agent.github.listIssues` | `hoody agent github issues list --owner --repo my-repo --state open` | | `hoody agent github prs checkout` | | write | Check out a pull request's head (detached) | `agent.github.checkoutPr` | `hoody agent github prs checkout --number ` | | `hoody agent github prs create` | | write | Open a pull request | `agent.github.createPr` | `hoody agent github prs create --title 'My Title' --body 'Details go here'` | | `hoody agent github prs list` | | read | List pull requests of a repository | `agent.github.listPrs` | `hoody agent github prs list --owner octocat --repo Hello-World --state open` | | `hoody agent github prs merge` | | destructive | Merge a pull request on GitHub | `agent.github.mergePr` | `hoody agent github prs merge --number --method merge -y` | | `hoody agent github repos clone` | | write | Clone a GitHub repository | `agent.github.clone` | `hoody agent github repos clone --repo octocat/Hello-World --shallow` | | `hoody agent github repos credentials set` | | write | Re-write a checkout's GitHub credential | `agent.github.setRepoCredentials` | `hoody agent github repos credentials set` | | `hoody agent github repos list` | | read | List GitHub repos | `agent.github.listRepos` | `hoody agent github repos list` | | `hoody agent github repos resolve` | | read | Resolve the checkout's GitHub owner and repository | `agent.github.resolveRepo` | `hoody agent github repos resolve` | | `hoody agent github stash pop` | | write | Apply and drop the most recent stash entry | `agent.github.popStash` | `hoody agent github stash pop` | | `hoody agent github stash push` | | write | Stash the working tree, untracked files included | `agent.github.pushStash` | `hoody agent github stash push` | | `hoody agent github status` | | read | GitHub working-tree status | `agent.github.getStatus` | `hoody agent github status` | | `hoody agent github sync` | | write | Sync (fetch → pull → push) | `agent.github.sync` | `hoody agent github sync --set-upstream --force` | | `hoody agent github worktrees create` | | write | Add a linked worktree | `agent.github.createWorktree` | `hoody agent github worktrees create --path /home/user/file.txt` | | `hoody agent github worktrees delete` | | destructive | Remove a linked worktree | `agent.github.deleteWorktree` | `hoody agent github worktrees delete --path /home/user/file.txt --force -y` | | `hoody agent github worktrees list` | | read | List linked worktrees | `agent.github.listWorktrees` | `hoody agent github worktrees list` | | `hoody agent headless start` | | write | Start a headless run and return its job id _(not listed in `--help`)_ | `agent.headless.start` | `hoody agent headless start --prompt "summarize the repo" -o json` | | `hoody agent headless stream` | | write | Start a headless run and follow its result as a stream _(not listed in `--help`)_ | `agent.headless.stream` | `hoody agent headless stream --prompt "summarize the repo" -c ` | | `hoody agent health` | | read | Standardized health check | `agent.kit.getHealth` | `hoody agent health` | | `hoody agent hooks delete` | | write | Delete a hook | `agent.hooks.delete` | `hoody agent hooks delete --session-id abc-123 --nonce --scope project --event Notification --command 'ls -la'` | | `hoody agent hooks disable` | | write | Suspend every hook of the session | `agent.hooks.disableAll` | `hoody agent hooks disable --all --session-id abc-123 --nonce --scope project` | | `hoody agent hooks disable` | | write | Disable a hook (a shipped hook by --shipped-id, an ordinary hook by event, matcher and command) | `agent.hooks.disable` | `hoody agent hooks disable --all --session-id abc-123 --nonce --scope project` | | `hoody agent hooks enable` | | write | Resume every hook (clears the suspension of all hooks) | `agent.hooks.enableAll` | `hoody agent hooks enable --all --session-id abc-123 --nonce --scope project` | | `hoody agent hooks enable` | | write | Enable a hook (a shipped hook by --shipped-id, an ordinary hook by event, matcher and command) | `agent.hooks.enable` | `hoody agent hooks enable --all --session-id abc-123 --nonce --scope project` | | `hoody agent hooks intents create` | | write | Begin a hook write (nonce) | `agent.hooks.createWriteIntent` | `hoody agent hooks intents create --session-id abc-123 --op upsert --scope project` | | `hoody agent hooks list` | | read | List hooks | `agent.hooks.list` | `hoody agent hooks list` | | `hoody agent hooks reload` | | write | Reload hooks from disk | `agent.hooks.reload` | `hoody agent hooks reload` | | `hoody agent hooks rules get` | | read | Get the tool-call rules of the settings scopes | `agent.hooks.getRules` | `hoody agent hooks rules get` | | `hoody agent hooks rules set` | | write | Set the tool-call rules of a settings scope | `agent.hooks.setRules` | `hoody agent hooks rules set --session-id abc-123 --nonce --scope project --rules @path.json` | | `hoody agent hooks run` | | write | Run a hook command now (this EXECUTES the command; use `agent hooks test` for the shipped-hook dry run) | `agent.hooks.run` | `hoody agent hooks run --session-id abc-123 --event Notification --command 'ls -la'` | | `hoody agent hooks test` | | write | Dry-run a shipped hook against a sample command (nothing is executed) | `agent.hooks.test` | `hoody agent hooks test --session-id abc-123 --shipped-id abc-123 --event Notification --command 'ls -la'` | | `hoody agent hooks trust` | | write | Acknowledge hook trust | `agent.hooks.trust` | `hoody agent hooks trust --session-id abc-123 --hash --high-risk` | | `hoody agent hooks upsert` | | write | Upsert a hook | `agent.hooks.upsert` | `hoody agent hooks upsert --session-id abc-123 --nonce --scope project --event Notification --command 'ls -la' --name my-resource` | | `hoody agent jev models list` | | read | List the models Jev can use | `agent.jev.listModels` | `hoody agent jev models list` | | `hoody agent jev settings get` | | read | Read the Jev settings and usage | `agent.jev.getSettings` | `hoody agent jev settings get` | | `hoody agent jev settings update` | | write | Change the Jev settings | `agent.jev.updateSettings` | `hoody agent jev settings update --enabled --model typesafe/jev-latest` | | `hoody agent jev test` | | write | Test Jev with one tiny decision | `agent.jev.test` | `hoody agent jev test --model openai/gpt-5.4-nano` | | `hoody agent jobs delete` | | write | Cancel a pending/running job, or delete a finished record | `agent.jobs.delete` | `hoody agent jobs delete --id abc-123` | | `hoody agent jobs get` | | read | Get an async job's status | `agent.jobs.get` | `hoody agent jobs get --id abc-123` | | `hoody agent jobs result get` | | read | Get an async job's result | `agent.jobs.getResult` | `hoody agent jobs result get --id abc-123` | | `hoody agent login` | | write | Sign the container's agent in to Hoody with an API token read from stdin | `agent.signIn` | `hoody agent login -c CONTAINER_ID < token.txt` | | `hoody agent logs export` | | read | Export logs to a file | `agent.logs.export` | `hoody agent logs export --min-level debug --text Hello` | | `hoody agent logs get` | | read | Read a log entry | `agent.logs.get` | `hoody agent logs get --ref ` | | `hoody agent logs list` | | read | Query logs | `agent.logs.list` | `hoody agent logs list --source activity --host example.com` | | `hoody agent logs sources list` | | read | Log sources | `agent.logs.listSources` | `hoody agent logs sources list` | | `hoody agent logs stats` | | read | Log statistics | `agent.logs.getStats` | `hoody agent logs stats` | | `hoody agent logs stream` | | read | Stream the log tail (SSE) _(not listed in `--help`)_ | `agent.logs.stream` | `hoody agent logs stream --source --level --host -o json` | | `hoody agent loops create` | | write | Create a loop | `agent.loops.create` | `hoody agent loops create --id abc-123 --prompt --interval --max-runs 10 --stop-when-kind expression` | | `hoody agent loops delete` | | write | Delete a loop | `agent.loops.delete` | `hoody agent loops delete --id abc-123 --loop-id abc-123` | | `hoody agent loops list` | | read | List loops across all sessions | `agent.loops.list` | `hoody agent loops list --page 10 --limit 10` | | `hoody agent loops runs start` | | write | Run a loop immediately | `agent.loops.startRun` | `hoody agent loops runs start --id abc-123 --loop-id abc-123` | | `hoody agent loops update` | | write | Update a loop | `agent.loops.update` | `hoody agent loops update --id abc-123 --loop-id abc-123 --paused --expires-in 2h` | | `hoody agent mcp delete` | | write | Delete an MCP server (needs a begin-write nonce + expect-hash) | `agent.mcp.deleteServer` | `hoody agent mcp delete --session-id abc-123 --nonce --scope user --name my-resource --expect-hash ` | | `hoody agent mcp disable` | | write | Disable an MCP server | `agent.mcp.disableServer` | `hoody agent mcp disable --session-id abc-123 --nonce --scope user --name my-resource --expect-hash ` | | `hoody agent mcp enable` | | write | Enable an MCP server | `agent.mcp.enableServer` | `hoody agent mcp enable --session-id abc-123 --nonce --scope user --name my-resource --expect-hash ` | | `hoody agent mcp import` | | write | Import MCP servers from a Claude/Cursor/VS Code config (needs a begin-write nonce + expect-hash) | `agent.mcp.importServers` | `hoody agent mcp import --session-id abc-123 --nonce --scope user --servers @path.json --expect-hash ` | | `hoody agent mcp intents create` | | write | Mint the single-use nonce every MCP write requires | `agent.mcp.createWriteIntent` | `hoody agent mcp intents create --session-id abc-123 --op upsert --scope user` | | `hoody agent mcp list` | | read | List configured MCP servers with live connection state | `agent.mcp.listServers` | `hoody agent mcp list --session-id abc-123` | | `hoody agent mcp preview` | | read | Preview what a config document would import (writes nothing) | `agent.mcp.previewImport` | `hoody agent mcp preview --session-id abc-123 --document ` | | `hoody agent mcp reconnect` | | write | Reload MCP config from disk and reconnect live sessions | `agent.mcp.reconnect` | `hoody agent mcp reconnect --session-id abc-123` | | `hoody agent mcp test` | | write | Try a candidate MCP server config without saving it (human-only) | `agent.mcp.testServer` | `hoody agent mcp test --session-id abc-123 --server-name my-resource --server-command 'ls -la'` | | `hoody agent mcp upsert` | | write | Create or update an MCP server (needs a begin-write nonce + expect-hash) | `agent.mcp.upsertServer` | `hoody agent mcp upsert --session-id abc-123 --nonce --scope user --expect-hash --server-name my-resource` | | `hoody agent memory consolidate` | | write | Trigger a memory consolidation pass (human-only) | `agent.memory.consolidate` | `hoody agent memory consolidate --project proj-abc --min-observations 10` | | `hoody agent memory datahost claim` | | write | Assign this computer as the memory data host | `agent.memory.claimDataHost` | `hoody agent memory datahost claim --use-self` | | `hoody agent memory datahost get` | | read | Read the realm's memory data host | `agent.memory.getDataHost` | `hoody agent memory datahost get` | | `hoody agent memory disable` | | write | Disable agent memory | `agent.memory.disable` | `hoody agent memory disable` | | `hoody agent memory enable` | | write | Enable agent memory | `agent.memory.enable` | `hoody agent memory enable` | | `hoody agent memory flush` | | write | Flush the memory store | `agent.memory.flush` | `hoody agent memory flush` | | `hoody agent memory graph get` | | read | Read a project's memory relation graph | `agent.memory.getGraph` | `hoody agent memory graph get --limit 10 --offset 10` | | `hoody agent memory intents create` | | write | Mint the single-use intent a guarded memory write requires | `agent.memory.createWriteIntent` | `hoody agent memory intents create --op wipe_project --project proj-abc` | | `hoody agent memory items create` | | write | Save a memory item | `agent.memory.createItem` | `hoody agent memory items create --project proj-abc --content Hello --type workflow --ttl-days 10` | | `hoody agent memory items delete` | | write | Delete a memory item | `agent.memory.deleteItem` | `hoody agent memory items delete --name my-resource` | | `hoody agent memory items get` | | read | Read a memory item | `agent.memory.getItem` | `hoody agent memory items get --id abc-123 --kind create` | | `hoody agent memory items list` | | read | List memory items | `agent.memory.listItems` | `hoody agent memory items list --kind create --page 10` | | `hoody agent memory items update` | | write | Edit a memory item | `agent.memory.updateItem` | `hoody agent memory items update --id abc-123 --kind memory --content Hello` | | `hoody agent memory projects delete` | | destructive | Erase a memory project and everything it owns | `agent.memory.deleteProject` | `hoody agent memory projects delete --project proj-abc --nonce -y` | | `hoody agent memory projects list` | | read | List memory projects | `agent.memory.listProjects` | `hoody agent memory projects list --page 10 --limit 10` | | `hoody agent memory search` | | write | Search memory (hybrid recall) | `agent.memory.search` | `hoody agent memory search --query 'my search' --limit 10` | | `hoody agent memory status` | | read | Read memory subsystem status | `agent.memory.getStatus` | `hoody agent memory status` | | `hoody agent metrics` | | read | Prometheus metrics | `agent.kit.getMetrics` | `hoody agent metrics` | | `hoody agent models get` | | read | Get a model by spec | `agent.models.get` | `hoody agent models get --spec ` | | `hoody agent models list` | | read | List models | `agent.models.list` | `hoody agent models list --page 10 --limit 10` | | `hoody agent open` | | action | Open the Hoody Agent kit in your browser | | `hoody agent open` | | `hoody agent providers accounts add` | | write | Add an OAuth account to a provider's pool | `agent.providers.addAccount` | `hoody agent providers accounts add --id abc-123` | | `hoody agent providers accounts list` | | read | List a provider's OAuth account pool | `agent.providers.listAccounts` | `hoody agent providers accounts list --id abc-123 --page 10 --limit 10` | | `hoody agent providers accounts remove` | | write | Remove a pooled OAuth account | `agent.providers.removeAccount` | `hoody agent providers accounts remove --id abc-123 --key ` | | `hoody agent providers accounts use` | | write | Make a pooled OAuth account active | `agent.providers.useAccount` | `hoody agent providers accounts use --id abc-123 --key ` | | `hoody agent providers auth default set` | | write | Set a provider's default credential method | `agent.providers.setDefaultAuth` | `hoody agent providers auth default set --id abc-123 --default ` | | `hoody agent providers auth status` | | read | Get a provider's auth status | `agent.providers.getAuth` | `hoody agent providers auth status --id abc-123` | | `hoody agent providers create` | | write | Add a custom AI provider | `agent.providers.create` | `hoody agent providers create --id abc-123 --wire-format chat_completions --endpoint https://api.acme.example/v1 --auth-scheme bearer --models model=llama-3.3-70b` | | `hoody agent providers delete` | | destructive | Remove a custom AI provider and its stored key | `agent.providers.delete` | `hoody agent providers delete --id abc-123 -y` | | `hoody agent providers get` | | read | Get a provider | `agent.providers.get` | `hoody agent providers get --id abc-123` | | `hoody agent providers keys delete` | | write | Delete a provider API key | `agent.providers.deleteApiKey` | `hoody agent providers keys delete --id abc-123` | | `hoody agent providers keys set` | | write | Store a provider API key | `agent.providers.setApiKey` | `hoody agent providers keys set --id abc-123 --api-key ` | | `hoody agent providers list` | | read | List LLM providers | `agent.providers.list` | `hoody agent providers list --page 10 --limit 10` | | `hoody agent providers oauth logout` | | write | Remove a provider's OAuth login | `agent.providers.logoutOauth` | `hoody agent providers oauth logout --id abc-123` | | `hoody agent providers oauth poll` | | read | Poll a provider OAuth login | `agent.providers.pollOauth` | `hoody agent providers oauth poll --id abc-123 --job ` | | `hoody agent providers oauth start` | | write | Start a provider OAuth login | `agent.providers.startOauth` | `hoody agent providers oauth start --id abc-123 --add-account` | | `hoody agent providers oauth submit` | | write | Submit a provider OAuth authorization code | `agent.providers.submitOauthCode` | `hoody agent providers oauth submit --id abc-123 --job --code ` | | `hoody agent providers update` | | write | Change a custom AI provider | `agent.providers.update` | `hoody agent providers update --id abc-123 --wire-format chat_completions --endpoint https://api.acme.example/v1` | | `hoody agent realms list` | | read | List realms (for binding) | `agent.realms.list` | `hoody agent realms list --page 10 --limit 10` | | `hoody agent realms use` | | write | Switch the agent's active realm | `agent.realms.use` | `hoody agent realms use --active-realm-id abc-123` | | `hoody agent sessions aftercompaction set` | | write | Set the message a session re-adds after every compaction | `agent.sessions.setAfterCompaction` | `hoody agent sessions aftercompaction set --id abc-123 --text Hello` | | `hoody agent sessions agent set` | | write | Switch the chat agent | `agent.sessions.setAgent` | `hoody agent sessions agent set --id abc-123 --agent my-agent` | | `hoody agent sessions approval get` | | read | Read a session's approval policy | `agent.sessions.getApproval` | `hoody agent sessions approval get --id abc-123` | | `hoody agent sessions approval rules delete` | | write | Remove one session permission rule | `agent.sessions.deleteApprovalRule` | `hoody agent sessions approval rules delete --id abc-123 --tool ` | | `hoody agent sessions approval rules set` | | write | Set one session permission rule | `agent.sessions.setApprovalRule` | `hoody agent sessions approval rules set --id abc-123 --tool --decision allow` | | `hoody agent sessions approval update` | | write | Set a session's approval mode and lock | `agent.sessions.updateApproval` | `hoody agent sessions approval update --id abc-123 --mode default --locked` | | `hoody agent sessions approver lease claim` | | write | Acquire the right to answer this session's gates | `agent.sessions.claimApproverLease` | `hoody agent sessions approver lease claim --id abc-123 --holder --ttl-ms 100 --replace` | | `hoody agent sessions approver lease release` | | write | Release the approver lease | `agent.sessions.releaseApproverLease` | `hoody agent sessions approver lease release --id abc-123` | | `hoody agent sessions approver lease renew` | | write | Renew the approver lease | `agent.sessions.renewApproverLease` | `hoody agent sessions approver lease renew --id abc-123 --ttl-ms 100` | | `hoody agent sessions attachments claim` | | write | Hold a live session and its parked gate alive | `agent.sessions.claimAttachment` | `hoody agent sessions attachments claim --id abc-123 --ttl-ms 100` | | `hoody agent sessions attachments release` | | write | Release an attachment lease | `agent.sessions.releaseAttachment` | `hoody agent sessions attachments release --id abc-123 --lease-id abc-123` | | `hoody agent sessions attachments renew` | | write | Renew an attachment lease | `agent.sessions.renewAttachment` | `hoody agent sessions attachments renew --id abc-123 --lease-id abc-123 --ttl-ms 100` | | `hoody agent sessions autoreply set` | | write | Arm/disarm the auto-reply loop | `agent.sessions.setAutoReply` | `hoody agent sessions autoreply set --id abc-123 --armed --rounds 10` | | `hoody agent sessions autoreply writes set` | | write | Flip the auto-reply write opt-in | `agent.sessions.setAutoReplyWrites` | `hoody agent sessions autoreply writes set --id abc-123 --allow-writes` | | `hoody agent sessions close` | | write | Close the session (teardown) | `agent.sessions.close` | `hoody agent sessions close --id abc-123` | | `hoody agent sessions commands get` | | read | Get a command's receipt | `agent.sessions.commands.get` | `hoody agent sessions commands get --id abc-123 --command-id abc-123` | | `hoody agent sessions commands send` | | write | Send a message, an interrupt or a stop to a session | `agent.sessions.commands.send` | `hoody agent sessions commands send --id abc-123 --idempotency-key --kind message --text Hello --close` | | `hoody agent sessions create` | | write | Create, fork, or attach a session | `agent.sessions.create` | `hoody agent sessions create --model openai/gpt-5.4-nano --tool-mode standard` | | `hoody agent sessions delete` | | write | Delete a session and its stored record (`agent sessions close` only tears the live session down) | `agent.sessions.delete` | `hoody agent sessions delete --id abc-123` | | `hoody agent sessions directories list` | | read | List distinct session working directories | `agent.sessions.listDirectories` | `hoody agent sessions directories list` | | `hoody agent sessions effort set` | | write | Set reasoning effort | `agent.sessions.setEffort` | `hoody agent sessions effort set --id abc-123 --effort low` | | `hoody agent sessions env set` | | write | Toggle Hoody shell-env injection | `agent.sessions.setHoodyEnv` | `hoody agent sessions env set --id abc-123 --enabled` | | `hoody agent sessions get` | | read | Get a session summary | `agent.sessions.get` | `hoody agent sessions get --id abc-123` | | `hoody agent sessions list` | | read | List sessions | `agent.sessions.list` | `hoody agent sessions list --include-system --page 10` | | `hoody agent sessions loops list` | | read | List a session's loops | `agent.sessions.listLoops` | `hoody agent sessions loops list --id abc-123 --page 10 --limit 10` | | `hoody agent sessions mcp tools list` | | read | List a session's MCP tools | `agent.sessions.listMcpTools` | `hoody agent sessions mcp tools list --id abc-123 --page 10 --limit 10` | | `hoody agent sessions model set` | | write | Switch the session model | `agent.sessions.setModel` | `hoody agent sessions model set --id abc-123 --model anthropic/claude-opus-4-8` | | `hoody agent sessions rename` | | write | Rename a session | `agent.sessions.rename` | `hoody agent sessions rename --id abc-123 --name my-resource` | | `hoody agent sessions replay` | | read | Replay a live session's buffered events | `agent.sessions.replay` | `hoody agent sessions replay --id abc-123` | | `hoody agent sessions rules list` | | read | Show which tool-call rules apply to a session's calls | `agent.sessions.listApplicableRules` | `hoody agent sessions rules list --id abc-123 --agent my-agent` | | `hoody agent sessions snapshot get` | | read | Read a session's recoverable state | `agent.sessions.getSnapshot` | `hoody agent sessions snapshot get --id abc-123` | | `hoody agent sessions stream` | | read | Attach to a session's event stream (WebSocket / SSE) _(not listed in `--help`)_ | `agent.sessions.connect` | `hoody agent sessions stream --id -o json` | | `hoody agent sessions tasks cancel` | | write | Cancel all background tasks | `agent.sessions.cancelTasks` | `hoody agent sessions tasks cancel --id abc-123` | | `hoody agent sessions tools list` | | read | List a session's effective tool set | `agent.sessions.listTools` | `hoody agent sessions tools list --id abc-123 --page 10 --limit 10` | | `hoody agent sessions tools run` | | write | Run a tool inside a live session (gated) | `agent.sessions.runTool` | `hoody agent sessions tools run --id abc-123 --name my-resource --confirm --allow-mutations` | | `hoody agent sessions transcript get` | | read | Read a session's transcript without attaching | `agent.sessions.getTranscript` | `hoody agent sessions transcript get --id abc-123 --after-turn 10` | | `hoody agent sessions trim` | | write | Trim session history to a turn index | `agent.sessions.trim` | `hoody agent sessions trim --id abc-123 --turn-idx 10` | | `hoody agent sessions turns cancel` | | write | Cancel the active turn (Esc) | `agent.sessions.turns.cancel` | `hoody agent sessions turns cancel --id abc-123` | | `hoody agent sessions turns create` | | write | Dispatch a turn (retry-safe with an idempotency key) | `agent.sessions.turns.create` | `hoody agent sessions turns create --id abc-123 --text Hello --tool-mode standard --dir-scope home` | | `hoody agent sessions turns get` | | read | Get a turn's durable receipt | `agent.sessions.turns.get` | `hoody agent sessions turns get --id abc-123 --turn-id abc-123` | | `hoody agent sessions turns list` | | read | List a session's durable turn receipts | `agent.sessions.turns.list` | `hoody agent sessions turns list --id abc-123 --limit 10` | | `hoody agent sessions turns run` | | write | Dispatch a turn and block to completion | `agent.sessions.turns.run` | `hoody agent sessions turns run --id abc-123 --text Hello --tool-mode standard --dir-scope home` | | `hoody agent sessions turns start` | | write | Dispatch a turn (fire-and-observe) _(not listed in `--help`)_ | `agent.sessions.startTurn` | `hoody agent sessions turns start --id --text 'Summarize the open todos' -o json` | | `hoody agent sessions turns start` | | write | Dispatch the turn and follow the session stream from the dispatch cursor (it does not end with the turn) _(not listed in `--help`)_ | `agent.sessions.startTurnAndStream` | `hoody agent sessions turns start --id --text 'Summarize the open todos' -o json` | | `hoody agent sessions usage get` | | read | Read a session's per-call LLM usage and totals | `agent.sessions.getUsage` | `hoody agent sessions usage get --id abc-123 --after-id 10 --limit 10` | | `hoody agent sessions verbosity set` | | write | Set response verbosity | `agent.sessions.setVerbosity` | `hoody agent sessions verbosity set --id abc-123 --level normal` | | `hoody agent sessions workflows start` | | write | Run a workflow onto an existing session | `agent.sessions.startWorkflow` | `hoody agent sessions workflows start --id abc-123 --name my-resource` | | `hoody agent sessions yolo set` | | write | Arm or disarm YOLO auto-approve | `agent.sessions.setYolo` | `hoody agent sessions yolo set --id abc-123 --enabled` | | `hoody agent settings get` | | read | Get settings | `agent.settings.get` | `hoody agent settings get` | | `hoody agent settings update` | | write | Patch settings | `agent.settings.update` | `hoody agent settings update --patch '{}'` | | `hoody agent skills create` | | write | Create a skill | `agent.skills.create` | `hoody agent skills create --name my-resource` | | `hoody agent skills delete` | | write | Delete a skill | `agent.skills.delete` | `hoody agent skills delete --root-dir --rel-dir ` | | `hoody agent skills disable` | | write | Disable a skill | `agent.skills.disable` | `hoody agent skills disable --name my-resource` | | `hoody agent skills enable` | | write | Enable a skill | `agent.skills.enable` | `hoody agent skills enable --name my-resource` | | `hoody agent skills hub cache clear` | | write | Clear the skill hub cache | `agent.skills.hub.clearCache` | `hoody agent skills hub cache clear` | | `hoody agent skills hub cache stats` | | read | Skill hub cache stats | `agent.skills.hub.getCacheStats` | `hoody agent skills hub cache stats` | | `hoody agent skills hub install` | | write | Install a hub skill | `agent.skills.hub.install` | `hoody agent skills hub install --package-digest --overwrite` | | `hoody agent skills hub preview` | | read | Preview a hub skill | `agent.skills.hub.preview` | `hoody agent skills hub preview --provider --source --skill-id abc-123` | | `hoody agent skills hub search` | | read | Search the skill hub | `agent.skills.hub.search` | `hoody agent skills hub search --query 'my search'` | | `hoody agent skills import` | | write | Apply a skill import | `agent.skills.import` | `hoody agent skills import --source claude --items 'source=' --overwrite` | | `hoody agent skills list` | | read | List skills | `agent.skills.list` | `hoody agent skills list --page 10 --limit 10` | | `hoody agent skills rename` | | write | Rename a skill | `agent.skills.rename` | `hoody agent skills rename --root-dir --rel-dir --new-name ` | | `hoody agent skills scan` | | read | Scan for importable skills | `agent.skills.scan` | `hoody agent skills scan --source claude` | | `hoody agent skills source get` | | read | Read a skill's source | `agent.skills.getSource` | `hoody agent skills source get` | | `hoody agent skills source set` | | write | Write a skill's source | `agent.skills.setSource` | `hoody agent skills source set --root-dir --rel-dir --content Hello --base-gen 10` | | `hoody agent skills trust` | | write | Set a skill's trust state | `agent.skills.trust` | `hoody agent skills trust --root-dir --rel-dir --trusted` | | `hoody agent stats` | | read | Cross-session statistics | `agent.stats.get` | `hoody agent stats --scope cwd` | | `hoody agent tasks cancel` | | write | Cancel a background task | `agent.tasks.cancel` | `hoody agent tasks cancel --id abc-123 --tid ` | | `hoody agent tasks list` | | read | List a session's background tasks | `agent.tasks.list` | `hoody agent tasks list --id abc-123` | | `hoody agent tasks transcript get` | | read | Read a background task's transcript | `agent.tasks.getTranscript` | `hoody agent tasks transcript get --id abc-123 --tid --after-seq 10` | | `hoody agent todos archive` | | write | Archive a todo | `agent.todos.archive` | `hoody agent todos archive --id abc-123 --revision 10` | | `hoody agent todos archived purge` | | write | Purge archived todos | `agent.todos.purgeArchived` | `hoody agent todos archived purge` | | `hoody agent todos cancel` | | write | Cancel a todo's run | `agent.todos.cancel` | `hoody agent todos cancel --id abc-123` | | `hoody agent todos claim` | | write | Claim a todo | `agent.todos.claim` | `hoody agent todos claim --id abc-123 --session-id abc-123 --revision 10` | | `hoody agent todos comments create` | | write | Comment on a todo | `agent.todos.createComment` | `hoody agent todos comments create --id abc-123 --text Hello` | | `hoody agent todos create` | | write | File a todo | `agent.todos.create` | `hoody agent todos create --title 'My Title' --body 'Details go here' --priority 2` | | `hoody agent todos get` | | read | Read a todo | `agent.todos.get` | `hoody agent todos get --id abc-123` | | `hoody agent todos list` | | read | List todos | `agent.todos.list` | `hoody agent todos list --states inbox --tags tag1,tag2` | | `hoody agent todos messages send` | | write | Comment + run an orchestrator turn | `agent.todos.sendMessage` | `hoody agent todos messages send --id abc-123 --text Hello` | | `hoody agent todos proposals approve` | | write | Approve a todo proposal | `agent.todos.approveProposal` | `hoody agent todos proposals approve --id abc-123 --pid 1234` | | `hoody agent todos proposals deny` | | write | Deny a todo proposal | `agent.todos.denyProposal` | `hoody agent todos proposals deny --id abc-123 --pid 1234` | | `hoody agent todos release` | | write | Release a todo | `agent.todos.release` | `hoody agent todos release --id abc-123 --session-id abc-123 --outcome done` | | `hoody agent todos revision get` | | read | Get the todos store revision | `agent.todos.getRevision` | `hoody agent todos revision get` | | `hoody agent todos snooze` | | write | Snooze a todo | `agent.todos.snooze` | `hoody agent todos snooze --id abc-123 --wake-at 2026-07-04T09:00:00Z --revision 10` | | `hoody agent todos start` | | write | Run a todo's orchestrator | `agent.todos.start` | `hoody agent todos start --id abc-123` | | `hoody agent todos triage` | | write | Run an LLM triage pass | `agent.todos.triage` | `hoody agent todos triage` | | `hoody agent todos update` | | write | Update a todo (CAS) | `agent.todos.update` | `hoody agent todos update --id abc-123 --revision 10 --title 'My Title' --body 'Details go here'` | | `hoody agent tools get` | | read | Get one tool schema | `agent.tools.get` | `hoody agent tools get --name my-resource` | | `hoody agent tools list` | | read | List the tool catalogue | `agent.tools.list` | `hoody agent tools list --page 10 --limit 10` | | `hoody agent tools readonly list` | | read | List the read-only tool subset | `agent.tools.listReadOnly` | `hoody agent tools readonly list --page 10 --limit 10` | | `hoody agent tools run` | | write | Run a tool (sessionless, gated) | `agent.tools.run` | `hoody agent tools run --name my-resource --confirm --allow-mutations` | | `hoody agent tools start` | | write | Run a tool asynchronously (sessionless, gated) | `agent.tools.start` | `hoody agent tools start --name my-resource --confirm --allow-mutations` | | `hoody agent tools stream` | | write | Run the tool with a streamed result _(not listed in `--help`)_ | `agent.tools.run` | `hoody agent tools stream --name list_todos -c ` | | `hoody agent usage accounts list` | | read | Usage rollup by account | `agent.usage.listByAccount` | `hoody agent usage accounts list --since 1750000000` | | `hoody agent usage models list` | | read | Usage rollup by model | `agent.usage.listByModel` | `hoody agent usage models list --since 1750000000` | | `hoody agent version` | | read | Agent API version and capabilities | `agent.kit.getVersion` | `hoody agent version` | | `hoody agent whoami` | | read | Hoody platform identity and realm scope | `agent.whoami` | `hoody agent whoami` | | `hoody agent work stop` | | write | Stop everything running in the realm (loops are paused) | `agent.stopAllWork` | `hoody agent work stop` | | `hoody agent workflows delete` | | write | Delete a workflow definition | `agent.workflows.delete` | `hoody agent workflows delete --name my-resource` | | `hoody agent workflows get` | | read | Read one workflow definition | `agent.workflows.get` | `hoody agent workflows get --name my-resource --include-revision` | | `hoody agent workflows hidden set` | | write | Hide or un-hide a workflow | `agent.workflows.setHidden` | `hoody agent workflows hidden set --name my-resource --hidden` | | `hoody agent workflows list` | | read | List workflow definitions | `agent.workflows.list` | `hoody agent workflows list --page 10 --limit 10` | | `hoody agent workflows messages send` | | write | Send a message to a running workflow | `agent.workflows.sendMessage` | `hoody agent workflows messages send --id abc-123 --text Hello` | | `hoody agent workflows runs cancel` | | write | Cancel a workflow run | `agent.workflows.cancelRun` | `hoody agent workflows runs cancel --run-id abc-123` | | `hoody agent workflows runs get` | | read | Get one workflow run by id | `agent.workflows.getRun` | `hoody agent workflows runs get --run-id abc-123` | | `hoody agent workflows runs list` | | read | Snapshot in-flight and recent workflow runs | `agent.workflows.listRuns` | `hoody agent workflows runs list --page 10 --limit 10` | | `hoody agent workflows runs resume` | | write | Resume a paused workflow run | `agent.workflows.resumeRun` | `hoody agent workflows runs resume --run-id abc-123 --session-id abc-123` | | `hoody agent workflows set` | | write | Create or replace a workflow definition | `agent.workflows.set` | `hoody agent workflows set --name my-resource --definition '{}'` | | `hoody agent workflows start` | | write | Run a workflow in a new session | `agent.workflows.start` | `hoody agent workflows start --name my-resource --model openai/gpt-5.4-nano --agent my-agent` | | `hoody agent workflows summary set` | | write | Set or clear a workflow's summary | `agent.workflows.setSummary` | `hoody agent workflows summary set --name my-resource --summary ` |