Skip to content

The agent that grows with you

docs(delegation): document frontier-planner / inexpensive-worker cost split

Teknium21835cc951fd
diff --git a/cli-config.yaml.example b/cli-config.yaml.example
index eb0ab40a2e1..32c75929cb5 100644
--- a/cli-config.yaml.example
+++ b/cli-config.yaml.example
@@ -1327,6 +1327,10 @@ delegation:
# provider: "openrouter" # Override provider for subagents (empty = inherit parent)
# # Resolves full credentials (base_url, api_key) automatically.
# # Supported: openrouter, nous, zai, kimi-coding, minimax
+ # # Cost tip: keep the parent on a frontier model and pin
+ # # delegation.model to an inexpensive one — children carry the
+ # # vast majority of tokens, so this is where spend is cut while
+ # # planning quality stays with the frontier parent.
# =============================================================================
# Honcho Integration (Cross-Session User Modeling)
diff --git a/website/docs/user-guide/features/delegation.md b/website/docs/user-guide/features/delegation.md
index 2830416a9ab..63d96751024 100644
--- a/website/docs/user-guide/features/delegation.md
+++ b/website/docs/user-guide/features/delegation.md
@@ -153,6 +153,23 @@ delegation:
If omitted, subagents use the same model as the parent.
+### Cost strategy: frontier planner, inexpensive workers
+
+Decomposing a problem into well-specified subtasks takes frontier-level judgment; executing a subtask that already comes with a clear goal, full context, and an output contract usually doesn't. Meanwhile the children are where the tokens go — a parallel batch of subagents typically burns the large majority of a run's total tokens, so the worker model is where the cost actually lives. Pinning `delegation.model` to an inexpensive model while your main session stays on a frontier model keeps the planning quality where it matters and cuts spend where the volume is:
+
+```yaml
+# ~/.hermes/config.yaml
+model:
+ default: "your-frontier-model" # parent (planner) stays on the frontier model
+delegation:
+ model: "your-inexpensive-model" # all delegate_task children run on this
+ provider: "openrouter" # optional: route children to a different provider
+```
+
+Resolution order: `delegation.base_url` (direct endpoint) takes precedence, then `delegation.provider` (full credential bundle resolved via the runtime provider system), and when neither is set children inherit the parent's provider and credentials; `delegation.model` applies in all cases, and when it is empty children inherit the parent's model.
+
+Note that the pin is global: `delegate_task` has no per-task model parameter, so every child in a batch runs on the configured delegation model. For quality-sensitive subtasks that need a stronger model, either leave `delegation.model` unset for that session or hand the task to the [kanban board](kanban.md#per-task-model-override), which does support a per-task model override.
+
## Inherited Tool Access
`delegate_task` does not accept a model-facing `toolsets` parameter. Each subagent inherits the parent's enabled toolsets so the model cannot grant a child capabilities that the parent does not have. Configure the parent's tools before starting the conversation if delegated work needs additional capabilities.
diff --git a/website/docs/user-guide/features/kanban.md b/website/docs/user-guide/features/kanban.md
index a8a6dc0f555..8206002ad0c 100644
--- a/website/docs/user-guide/features/kanban.md
+++ b/website/docs/user-guide/features/kanban.md
@@ -473,6 +473,26 @@ hermes kanban set-model t_abcd none # clear the override
The dispatcher spawns the worker with the pinned model (`--provider <name>` is passed when set; `--provider` requires a model). The dashboard's per-task model dropdown drives the same `model_override` field. With no override, the worker uses its profile's configured model.
+### Cost strategy: frontier orchestrator, inexpensive workers
+
+Kanban's per-profile configs make the planner/worker cost split natural. Decomposing a project into well-scoped cards takes frontier-level judgment; executing a card that already carries a clear goal, context, and handoff evidence usually doesn't — and the workers are where the vast majority of tokens are spent, so the worker model is where the cost lives. Run your orchestrator/dispatcher profile on a frontier model and point worker profiles at inexpensive models. Each profile has its own `config.yaml` under `~/.hermes/profiles/<name>/`, and the dispatcher injects the profile-scoped `HERMES_HOME` when it spawns `hermes -p <assignee>`, so each worker reads its own profile's model settings:
+
+```yaml
+# ~/.hermes/config.yaml (orchestrator / dispatcher profile)
+model:
+ default: "your-frontier-model"
+
+# ~/.hermes/profiles/coder/config.yaml (worker profile)
+model:
+ default: "your-inexpensive-model"
+
+# ~/.hermes/profiles/researcher/config.yaml (another worker profile)
+model:
+ default: "your-inexpensive-model"
+```
+
+For the occasional quality-sensitive card, pin just that task back to a stronger model with the [per-task model override](#per-task-model-override) (`--model`/`--provider` at create time, `hermes kanban set-model` later, or the dashboard's model dropdown) — no profile edits needed.
+
### Lifecycle plugin hooks
Board transitions fire [plugin hooks](/user-guide/features/hooks#plugin-hooks): `kanban_task_claimed`, `kanban_task_completed`, and `kanban_task_blocked`, each carrying `task_id` and `profile_name`. Hooks fire **after** the board DB change commits, so callbacks always see durable state. Note the process split: `kanban_task_claimed` fires in the **dispatcher** process, while `kanban_task_completed`/`kanban_task_blocked` fire in the **worker** process — register the hook in the dispatcher profile to observe every transition centrally.
diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/delegation.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/delegation.md
index 5f00f2c4e43..15793c8d08e 100644
--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/delegation.md
+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/delegation.md
@@ -144,6 +144,23 @@ delegation:
如果省略,子智能体将使用与父智能体相同的模型。
+### 成本策略:前沿模型规划,低价模型执行
+
+将问题分解为规格清晰的子任务需要前沿模型级别的判断力;而执行一个已经带有明确目标、完整上下文和输出约定的子任务通常不需要。与此同时,token 消耗主要发生在子智能体身上——并行批量子智能体通常消耗一次运行中绝大多数的 token,因此成本真正落在 worker 模型上。将 `delegation.model` 固定为低价模型、同时主会话保持前沿模型,可以把规划质量留在最需要的地方,并在消耗量最大的地方削减开支:
+
+```yaml
+# ~/.hermes/config.yaml
+model:
+ default: "your-frontier-model" # 父智能体(规划者)保持前沿模型
+delegation:
+ model: "your-inexpensive-model" # 所有 delegate_task 子智能体运行此模型
+ provider: "openrouter" # 可选:将子智能体路由到不同的提供商
+```
+
+解析顺序:`delegation.base_url`(直连端点)优先,其次是 `delegation.provider`(通过运行时提供商系统解析完整凭证包);两者都未设置时,子智能体继承父智能体的提供商和凭证。`delegation.model` 在所有情况下生效,为空时子智能体继承父智能体的模型。
+
+注意此固定是全局的:`delegate_task` 没有按任务指定模型的参数,批处理中的每个子智能体都运行配置的委派模型。对于需要更强模型的质量敏感型子任务,可以在该会话中不设置 `delegation.model`,或者将任务交给[看板](kanban.md)——看板支持按任务覆盖模型。
+
## 继承的工具访问权限
`delegate_task` 不接受面向模型的 `toolsets` 参数。每个子智能体都会继承父智能体已启用的工具集,因此模型无法授予子智能体父智能体本身没有的能力。如果委派任务需要其他能力,请在开始对话前配置父智能体的工具。
diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/kanban.md b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/kanban.md
index d2a45bd35b1..7e031d142e4 100644
--- a/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/kanban.md
+++ b/website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/user-guide/features/kanban.md
@@ -328,6 +328,26 @@ hermes kanban create "audit auth flow" \
调度器为列出的每个 skill 发出一个 `--skills <name>` 标志,因此 worker 在自动注入的 kanban 指引之上加载了所有这些 skill。skill 名称必须与受让人配置文件上实际安装的 skill 匹配(运行 `hermes skills list` 查看可用内容);没有运行时安装。
+### 成本策略:前沿模型编排,低价模型执行
+
+Kanban 的按 profile 配置让规划者/执行者的成本分层水到渠成。将项目分解为范围清晰的卡片需要前沿模型级别的判断力;而执行一张已经带有明确目标、上下文和交接证据的卡片通常不需要——并且绝大多数 token 消耗发生在 worker 身上,因此成本真正落在 worker 模型上。让编排器/调度器 profile 运行前沿模型,让 worker profile 指向低价模型。每个 profile 在 `~/.hermes/profiles/<name>/` 下有自己的 `config.yaml`,调度器在生成 `hermes -p <assignee>` 时注入 profile 范围的 `HERMES_HOME`,因此每个 worker 读取自己 profile 的模型设置:
+
+```yaml
+# ~/.hermes/config.yaml(编排器 / 调度器 profile)
+model:
+ default: "your-frontier-model"
+
+# ~/.hermes/profiles/coder/config.yaml(worker profile)
+model:
+ default: "your-inexpensive-model"
+
+# ~/.hermes/profiles/researcher/config.yaml(另一个 worker profile)
+model:
+ default: "your-inexpensive-model"
+```
+
+对于偶尔出现的质量敏感型卡片,可以只为该任务固定更强的模型(按任务模型覆盖):创建时用 `--model`/`--provider`,之后用 `hermes kanban set-model <task-id> <model> --provider <name>`(`set-model ... none` 清除覆盖),或使用仪表盘的按任务模型下拉框——无需修改 profile 配置。未设置覆盖时,worker 使用其 profile 配置的模型。
+
### 编排器的行为方式
**行为良好的编排器不会自己做工作。** 它将用户的目标分解为任务,链接它们,将每个任务分配给你设置的配置文件之一,然后退后。编排器指引 —— 反诱惑规则、Step-0 配置文件发现提示(调度器在未知受让人名称上静默失败,因此编排器必须将每张卡片落地到你机器上实际存在的配置文件),以及以 `kanban_create` / `kanban_link` / `kanban_comment` 为核心的分解手册 —— 会自动注入到 worker 的系统 prompt 中;无需安装任何东西。