0
代码介绍
代码
Issues
Pull Requests
流水线
Actions
讨论
Wiki
项目成员
分析
项目设置
0
  1. PilotDeck
  2. /
  3. src
  4. /
  5. router
  6. /
  7. protocol
Kaguya-19Kaguya-19feat(router): add subagentModel override for orchestrated sub-agents
ce2729ad创建于 18 天前历史提交
文件最后提交记录最后更新时间
decision.ts
feat(router): add subagentModel override for orchestrated sub-agents Allow autoOrchestrate config to specify a subagentModel that forces all spawned sub-agents to use a specific model, enabling cost-optimized "big model orchestrates, small model executes" patterns. Also fix tokenSaver selection adoption to respect sticky/fallback results. Co-authored-by: Cursor <cursoragent@cursor.com> 18 天前
errors.ts
feat(router): introduce in-process router module with scenario routing, fallback, and zero-usage retry Replace the agent's direct model dependency and AgentRecoveryPolicy with a new src/router/ module that owns scenario decision, sticky session state, fallback chain, zero-usage retry, and (skeleton) tokenSaver / orchestrate / customRouter / stats. Wire it into PolitConfig, createLocalGateway, and the agent loop; update e2e + agent test helpers; add docs/router/ and full tests/router/ unit suites. Co-authored-by: Cursor <cursoragent@cursor.com> 24 天前
events.ts
feat(router): add transient network retry with exponential backoff Retry transient network errors (ECONNRESET, timeout, DNS failures) with jittered exponential backoff before falling through to the fallback chain. Add isNetworkTransient/classifyNetworkErrorCode helpers and RouterTransientRetryEvent telemetry. Co-authored-by: Cursor <cursoragent@cursor.com> 20 天前