Skip to content

Make Codex and Claude Code subscriptions go further: a local model router that gives routine agent work to economical models and keeps your strongest model for the hard parts.

Clarify model and task routing in Agent setup (#24)

澄潭adee04985016
diff --git a/apps/desktop/src-tauri/src/agent_session.rs b/apps/desktop/src-tauri/src/agent_session.rs
index 0815dcfb..6b8770de 100644
--- a/apps/desktop/src-tauri/src/agent_session.rs
+++ b/apps/desktop/src-tauri/src/agent_session.rs
@@ -138,9 +138,9 @@ impl AgentConfirmation {
}
} else if self.input.spec.is_restore_only() {
if self.english() {
- "Disable task delegation skill"
+ "Disable task routing"
} else {
- "停用任务委派技能"
+ "停用任务路由"
}
} else if matches!(&self.input.spec.model, AgentFacetIntent::Configure { .. }) {
if self.english() {
@@ -217,22 +217,22 @@ impl AgentConfirmation {
let collaboration_details = match &self.input.spec.collaboration {
AgentFacetIntent::Configure { settings } => match settings.trigger_mode {
AgentCollaborationTriggerModeV2::Explicit => if self.english() {
- "Task delegation: only when explicitly requested."
+ "Task routing: only delegate when explicitly requested."
} else {
- "任务委派:仅在明确要求时触发。"
+ "任务路由:仅在明确要求时委派。"
}
.into(),
AgentCollaborationTriggerModeV2::DelegateByDefault => if self.english() {
- "Task delegation: delegate executable work by default."
+ "Task routing: let the Agent decide when to delegate."
} else {
- "任务委派:默认委派可执行工作。"
+ "任务路由:由 Agent 判断何时委派。"
}
.into(),
},
AgentFacetIntent::Restore { .. } => if self.english() {
- "Disable the task delegation skill for this Agent. Model routing stays configured."
+ "Disable task routing for this Agent. Model routing stays configured."
} else {
- "停用此 Agent 的任务委派技能;模型路由保持原配置。"
+ "停用此 Agent 的任务路由;模型路由保持原配置。"
}
.into(),
AgentFacetIntent::Keep => String::new(),
diff --git a/apps/desktop/src/agents.tsx b/apps/desktop/src/agents.tsx
index 8bb1caf6..e9c177b1 100644
--- a/apps/desktop/src/agents.tsx
+++ b/apps/desktop/src/agents.tsx
@@ -834,7 +834,7 @@ export function Agents({
? text('路由已验证', 'Routing verified')
: text('路由已配置 · 调用未验证', 'Routing configured · call unverified')
: agent.settings?.collaboration?.current_selection
- ? text('委派技能已启用', 'Delegation skill enabled')
+ ? text('任务路由已启用', 'Task routing enabled')
: text('已发现 · 尚未接入', 'Detected · not connected');
return <button className={`list-row${active ? ' active' : ''}`} key={agent.agent_id} aria-current={active ? 'page' : undefined} onClick={async () => { if (dirty && !(await confirmDiscard(language))) return; setEditor(null); setPreview(null); setActionError(''); setNotice(''); setTokenEditing(false); setTokenDraft(''); setSelectedAgent(agent.agent_id); setShowAgentList(false); }}>
<BrandIcon kind={brand(agent)} label={`${agentName(agent)} logo`} />
@@ -854,7 +854,7 @@ export function Agents({
{selectedPending && <div className="oc-status-row" role="status"><span className="oc-spinner" /><p>{text('路由配置正在应用,完成后会自动更新。', 'Routing settings are being applied and will update automatically.')}</p></div>}
<section className="detail-section v3-agent-section">
<div className="detail-section-head"><h3>{text('模型路由', 'Model routing')}</h3><button className="btn btn-quiet" data-agent-facet="model" disabled={busy || !selected.context_id || !mutable} onClick={event => open(selected, 'model', event.currentTarget)}>{modelSelection ? text('调整', 'Edit') : text('启用', 'Enable')}</button></div>
- <p>{modelSelection ? <>{text('当前选择:', 'Current selection: ')}<strong>{modelSelectionSummary}</strong></> : text('按客户端原生语义选择固定模型或智能路由;保存配置本身不会伪装成模型验证。', 'Choose fixed models or smart routes using the client’s native semantics. Saving configuration is not treated as model verification.')}</p>
+ <p>{modelSelection ? <>{text('当前选择:', 'Current selection: ')}<strong>{modelSelectionSummary}</strong></> : text('为此 Agent 配置固定模型,或通过智能路由自动选择模型。', 'Configure a fixed model for this Agent, or use smart routing to choose a model automatically.')}</p>
{modelSelection && (selected.available_surfaces ?? []).length > 0 && <div className="agent-surface-results" aria-label={text('当前客户端验证结果', 'Current client verification results')}>
{selected.available_surfaces?.map(surface => {
const revision = selected.settings?.applied_revision;
@@ -875,23 +875,24 @@ export function Agents({
{modelSelection?.mode === 'claude_launcher' && <p className="field-help">{text('直接启动 claude,使用 Opus、Sonnet、Haiku 原生预设选择已映射路由;其他计划不会自动出现在模型菜单中。若未显式选择当前模型,Claude Default 取决于账号;预设映射不证明 Default 可用,请通过真实调用验证。', 'Start claude normally and use its native Opus, Sonnet, or Haiku preset for mapped routes. Other plans do not automatically appear in the model picker. Without an explicit model selection, Claude Default depends on the account; preset mappings do not prove it works. Verify with a live call.')}</p>}
</section>
<section className="detail-section v3-agent-section">
- <div className="detail-section-head"><h3>{text('任务委派技能', 'Task delegation skill')}</h3><button className="btn btn-quiet" data-agent-facet="collaboration" disabled={busy || !selected.context_id || !mutable} onClick={event => open(selected, 'collaboration', event.currentTarget)}>{taskSelection ? text('调整', 'Edit') : text('启用', 'Enable')}</button></div>
+ <div className="detail-section-head"><h3>{text('任务路由', 'Task routing')}</h3><button className="btn btn-quiet" data-agent-facet="collaboration" disabled={busy || !selected.context_id || !mutable} onClick={event => open(selected, 'collaboration', event.currentTarget)}>{taskSelection ? text('调整', 'Edit') : text('启用', 'Enable')}</button></div>
<p>{taskSelection?.trigger_mode === 'delegate_by_default'
- ? text('默认允许 Agent 判断何时委派;你仍可明确要求只回答、不执行。', 'The Agent may delegate by default; you can still explicitly ask it to answer without execution.')
+ ? text('由此 Agent 判断何时将任务交给执行 Agent;你仍可明确要求只回答、不执行。', 'This Agent decides when to delegate work to an execution Agent; you can still explicitly ask it to answer without execution.')
: taskSelection
- ? text('仅在你明确要求执行或委派任务时使用。', 'Used only when you explicitly ask the Agent to execute or delegate a task.')
- : text('启用后,Agent 可以从当前可用路由中选择执行 Agent;不维护第二套路由名单。', 'When enabled, the Agent can choose from currently available routes; there is no second route allowlist.')}</p>
+ ? text('仅在你明确要求执行或委派任务时,将任务交给执行 Agent。', 'Delegate work to an execution Agent only when you explicitly ask for execution or delegation.')
+ : text('让此 Agent 将任务交给合适的执行 Agent,并获取结果。', 'Let this Agent delegate work to a suitable execution Agent and retrieve the results.')}</p>
+ <p className="field-help">{text('启用后,可在对话中说:“使用 HiRoute,将当前任务委派给【路由名称】执行。”路由名称见“智能路由”,也可让 Agent 选择合适的路由。', 'After enabling, ask in conversation: “Use HiRoute to delegate this task to [route name].” Find route names under Smart routing, or ask the Agent to choose a suitable route.')}</p>
</section>
- <Disclosure className="native-details" label={text('连接详情与恢复', 'Connection details and recovery')} language={language}><dl>{selected.version && <div><dt>{text('版本', 'Version')}</dt><dd>{selected.version}</dd></div>}{selected.settings?.state === 'configured' && modelSelection && <div><dt>{text('本机接入令牌', 'Local access token')}</dt><dd><input className="input" type="password" value="••••••••••••••••" readOnly aria-label={text('当前令牌已隐藏', 'Current token hidden')} /></dd></div>}</dl>{selected.settings?.restore_point_ref && selected.agent_id === 'agent_codex_default' && <label className="field-label">{text('恢复时选择原生模型(可选)', 'Native model on restore (optional)')}<input list="codex-native-restore-models" value={restoreNativeModel} onChange={event => { setRestoreNativeModel(event.target.value); setPreview(null); }} placeholder={text('保留原设置', 'Keep original setting')} disabled={busy || !mutable} /><datalist id="codex-native-restore-models">{nativeRestoreOptions.map(model => <option key={model.client_model_id} value={model.client_model_id}>{model.display_name}</option>)}</datalist></label>}{selected.settings?.state === 'configured' && modelSelection && <div className="actions" data-agent-token-controls><button className="btn" disabled={busy || !mutable} onClick={() => { setTokenEditing(true); setTokenDraft(''); setActionError(''); }}>{text('修改令牌', 'Change token')}</button><button className="btn" disabled={busy || !mutable} onClick={event => void changeToken(selected, true, event.currentTarget)}>{text('重新生成', 'Regenerate')}</button></div>}{tokenEditing && selected.settings?.state === 'configured' && modelSelection && <form className="agent-token-form" onSubmit={event => { event.preventDefault(); void changeToken(selected, false, (event.nativeEvent as SubmitEvent).submitter as HTMLElement | null); }}><label className="field"><span className="field-label">{text('新令牌', 'New token')}</span><input className="input" type="password" autoComplete="new-password" value={tokenDraft} onChange={event => setTokenDraft(event.target.value)} minLength={16} maxLength={128} pattern="[A-Za-z0-9._~\\-]{16,128}" required disabled={busy} /><span className="field-help">{text('16–128 位英文字母、数字及 . _ ~ -;保存后原令牌立即失效,无需重新接入。', 'Use 16–128 letters, numbers, or . _ ~ -. The old token stops working after save; reconnecting is unnecessary.')}</span></label><div className="actions"><button className="btn btn-primary" type="submit" disabled={busy || !mutable}>{text('保存令牌', 'Save token')}</button><button className="btn" type="button" disabled={busy} onClick={() => { setTokenEditing(false); setTokenDraft(''); }}>{text('取消', 'Cancel')}</button></div></form>}<div className="actions">{selected.settings?.restore_point_ref && <button className="btn" disabled={busy || !mutable} onClick={event => void change(selected, 'model', true, event.currentTarget)}>{text('恢复模型设置', 'Restore model settings')}</button>}{selectedCollaboration?.restore_point_ref && <button className="btn" disabled={busy || !mutable} onClick={event => void change(selected, 'collaboration', true, event.currentTarget)}>{text('停用任务委派技能', 'Disable task delegation skill')}</button>}</div></Disclosure>
+ <Disclosure className="native-details" label={text('连接详情与恢复', 'Connection details and recovery')} language={language}><dl>{selected.version && <div><dt>{text('版本', 'Version')}</dt><dd>{selected.version}</dd></div>}{selected.settings?.state === 'configured' && modelSelection && <div><dt>{text('本机接入令牌', 'Local access token')}</dt><dd><input className="input" type="password" value="••••••••••••••••" readOnly aria-label={text('当前令牌已隐藏', 'Current token hidden')} /></dd></div>}</dl>{selected.settings?.restore_point_ref && selected.agent_id === 'agent_codex_default' && <label className="field-label">{text('恢复时选择原生模型(可选)', 'Native model on restore (optional)')}<input list="codex-native-restore-models" value={restoreNativeModel} onChange={event => { setRestoreNativeModel(event.target.value); setPreview(null); }} placeholder={text('保留原设置', 'Keep original setting')} disabled={busy || !mutable} /><datalist id="codex-native-restore-models">{nativeRestoreOptions.map(model => <option key={model.client_model_id} value={model.client_model_id}>{model.display_name}</option>)}</datalist></label>}{selected.settings?.state === 'configured' && modelSelection && <div className="actions" data-agent-token-controls><button className="btn" disabled={busy || !mutable} onClick={() => { setTokenEditing(true); setTokenDraft(''); setActionError(''); }}>{text('修改令牌', 'Change token')}</button><button className="btn" disabled={busy || !mutable} onClick={event => void changeToken(selected, true, event.currentTarget)}>{text('重新生成', 'Regenerate')}</button></div>}{tokenEditing && selected.settings?.state === 'configured' && modelSelection && <form className="agent-token-form" onSubmit={event => { event.preventDefault(); void changeToken(selected, false, (event.nativeEvent as SubmitEvent).submitter as HTMLElement | null); }}><label className="field"><span className="field-label">{text('新令牌', 'New token')}</span><input className="input" type="password" autoComplete="new-password" value={tokenDraft} onChange={event => setTokenDraft(event.target.value)} minLength={16} maxLength={128} pattern="[A-Za-z0-9._~\\-]{16,128}" required disabled={busy} /><span className="field-help">{text('16–128 位英文字母、数字及 . _ ~ -;保存后原令牌立即失效,无需重新接入。', 'Use 16–128 letters, numbers, or . _ ~ -. The old token stops working after save; reconnecting is unnecessary.')}</span></label><div className="actions"><button className="btn btn-primary" type="submit" disabled={busy || !mutable}>{text('保存令牌', 'Save token')}</button><button className="btn" type="button" disabled={busy} onClick={() => { setTokenEditing(false); setTokenDraft(''); }}>{text('取消', 'Cancel')}</button></div></form>}<div className="actions">{selected.settings?.restore_point_ref && <button className="btn" disabled={busy || !mutable} onClick={event => void change(selected, 'model', true, event.currentTarget)}>{text('恢复模型设置', 'Restore model settings')}</button>}{selectedCollaboration?.restore_point_ref && <button className="btn" disabled={busy || !mutable} onClick={event => void change(selected, 'collaboration', true, event.currentTarget)}>{text('停用任务路由', 'Disable task routing')}</button>}</div></Disclosure>
{!editor && loadError && <div className="callout warn agent-feedback agent-inline-feedback" role="alert" data-error-code={loadError}><UiIcon name="warning" /><div><strong>{text('状态刷新失败', 'Status refresh failed')}</strong><p>{text('当前仍显示上次读取的结果。', 'The last loaded result is still shown.')}</p><button className="btn" type="button" onClick={() => void refresh()}>{text('重试', 'Retry')}</button></div></div>}
{!editor && blockedPreview}
{!editor && notice && <div className="toast-stack" aria-live="polite"><div className="toast" role="status"><UiIcon name="check" /><span>{notice}</span></div></div>}
{!editor && actionError && <div className="callout bad agent-feedback agent-inline-feedback" role="alert" data-error-code={actionError}><UiIcon name="warning" /><span>{agentActionErrorMessage(actionError, language)}</span></div>}
{!selected.context_id && <div className="callout"><UiIcon name="info" /><span>{text('此 Agent 的设置入口尚不可用。', 'Settings for this Agent are not available yet.')}</span></div>}
- {editor?.context === selected.context_id && selected.context_id && <Dialog open title={`${agentName(selected)} · ${editor.facet === 'model' ? text('模型路由', 'Model routing') : text('任务委派技能', 'Task delegation skill')}`} closeLabel={text('关闭配置', 'Close settings')} closeDisabled={busy} onClose={() => { if (!busy) close(); }} footer={<><button className="btn" type="button" disabled={busy} onClick={close}>{text('取消', 'Cancel')}</button><button className="btn btn-primary" type="submit" form="hr-agent-settings" disabled={busy || !mutable || Boolean(formInvalid)}>{busy ? busyText || text('正在保存…', 'Saving…') : text('保存配置', 'Save settings')}</button></>}>
+ {editor?.context === selected.context_id && selected.context_id && <Dialog open title={`${agentName(selected)} · ${editor.facet === 'model' ? text('模型路由', 'Model routing') : text('任务路由', 'Task routing')}`} closeLabel={text('关闭配置', 'Close settings')} closeDisabled={busy} onClose={() => { if (!busy) close(); }} footer={<><button className="btn" type="button" disabled={busy} onClick={close}>{text('取消', 'Cancel')}</button><button className="btn btn-primary" type="submit" form="hr-agent-settings" disabled={busy || !mutable || Boolean(formInvalid)}>{busy ? busyText || text('正在保存…', 'Saving…') : text('保存配置', 'Save settings')}</button></>}>
<form id="hr-agent-settings" className="agent-form" onSubmit={event => { event.preventDefault(); void change(selected, editor.facet, !facetEnabled, (event.nativeEvent as SubmitEvent).submitter as HTMLElement | null); }}>
<fieldset disabled={busy || !mutable}>
- <div className="option-row agent-facet-toggle"><div><strong>{editor.facet === 'model' ? text('使用 HiRoute 模型路由', 'Use HiRoute model routing') : text('启用任务委派技能', 'Enable task delegation skill')}</strong><span>{editor.facet === 'model' ? text('关闭后使用原有模型接入', 'Use the original model connection when disabled') : text('允许当前 Agent 在需要时调用执行 Agent', 'Allow this Agent to invoke an execution Agent when needed')}</span></div><button ref={node => { firstField.current = node; }} className={`switch${facetEnabled ? ' on' : ''}`} type="button" role="switch" aria-checked={facetEnabled} aria-label={editor.facet === 'model' ? text('模型路由', 'Model routing') : text('任务委派技能', 'Task delegation skill')} onClick={() => { setFacetEnabled(value => !value); setPreview(null); setActionError(''); setNotice(''); }} /></div>
+ <div className="option-row agent-facet-toggle"><div><strong>{editor.facet === 'model' ? text('使用 HiRoute 模型路由', 'Use HiRoute model routing') : text('启用任务路由', 'Enable task routing')}</strong><span>{editor.facet === 'model' ? text('关闭后使用原有模型接入', 'Use the original model connection when disabled') : text('允许当前 Agent 将任务交给执行 Agent,并获取结果', 'Allow this Agent to delegate work to an execution Agent and retrieve the results')}</span></div><button ref={node => { firstField.current = node; }} className={`switch${facetEnabled ? ' on' : ''}`} type="button" role="switch" aria-checked={facetEnabled} aria-label={editor.facet === 'model' ? text('模型路由', 'Model routing') : text('任务路由', 'Task routing')} onClick={() => { setFacetEnabled(value => !value); setPreview(null); setActionError(''); setNotice(''); }} /></div>
{facetEnabled && editor.facet === 'model' && <p className="field-help" data-agent-service-responsibility>{text('保存不会设置登录项或保证 HiRoute 服务以后持续在线;需要路由时请保持本机服务运行。', 'Saving does not configure a login item or guarantee that the HiRoute service stays online; keep the local service running when you need routing.')}</p>}
{facetEnabled && editor.facet === 'model' && selected.agent_id === 'agent_codex_default' && <div className="worker-choices">
<fieldset data-agent-native-mode><legend className="field-label">{text('Codex 可用模型', 'Models available in Codex')}</legend>
@@ -935,7 +936,7 @@ export function Agents({
{!enabledPlans.length && <div className="callout"><UiIcon name="route" /><div><span>{text('先创建并启用一条智能路由。', 'Create and enable a smart route first.')}</span></div>{onCreatePlan && <button className="btn" type="button" onClick={createPlanFromEditor}>{text('创建路由', 'Create route')}</button>}</div>}
</div>}
{facetEnabled && editor.facet === 'model' && <AgentCapabilityPreview agent={selected.agent_id === 'agent_claude_default' ? 'claude' : 'codex'} language={language} plans={enabledPlans.filter(plan => selected.agent_id === 'agent_claude_default' ? Object.values(editorValues.claudePresets).some(choice => choice.kind === 'plan' && choice.plan_id === plan.agent_plan_id) : editorValues.allowedPlanIds.includes(plan.agent_plan_id))} />}
- {facetEnabled && editor.facet === 'collaboration' && <fieldset className="worker-choices"><legend className="field-label">{text('委派时机', 'When to delegate')}</legend><label className="check-row"><input type="radio" name="agent-collaboration-trigger" value="explicit" checked={editorValues.triggerMode === 'explicit'} onChange={() => setTriggerMode('explicit')} /><div><strong>{text('仅在明确要求时', 'Only when explicitly requested')}</strong><span>{text('只有当你要求执行、委派或交给 Worker 时,Agent 才会启动任务。', 'The Agent starts a task only when you ask it to execute, delegate, or hand work to a Worker.')}</span></div></label><label className="check-row"><input type="radio" name="agent-collaboration-trigger" value="delegate_by_default" checked={editorValues.triggerMode === 'delegate_by_default'} onChange={() => setTriggerMode('delegate_by_default')} /><div><strong>{text('默认由 Agent 判断', 'Let the Agent decide by default')}</strong><span>{text('Agent 可以主动委派适合执行的任务;明确要求只回答时不会启动任务。', 'The Agent may proactively delegate suitable work, but will not start a task when you explicitly ask for an answer only.')}</span></div></label><p className="field-help">{text('可用执行路由由当前路由目录决定,这里不维护第二份名单。', 'Available execution routes come from the current route catalog; this setting does not maintain a second list.')}</p></fieldset>}
+ {facetEnabled && editor.facet === 'collaboration' && <fieldset className="worker-choices"><legend className="field-label">{text('委派时机', 'When to delegate')}</legend><label className="check-row"><input type="radio" name="agent-collaboration-trigger" value="explicit" checked={editorValues.triggerMode === 'explicit'} onChange={() => setTriggerMode('explicit')} /><div><strong>{text('仅在明确要求时', 'Only when explicitly requested')}</strong><span>{text('只有当你要求执行、委派或交给 Worker 时,Agent 才会启动任务。', 'The Agent starts a task only when you ask it to execute, delegate, or hand work to a Worker.')}</span></div></label><label className="check-row"><input type="radio" name="agent-collaboration-trigger" value="delegate_by_default" checked={editorValues.triggerMode === 'delegate_by_default'} onChange={() => setTriggerMode('delegate_by_default')} /><div><strong>{text('默认由 Agent 判断', 'Let the Agent decide by default')}</strong><span>{text('Agent 可以主动委派适合执行的任务;明确要求只回答时不会启动任务。', 'The Agent may proactively delegate suitable work, but will not start a task when you explicitly ask for an answer only.')}</span></div></label><p className="field-help">{text('可委派的任务路由在“智能路由”中管理。', 'Manage routes available for task delegation under Smart routing.')}</p></fieldset>}
{!selectionKnown && <div className="callout warn" role="alert"><UiIcon name="warning" /><span>{text('当前配置状态无法核实,不能覆盖保存。请刷新或处理配置变化。', 'The current setting cannot be verified. Refresh or resolve configuration changes before saving.')}</span></div>}
</fieldset>
</form>
diff --git a/apps/website/content/guides/task-routing.en.md b/apps/website/content/guides/task-routing.en.md
index d1d1292f..7f34c1a0 100644
--- a/apps/website/content/guides/task-routing.en.md
+++ b/apps/website/content/guides/task-routing.en.md
@@ -19,15 +19,22 @@ Do not delegate coordination, plan discovery, status checks, waits, or result su
A missing installation does not block saving the plan, but the chosen execution agent must pass its dependency check before a task can start. Give the plan a specific name and purpose that describe fitting tasks and expected results, so a main agent can choose it correctly.
-## Allow a main agent to use the plan
+## Allow a main agent to delegate tasks
-Open Agents, choose the Codex or Claude Code installation that will act as the main agent, then open Task delegation skill:
+Open Agents, choose the Codex or Claude Code installation that will act as the main agent, then open Task routing:
-1. Enable the task delegation skill.
-2. Select the published plans it may discover and invoke.
-3. Save and complete the skill check.
+1. Enable task routing.
+2. Choose when to delegate: only when you explicitly ask, or let the Agent decide by default.
+3. Save the settings and complete the task delegation skill check when prompted.
-You can now explicitly ask for delegation in the agent's normal conversation. If you choose the default-delegation behavior, the main agent may also select a plan for suitable independent work. Desktop lists accepted work on the Tasks page.
+Manage routes available for task delegation under Smart routing. The main agent discovers published plans that allow task delegation.
+
+After enabling, explicitly mention HiRoute and delegation in the agent's normal conversation, for example:
+
+- Choose a route: “Use HiRoute to delegate this task to [route name].” Replace the placeholder with a route that allows task delegation under Smart routing.
+- Let the Agent choose: “Use HiRoute to delegate this task and choose a suitable route.”
+
+If you choose the default-delegation behavior, the main agent may also select a plan for suitable independent work. Desktop lists accepted work on the Tasks page.
## Use the same production path from Terminal
diff --git a/apps/website/content/guides/task-routing.zh.md b/apps/website/content/guides/task-routing.zh.md
index 6a77d287..fb01b2e1 100644
--- a/apps/website/content/guides/task-routing.zh.md
+++ b/apps/website/content/guides/task-routing.zh.md
@@ -19,15 +19,22 @@
安装缺失不会阻止保存计划,但真正启动任务前必须让所选执行 Agent 通过依赖检查。计划的名称和使用场景应描述适合的任务及预期交付,帮助主 Agent 做出正确选择。
-## 允许主 Agent 使用计划
+## 允许主 Agent 委派任务
-打开“Agent”,选择作为主 Agent 的 Codex 或 Claude Code,再打开“任务委派技能”:
+打开“Agent”,选择作为主 Agent 的 Codex 或 Claude Code,再打开“任务路由”:
-1. 启用任务委派技能。
-2. 选择允许它发现和调用的已发布计划。
-3. 保存并完成技能检查。
+1. 启用任务路由。
+2. 选择委派时机:仅在你明确要求时委派,或默认由 Agent 判断。
+3. 保存配置,并按提示完成任务委派技能检查。
-之后可以在日常对话中明确要求委派;若配置为默认委派,主 Agent 也可以对适合独立执行的工作主动选择计划。任务记录会显示在桌面应用的“任务”页面。
+可委派的任务路由在“智能路由”中管理;主 Agent 会发现已发布并允许任务委派的计划。
+
+启用后,在日常对话中明确说出 HiRoute 和委派意图,例如:
+
+- 指定路由:“使用 HiRoute,将当前任务委派给【路由名称】执行。”将占位内容替换为“智能路由”中允许任务委派的路由名称。
+- 由 Agent 选择:“使用 HiRoute 委派当前任务,选择合适的路由。”
+
+若配置为默认委派,主 Agent 也可以对适合独立执行的工作主动选择计划。任务记录会显示在桌面应用的“任务”页面。
## 从终端执行同一条生产路径