The Agent Chat Agents API manages chat-agent definitions: list, create, copy, rename, reset, edit source, configure model/tools/turns, and delete. Each agent is a markdown file with frontmatter (model, tools, turns) and a system prompt. Results are realm-scoped to the gateway’s own realm; a client-supplied X-Hoody-Realm is ignored on these routes.
All endpoints live under the agent gateway at https://{projectId}-{containerId}-agent-1.{server}.containers.hoody.icu.
List chat-agent definitions resolved for the requesting cwd/config_dir (built-in + custom). Supports pagination via page and limit.
Name In Type Required Description pagequery integer No 1-based page number for pagination. limitquery integer No Maximum items per page (0 = no pagination). X-Hoody-Cwdheader string No Per-request working-directory scope. X-Hoody-Config-Dirheader string No Per-request --config-dir override. X-Hoody-Containerheader string No Per-request bound remote container (omitted = local). X-Hoody-Realmheader string No Per-request realm selector ("global" or a 24-hex id). Ignored on this realm-scoped route. realmquery string No In-query alias of X-Hoody-Realm.
curl -X GET " https://{projectId}-{containerId}-agent-1.{server}.containers.hoody.icu/api/v1/agent/agents?page=1&limit=20 " \
-H " X-Hoody-Cwd: /home/user/project " \
-H " X-Hoody-Config-Dir: /home/user/.hoody " \
-H " X-Hoody-Realm: global "
await client . agent . agents . listAgentsIterator ({ page : 1 , limit : 20 });
" description " : " Reviews pull requests against the project style guide. " ,
" model " : " anthropic/claude-opus-4-8 " ,
" tools " : [ " Read " , " Grep " , " Bash " ],
" name " : " general-purpose " ,
" description " : " Default Hoody assistant agent. " ,
" model " : " anthropic/claude-sonnet-4-6 " ,
" message " : " invalid request "
Error Code Title Description Resolution bad_requestBad request The request was malformed or carried invalid parameters. Correct the request body or query parameters. realm_scope_unsupportedRealm scope unsupported A per-request realm header was supplied to an active-only / global-no-realm RPC. Omit the realm header on this route, or open a session to scope by realm.
" message " : " request must arrive through the Hoody proxy "
Error Code Title Description Resolution forbiddenForbidden (not via the Hoody proxy) The request did not reach the service through the public endpoint. Reach the agent through hoody-proxy (e.g. hoody agent … → platform → proxy), not by connecting to the container directly.
" message " : " request rate limit exceeded "
Error Code Title Description Resolution rate_limitedToo many requests The per-client request rate limit was exceeded. Honor the Retry-After header and retry; reduce the request rate.
" code " : " internal_error " ,
" message " : " internal server error "
Error Code Title Description Resolution internal_errorInternal error An unexpected error occurred while handling the request. Retry; if persistent, inspect the daemon logs.
Read the raw markdown source (frontmatter + system prompt) of a chat-agent definition.
Name In Type Required Description namepath string Yes Agent name. X-Hoody-Cwdheader string No Per-request working-directory scope. X-Hoody-Config-Dirheader string No Per-request --config-dir override. X-Hoody-Containerheader string No Per-request bound remote container. X-Hoody-Realmheader string No Per-request realm selector. Ignored on this scope. realmquery string No In-query alias of X-Hoody-Realm.
curl -X GET " https://{projectId}-{containerId}-agent-1.{server}.containers.hoody.icu/api/v1/agent/agents/code-reviewer/source " \
-H " X-Hoody-Cwd: /home/user/project "
await client . agent . agents . getAgentSource ( " code-reviewer " );
" content " : " --- \n model: anthropic/claude-sonnet-4-6 \n tools: [Read, Grep, Bash] \n turns: 25 \n description: Reviews pull requests against the project style guide. \n --- \n\n You are a meticulous code reviewer. Score each PR against the style guide, list issues in priority order, and never approve work you have not actually read. " ,
" message " : " invalid request "
Error Code Title Description Resolution bad_requestBad request The request was malformed or carried invalid parameters. Correct the request body or query parameters. realm_scope_unsupportedRealm scope unsupported A per-request realm header was supplied to an active-only / global-no-realm RPC. Omit the realm header on this route, or open a session to scope by realm.
" message " : " request must arrive through the Hoody proxy "
Error Code Title Description Resolution forbiddenForbidden (not via the Hoody proxy) The request did not reach the service through the public endpoint. Reach the agent through hoody-proxy.
" message " : " resource not found "
Error Code Title Description Resolution not_foundNot found The requested resource does not exist. Verify the path and identifier.
" message " : " request rate limit exceeded "
Error Code Title Description Resolution rate_limitedToo many requests The per-client request rate limit was exceeded. Honor the Retry-After header and retry.
" code " : " internal_error " ,
" message " : " internal server error "
Error Code Title Description Resolution internal_errorInternal error An unexpected error occurred while handling the request. Retry; if persistent, inspect the daemon logs.
" code " : " service_unavailable " ,
" message " : " service unavailable "
Error Code Title Description Resolution service_unavailableService unavailable The daemon could not service the request (busy or concurrency cap hit). Honor Retry-After and retry.
Create (or overwrite) a custom chat-agent definition from a name, frontmatter, and system prompt.
Name In Type Required Description X-Hoody-Cwdheader string No Per-request working-directory scope. X-Hoody-Config-Dirheader string No Per-request --config-dir override. X-Hoody-Containerheader string No Per-request bound remote container. X-Hoody-Realmheader string No Per-request realm selector. Ignored on this scope. realmquery string No In-query alias of X-Hoody-Realm.
Name Type Required Description namestring Yes Agent name (the definition file stem). frontmatterobject No Optional frontmatter keys (model, tools, turns, description). system_promptstring No The agent’s system prompt body.
curl -X POST " https://{projectId}-{containerId}-agent-1.{server}.containers.hoody.icu/api/v1/agent/agents " \
-H " Content-Type: application/json " \
-H " X-Hoody-Cwd: /home/user/project " \
"model": "anthropic/claude-sonnet-4-6",
"tools": ["Read", "Write"],
"description": "Drafts and edits project documentation."
"system_prompt": "You are a technical writer. Use concise, action-oriented language and follow the project docs style guide."
await client . agent . agents . createAgent ({
model : " anthropic/claude-sonnet-4-6 " ,
tools : [ " Read " , " Write " ],
description : " Drafts and edits project documentation. "
system_prompt : " You are a technical writer. Use concise, action-oriented language and follow the project docs style guide. "
" path " : " /home/user/.hoody/agents/docs-writer.md " ,
" message " : " name is required "
Error Code Title Description Resolution bad_requestBad request The request was malformed or carried invalid parameters. Correct the request body or query parameters. realm_scope_unsupportedRealm scope unsupported A per-request realm header was supplied to an active-only / global-no-realm RPC. Omit the realm header on this route, or open a session to scope by realm.
" message " : " request must arrive through the Hoody proxy "
Error Code Title Description Resolution forbiddenForbidden (not via the Hoody proxy) The request did not reach the service through the public endpoint. Reach the agent through hoody-proxy.
" message " : " resource not found "
Error Code Title Description Resolution not_foundNot found The requested resource does not exist. Verify the path and identifier.
" code " : " payload_too_large " ,
" message " : " request body exceeds the configured size limit "
Error Code Title Description Resolution payload_too_largePayload too large The request body exceeds the configured size cap (MaxBodyBytes, default 8 MiB). Reduce the request body below the limit; split a large payload into smaller requests.
" message " : " request rate limit exceeded "
Error Code Title Description Resolution rate_limitedToo many requests The per-client request rate limit was exceeded. Honor the Retry-After header and retry.
" code " : " internal_error " ,
" message " : " internal server error "
Error Code Title Description Resolution internal_errorInternal error An unexpected error occurred while handling the request. Retry; if persistent, inspect the daemon logs.
" code " : " service_unavailable " ,
" message " : " service unavailable "
Error Code Title Description Resolution service_unavailableService unavailable The daemon could not service the request (busy or concurrency cap hit). Honor Retry-After and retry.
Overwrite the raw markdown source of a chat-agent definition. Pass base_gen (returned by getAgentSource) for conflict detection.
Name In Type Required Description namepath string Yes Agent name. X-Hoody-Cwdheader string No Per-request working-directory scope. X-Hoody-Config-Dirheader string No Per-request --config-dir override. X-Hoody-Containerheader string No Per-request bound remote container. X-Hoody-Realmheader string No Per-request realm selector. Ignored on this scope. realmquery string No In-query alias of X-Hoody-Realm.
Name Type Required Description contentstring Yes The full markdown source (frontmatter + system prompt). base_geninteger No The gen returned by getAgentSource, for conflict detection.
curl -X PUT " https://{projectId}-{containerId}-agent-1.{server}.containers.hoody.icu/api/v1/agent/agents/code-reviewer/source " \
-H " Content-Type: application/json " \
-H " X-Hoody-Cwd: /home/user/project " \
"content": "---\nmodel: anthropic/claude-opus-4-8\ntools: [Read, Grep, Bash]\nturns: 30\n---\n\nYou are a meticulous code reviewer.",
await client . agent . agents . putAgentSource ( " code-reviewer " , {
content : " --- \n model: anthropic/claude-opus-4-8 \n tools: [Read, Grep, Bash] \n turns: 30 \n --- \n\n You are a meticulous code reviewer. " ,
" message " : " content is required "
Error Code Title Description Resolution bad_requestBad request The request was malformed or carried invalid parameters. Correct the request body or query parameters. realm_scope_unsupportedRealm scope unsupported A per-request realm header was supplied to an active-only / global-no-realm RPC. Omit the realm header on this route, or open a session to scope by realm.
" message " : " request must arrive through the Hoody proxy "
Error Code Title Description Resolution forbiddenForbidden (not via the Hoody proxy) The request did not reach the service through the public endpoint. Reach the agent through hoody-proxy.
" message " : " resource not found "
Error Code Title Description Resolution not_foundNot found The requested resource does not exist. Verify the path and identifier.
" code " : " payload_too_large " ,
" message " : " request body exceeds the configured size limit "
Error Code Title Description Resolution payload_too_largePayload too large The request body exceeds the configured size cap (default 8 MiB). Reduce the request body below the limit; split a large payload into smaller requests.
" message " : " request rate limit exceeded "
Error Code Title Description Resolution rate_limitedToo many requests The per-client request rate limit was exceeded. Honor the Retry-After header and retry.
" code " : " internal_error " ,
" message " : " internal server error "
Error Code Title Description Resolution internal_errorInternal error An unexpected error occurred while handling the request. Retry; if persistent, inspect the daemon logs.
" code " : " service_unavailable " ,
" message " : " service unavailable "
Error Code Title Description Resolution service_unavailableService unavailable The daemon could not service the request (busy or concurrency cap hit). Honor Retry-After and retry.
Copy a chat-agent definition to a new name. The source {name} comes from the path; the destination is given in the body.
Name In Type Required Description namepath string Yes Source agent name. X-Hoody-Cwdheader string No Per-request working-directory scope. X-Hoody-Config-Dirheader string No Per-request --config-dir override. X-Hoody-Containerheader string No Per-request bound remote container. X-Hoody-Realmheader string No Per-request realm selector. Ignored on this scope. realmquery string No In-query alias of X-Hoody-Realm.
Name Type Required Description new_namestring Yes Name for the copied agent.
curl -X POST " https://{projectId}-{containerId}-agent-1.{server}.containers.hoody.icu/api/v1/agent/agents/code-reviewer/copy " \
-H " Content-Type: application/json " \
-H " X-Hoody-Cwd: /home/user/project " \
-d ' { "new_name": "code-reviewer-strict" } '
await client . agent . agents . copyAgent ( " code-reviewer " , { new_name : " code-reviewer-strict " });
" source " : " code-reviewer " ,
" destination " : " code-reviewer-strict " ,
" message " : " new_name is required "
Error Code Title Description Resolution bad_requestBad request The request was malformed or carried invalid parameters. Correct the request body or query parameters. realm_scope_unsupportedRealm scope unsupported A per-request realm header was supplied to an active-only / global-no-realm RPC. Omit the realm header on this route, or open a session to scope by realm.
" message " : " request must arrive through the Hoody proxy "
Error Code Title Description Resolution forbiddenForbidden (not via the Hoody proxy) The request did not reach the service through the public endpoint. Reach the agent through hoody-proxy.
" message " : " source agent not found "
Error Code Title Description Resolution not_foundNot found The requested resource does not exist. Verify the path and identifier.
" code " : " payload_too_large " ,
" message " : " request body exceeds the configured size limit "
Error Code Title Description Resolution payload_too_largePayload too large The request body exceeds the configured size cap (default 8 MiB). Reduce the request body below the limit.
" message " : " request rate limit exceeded "
Error Code Title Description Resolution rate_limitedToo many requests The per-client request rate limit was exceeded. Honor the Retry-After header and retry.
" code " : " internal_error " ,
" message " : " internal server error "
Error Code Title Description Resolution internal_errorInternal error An unexpected error occurred while handling the request. Retry; if persistent, inspect the daemon logs.
" code " : " service_unavailable " ,
" message " : " service unavailable "
Error Code Title Description Resolution service_unavailableService unavailable The daemon could not service the request (busy or concurrency cap hit). Honor Retry-After and retry.
Rename a custom chat-agent definition. The current {name} comes from the path; the new name is given in the body.
Name In Type Required Description namepath string Yes Current agent name. X-Hoody-Cwdheader string No Per-request working-directory scope. X-Hoody-Config-Dirheader string No Per-request --config-dir override. X-Hoody-Containerheader string No Per-request bound remote container. X-Hoody-Realmheader string No Per-request realm selector. Ignored on this scope. realmquery string No In-query alias of X-Hoody-Realm.
Name Type Required Description new_namestring Yes New agent name.
curl -X POST " https://{projectId}-{containerId}-agent-1.{server}.containers.hoody.icu/api/v1/agent/agents/code-reviewer-strict/rename " \
-H " Content-Type: application/json " \
-H " X-Hoody-Cwd: /home/user/project " \
-d ' { "new_name": "strict-reviewer" } '
await client . agent . agents . renameAgent ( " code-reviewer-strict " , { new_name : " strict-reviewer " });
" from " : " code-reviewer-strict " ,
" message " : " new_name is required "
Error Code Title Description Resolution bad_requestBad request The request was malformed or carried invalid parameters. Correct the request body or query parameters. realm_scope_unsupportedRealm scope unsupported A per-request realm header was supplied to an active-only / global-no-realm RPC. Omit the realm header on this route, or open a session to scope by realm.
" message " : " request must arrive through the Hoody proxy "
Error Code Title Description Resolution forbiddenForbidden (not via the Hoody proxy) The request did not reach the service through the public endpoint. Reach the agent through hoody-proxy.
" message " : " agent not found "
Error Code Title Description Resolution not_foundNot found The requested resource does not exist. Verify the path and identifier.
" code " : " payload_too_large " ,
" message " : " request body exceeds the configured size limit "
Error Code Title Description Resolution payload_too_largePayload too large The request body exceeds the configured size cap (default 8 MiB). Reduce the request body below the limit.
" message " : " request rate limit exceeded "
Error Code Title Description Resolution rate_limitedToo many requests The per-client request rate limit was exceeded. Honor the Retry-After header and retry.
" code " : " internal_error " ,
" message " : " internal server error "
Error Code Title Description Resolution internal_errorInternal error An unexpected error occurred while handling the request. Retry; if persistent, inspect the daemon logs.
" code " : " service_unavailable " ,
" message " : " service unavailable "
Error Code Title Description Resolution service_unavailableService unavailable The daemon could not service the request (busy or concurrency cap hit). Honor Retry-After and retry.
Restore one agent to its shipped default, discarding local customizations. Agents with no shipped default are refused (is_error: true).
Name In Type Required Description namepath string Yes Agent name. X-Hoody-Cwdheader string No Per-request working-directory scope. X-Hoody-Config-Dirheader string No Per-request --config-dir override. X-Hoody-Containerheader string No Per-request bound remote container. X-Hoody-Realmheader string No Per-request realm selector. Ignored on this scope. realmquery string No In-query alias of X-Hoody-Realm.
curl -X POST " https://{projectId}-{containerId}-agent-1.{server}.containers.hoody.icu/api/v1/agent/agents/general-purpose/reset-to-shipped " \
-H " X-Hoody-Cwd: /home/user/project "
await client . agent . agents . resetAgentToShipped ( " general-purpose " );
" output " : " agent 'general-purpose' restored to shipped default " ,
" message " : " no shipped default for this agent "
Error Code Title Description Resolution bad_requestBad request The request was malformed or carried invalid parameters. Correct the request body or query parameters. tool_mutation_refusedTool mutation refused A sessionless tool run resolved to a mutating tool with no confirmation posture. Open a session and run the tool there, or supply allow_mutations: true / confirm: true on the sessionless run. realm_scope_unsupportedRealm scope unsupported A per-request realm header was supplied to an active-only / global-no-realm RPC. Omit the realm header on this route, or open a session to scope by realm.
" message " : " request must arrive through the Hoody proxy "
Error Code Title Description Resolution forbiddenForbidden (not via the Hoody proxy) The request did not reach the service through the public endpoint. Reach the agent through hoody-proxy.
" code " : " tool_not_found " ,
" message " : " no tool with that name "
Error Code Title Description Resolution tool_not_foundTool not found No tool with the given name exists in the catalogue or in the session’s effective tool list. List the catalogue (GET /tools) or the session’s tools and use a valid name.
" code " : " payload_too_large " ,
" message " : " request body exceeds the configured size limit "
Error Code Title Description Resolution payload_too_largePayload too large The request body exceeds the configured size cap (default 8 MiB). Reduce the request body below the limit.
" message " : " request rate limit exceeded "
Error Code Title Description Resolution rate_limitedToo many requests The per-client request rate limit was exceeded. Honor the Retry-After header and retry.
" code " : " internal_error " ,
" message " : " internal server error "
Error Code Title Description Resolution internal_errorInternal error An unexpected error occurred while handling the request. Retry; if persistent, inspect the daemon logs.
Set (or, with model: "", remove) an agent’s frontmatter model line.
Name In Type Required Description namepath string Yes Agent name. X-Hoody-Cwdheader string No Per-request working-directory scope. X-Hoody-Config-Dirheader string No Per-request --config-dir override. X-Hoody-Containerheader string No Per-request bound remote container. X-Hoody-Realmheader string No Per-request realm selector. Ignored on this scope. realmquery string No In-query alias of X-Hoody-Realm.
Name Type Required Description modelstring No Model spec (e.g. anthropic/claude-opus-4-8); "" removes the frontmatter model line.
curl -X PATCH " https://{projectId}-{containerId}-agent-1.{server}.containers.hoody.icu/api/v1/agent/agents/code-reviewer/model " \
-H " Content-Type: application/json " \
-H " X-Hoody-Cwd: /home/user/project " \
-d ' { "model": "anthropic/claude-opus-4-8" } '
await client . agent . agents . setAgentModel ( " code-reviewer " , { model : " anthropic/claude-opus-4-8 " });
" model " : " anthropic/claude-opus-4-8 " ,
" message " : " invalid model spec "
Error Code Title Description Resolution bad_requestBad request The request was malformed or carried invalid parameters. Correct the request body or query parameters. realm_scope_unsupportedRealm scope unsupported A per-request realm header was supplied to an active-only / global-no-realm RPC. Omit the realm header on this route, or open a session to scope by realm.
" message " : " request must arrive through the Hoody proxy "
Error Code Title Description Resolution forbiddenForbidden (not via the Hoody proxy) The request did not reach the service through the public endpoint. Reach the agent through hoody-proxy.
" message " : " agent not found "
Error Code Title Description Resolution not_foundNot found The requested resource does not exist. Verify the path and identifier.
" code " : " payload_too_large " ,
" message " : " request body exceeds the configured size limit "
Error Code Title Description Resolution payload_too_largePayload too large The request body exceeds the configured size cap (default 8 MiB). Reduce the request body below the limit.
" message " : " request rate limit exceeded "
Error Code Title Description Resolution rate_limitedToo many requests The per-client request rate limit was exceeded. Honor the Retry-After header and retry.
" code " : " internal_error " ,
" message " : " internal server error "
Error Code Title Description Resolution internal_errorInternal error An unexpected error occurred while handling the request. Retry; if persistent, inspect the daemon logs.
" code " : " service_unavailable " ,
" message " : " service unavailable "
Error Code Title Description Resolution service_unavailableService unavailable The daemon could not service the request (busy or concurrency cap hit). Honor Retry-After and retry.
Set (or, with an empty list, remove — meaning “all tools”) an agent’s frontmatter tools line.
Name In Type Required Description namepath string Yes Agent name. X-Hoody-Cwdheader string No Per-request working-directory scope. X-Hoody-Config-Dirheader string No Per-request --config-dir override. X-Hoody-Containerheader string No Per-request bound remote container. X-Hoody-Realmheader string No Per-request realm selector. Ignored on this scope. realmquery string No In-query alias of X-Hoody-Realm.
Name Type Required Description toolsarray No Tool names allowed for the agent; an empty list removes the line (= all tools).
curl -X PATCH " https://{projectId}-{containerId}-agent-1.{server}.containers.hoody.icu/api/v1/agent/agents/code-reviewer/tools " \
-H " Content-Type: application/json " \
-H " X-Hoody-Cwd: /home/user/project " \
-d ' { "tools": ["Read", "Grep", "Bash", "Glob"] } '
await client . agent . agents . setAgentTools ( " code-reviewer " , { tools : [ " Read " , " Grep " , " Bash " , " Glob " ] });
" tools " : [ " Read " , " Grep " , " Bash " , " Glob " ],
" message " : " tools must be an array of strings "
Error Code Title Description Resolution bad_requestBad request The request was malformed or carried invalid parameters. Correct the request body or query parameters. realm_scope_unsupportedRealm scope unsupported A per-request realm header was supplied to an active-only / global-no-realm RPC. Omit the realm header on this route, or open a session to scope by realm.
" message " : " request must arrive through the Hoody proxy "
Error Code Title Description Resolution forbiddenForbidden (not via the Hoody proxy) The request did not reach the service through the public endpoint. Reach the agent through hoody-proxy.
" message " : " agent not found "
Error Code Title Description Resolution not_foundNot found The requested resource does not exist. Verify the path and identifier.
" code " : " payload_too_large " ,
" message " : " request body exceeds the configured size limit "
Error Code Title Description Resolution payload_too_largePayload too large The request body exceeds the configured size cap (default 8 MiB). Reduce the request body below the limit.
" message " : " request rate limit exceeded "
Error Code Title Description Resolution rate_limitedToo many requests The per-client request rate limit was exceeded. Honor the Retry-After header and retry.
" code " : " internal_error " ,
" message " : " internal server error "
Error Code Title Description Resolution internal_errorInternal error An unexpected error occurred while handling the request. Retry; if persistent, inspect the daemon logs.
" code " : " service_unavailable " ,
" message " : " service unavailable "
Error Code Title Description Resolution service_unavailableService unavailable The daemon could not service the request (busy or concurrency cap hit). Honor Retry-After and retry.
Toggle a single tool on or off in an agent’s frontmatter tools line. Pass an optional enabled boolean in the body to set explicitly; omit it to flip the current state.
Name In Type Required Description namepath string Yes Agent name. toolpath string Yes Tool name. X-Hoody-Cwdheader string No Per-request working-directory scope. X-Hoody-Config-Dirheader string No Per-request --config-dir override. X-Hoody-Containerheader string No Per-request bound remote container. X-Hoody-Realmheader string No Per-request realm selector. Ignored on this scope. realmquery string No In-query alias of X-Hoody-Realm.
The request body is a free-form object forwarded to the daemon. Reserved _-prefixed keys are ignored. The accepted fields are exactly those the operation reads; an optional enabled flag may be supplied (omit to flip the current state).
curl -X POST " https://{projectId}-{containerId}-agent-1.{server}.containers.hoody.icu/api/v1/agent/agents/code-reviewer/tools/Bash/toggle " \
-H " Content-Type: application/json " \
-H " X-Hoody-Cwd: /home/user/project " \
-d ' { "enabled": false } '
await client . agent . agents . toggleAgentTool ( " code-reviewer " , " Bash " , { enabled : false });
" message " : " invalid request "
Error Code Title Description Resolution bad_requestBad request The request was malformed or carried invalid parameters. Correct the request body or query parameters. realm_scope_unsupportedRealm scope unsupported A per-request realm header was supplied to an active-only / global-no-realm RPC. Omit the realm header on this route, or open a session to scope by realm.
" message " : " request must arrive through the Hoody proxy "
Error Code Title Description Resolution forbiddenForbidden (not via the Hoody proxy) The request did not reach the service through the public endpoint. Reach the agent through hoody-proxy.
" message " : " agent not found "
Error Code Title Description Resolution not_foundNot found The requested resource does not exist. Verify the path and identifier.
" code " : " payload_too_large " ,
" message " : " request body exceeds the configured size limit "
Error Code Title Description Resolution payload_too_largePayload too large The request body exceeds the configured size cap (default 8 MiB). Reduce the request body below the limit.
" message " : " request rate limit exceeded "
Error Code Title Description Resolution rate_limitedToo many requests The per-client request rate limit was exceeded. Honor the Retry-After header and retry.
" code " : " internal_error " ,
" message " : " internal server error "
Error Code Title Description Resolution internal_errorInternal error An unexpected error occurred while handling the request. Retry; if persistent, inspect the daemon logs.
" code " : " service_unavailable " ,
" message " : " service unavailable "
Error Code Title Description Resolution service_unavailableService unavailable The daemon could not service the request (busy or concurrency cap hit). Honor Retry-After and retry.
Set an agent’s turns frontmatter value (max agent turns per dispatch).
Name In Type Required Description namepath string Yes Agent name. X-Hoody-Cwdheader string No Per-request working-directory scope. X-Hoody-Config-Dirheader string No Per-request --config-dir override. X-Hoody-Containerheader string No Per-request bound remote container. X-Hoody-Realmheader string No Per-request realm selector. Ignored on this scope. realmquery string No In-query alias of X-Hoody-Realm.
Name Type Required Description turnsinteger No Max agent turns per dispatch.
curl -X PATCH " https://{projectId}-{containerId}-agent-1.{server}.containers.hoody.icu/api/v1/agent/agents/code-reviewer/turns " \
-H " Content-Type: application/json " \
-H " X-Hoody-Cwd: /home/user/project " \
await client . agent . agents . setAgentTurns ( " code-reviewer " , { turns : 40 });
" message " : " turns must be a positive integer "
Error Code Title Description Resolution bad_requestBad request The request was malformed or carried invalid parameters. Correct the request body or query parameters. realm_scope_unsupportedRealm scope unsupported A per-request realm header was supplied to an active-only / global-no-realm RPC. Omit the realm header on this route, or open a session to scope by realm.
" message " : " request must arrive through the Hoody proxy "
Error Code Title Description Resolution forbiddenForbidden (not via the Hoody proxy) The request did not reach the service through the public endpoint. Reach the agent through hoody-proxy.
" message " : " agent not found "
Error Code Title Description Resolution not_foundNot found The requested resource does not exist. Verify the path and identifier.
" code " : " payload_too_large " ,
" message " : " request body exceeds the configured size limit "
Error Code Title Description Resolution payload_too_largePayload too large The request body exceeds the configured size cap (default 8 MiB). Reduce the request body below the limit.
" message " : " request rate limit exceeded "
Error Code Title Description Resolution rate_limitedToo many requests The per-client request rate limit was exceeded. Honor the Retry-After header and retry.
" code " : " internal_error " ,
" message " : " internal server error "
Error Code Title Description Resolution internal_errorInternal error An unexpected error occurred while handling the request. Retry; if persistent, inspect the daemon logs.
" code " : " service_unavailable " ,
" message " : " service unavailable "
Error Code Title Description Resolution service_unavailableService unavailable The daemon could not service the request (busy or concurrency cap hit). Honor Retry-After and retry.
Delete one custom chat-agent definition. Shipped-default agents and the configured default chat agent are refused by the daemon guard rails (is_error: true); use putAgentSource or resetAgentToShipped instead.
Name In Type Required Description namepath string Yes Agent name. X-Hoody-Cwdheader string No Per-request working-directory scope. X-Hoody-Config-Dirheader string No Per-request --config-dir override. X-Hoody-Containerheader string No Per-request bound remote container. X-Hoody-Realmheader string No Per-request realm selector. Ignored on this scope. realmquery string No In-query alias of X-Hoody-Realm.
curl -X DELETE " https://{projectId}-{containerId}-agent-1.{server}.containers.hoody.icu/api/v1/agent/agents/docs-writer " \
-H " X-Hoody-Cwd: /home/user/project "
await client . agent . agents . deleteAgent ( " docs-writer " );
" output " : " agent 'docs-writer' deleted " ,
" message " : " cannot delete the default chat agent "
Error Code Title Description Resolution bad_requestBad request The request was malformed or carried invalid parameters. Correct the request body or query parameters. tool_mutation_refusedTool mutation refused A sessionless tool run resolved to a mutating tool with no confirmation posture. Open a session and run the tool there, or supply allow_mutations: true / confirm: true on the sessionless run. realm_scope_unsupportedRealm scope unsupported A per-request realm header was supplied to an active-only / global-no-realm RPC. Omit the realm header on this route, or open a session to scope by realm.
" message " : " request must arrive through the Hoody proxy "
Error Code Title Description Resolution forbiddenForbidden (not via the Hoody proxy) The request did not reach the service through the public endpoint. Reach the agent through hoody-proxy.
" code " : " tool_not_found " ,
" message " : " no tool with that name "
Error Code Title Description Resolution tool_not_foundTool not found No tool with the given name exists in the catalogue or in the session’s effective tool list. List the catalogue (GET /tools) or the session’s tools and use a valid name.
" message " : " request rate limit exceeded "
Error Code Title Description Resolution rate_limitedToo many requests The per-client request rate limit was exceeded. Honor the Retry-After header and retry.
" code " : " internal_error " ,
" message " : " internal server error "
Error Code Title Description Resolution internal_errorInternal error An unexpected error occurred while handling the request. Retry; if persistent, inspect the daemon logs.