dsh-sage-router
其他 活跃维护

dsh-sage-router

jinzheng8115/dsh-sage-router

作为SAGE路由插件,可实现进度感知的约束路由,内置SELF、HANDOFF、COLLABORATE三种路由模式,能按任务进度自动匹配最优路由策略,简化智能体调度配置。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
TypeScript
主要语言
MIT
开源协议
67 KB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:jinzheng8115/dsh-sage-router
git clone https://github.com/jinzheng8115/dsh-sage-router.git
git clone git@github.com:jinzheng8115/dsh-sage-router.git
README.md main

dsh-sage-router

SAGE routing as a DeepSeek Harness plugin: progress-aware constrained routing (SELF / HANDOFF / COLLABORATE) and task-DAG scheduling for A2A agent networks.

The package lives in packages/dsh-sage-router and exposes two agent tools:

  • sage_route_task — filter declared Agents and return a routing decision only; no child Agent is started.
  • sage_orchestrate_task — same route seam, then optionally execute each requirement through Harness subagents (autoOrchestrate), with replanning after a failed child.

Install a local bundle

pnpm --dir packages/dsh-sage-router install --frozen-lockfile
pnpm --dir packages/dsh-sage-router build
dsh plugin --profile <name> add ./packages/dsh-sage-router

The bundle ships safe route-only defaults (autoOrchestrate: false). To enable real child execution, add an id-targeted patch for the sage-router row in the profile's cordis.patch.yml; id-targeted patches replace the row's whole config object, so restate every key. See docs/SAGE-HARNESS.md for tool contracts, persistence, and security limits.

Verify

pnpm --dir packages/dsh-sage-router run check          # build + typecheck + tests
SAGE_DSH_BIN=dsh SAGE_DSH_PROFILE=<profile> \
SAGE_DSH_VERSION=0.1.1-rc.2 \
  pnpm --dir packages/dsh-sage-router run smoke:harness  # opt-in real-model smoke

Compatibility baseline

@deepseek-ai/dsh 0.1.1-rc.2, Node.js 22+, pnpm 10+. The plugin stores no credentials; the selected Harness profile must own its provider, model, approval, sandbox, and credential configuration.

License

MIT — see LICENSE.