dsh plugins中文
← Back to popular plugin directory

StateGraph orchestration engine as DeepSeek Harness plugin

zerosloney/dsh-state-graph · skills

StateGraph orchestration engine as a DeepSeek Harness plugin: declarative directed state graphs with conditional routing, loopback, iteration guards.

★ 0GitHub stars
0Forks
2026-08-17Last updated
JavaScriptLanguage
MITLicense

Project overview

把 StateGraph 有向状态图编排引擎移植为 DeepSeek Harness (dsh) 插件:用声明式的节点 / 静态边 / 条件边把 Harness 单向线性的 ReAct 调度提升为支持多分支条件路由、循环重试与迭代熔断的图编排运行时(子图嵌套可经节点内调用 ctx.graph.create() 组合实现;并行汇聚暂未内置)。 这是什么

graphId 标识每次执行(同一图实例的重复/并发运行各自独立生成),用于区分并发图之间可能重名的节点轨迹。graph/end 只在正常终止时发出;所有异常终止统一发 graph/error 后上抛——包括迭代熔断、条件路由返回未注册节点名/非字符串、路由函数抛错,以及 graph/start 之后的取消(节点执行中的取消先发 graph/node-error 过程诊断、再发 graph/error 终态;graph/start 之前的预取消无任何事件)。节点自身业务抛错仅发 graph/node-error 后上抛。graph/ 监听器同步执行且异常会传播进引擎(cordis emit 语义),订阅方不应在监听器中抛错。

profile 的 dsh.profile.bundles 需要包含 dsh-state-graph(与 @deepseek-ai/dsh-base 一起)。插件无其他注入依赖,任何 profile 均可加载。 配置(cordis.patch.yml 的 config) 用法示例:代码生成与双向对齐检查图

Install command

dsh plugin --profile web add github:zerosloney/dsh-state-graph
View GitHub repository ↗Back to popular plugin directory