Skip to main content
M

dsh-workflow-studio

maj-05/dsh-workflow-studio

Visual Agent workflow editor for DeepSeek Harness. Build a DAG with nine node types in a sidebar panel, compile to native workflow scripts, with local autosave and run history.

Install

dsh plugin --profile web add github:maj-05/dsh-workflow-studio

README

Workflow Studio

给 DeepSeek Harness (DSH) 做的可视化 Agent 工作流编排器。

用图形节点编排多 Agent 工作流,编译成 DSH 原生 workflow 脚本执行——不重造执行引擎,复用原生 workflow 工具的取消、后台 job 与会话渲染。

为什么这样做

调研当前 DSH 安装版本确认:原生就有 ctx.workflowEngine.start() 和 workflow 工具,workflow 脚本是 plain JS(顶层 await,结尾 return JSON),hooks 有 agent() / parallel() / pipeline() / phase() / log()。

所以本项目定位为编译器 + 可视化前端:

DAG 编辑器(Client)  →  compiler.js  →  原生 workflow 脚本  →  workflow 工具执行

功能

  • shell.overlay 里的「⚡ 工作流」浮层编辑器
  • 6 种节点:Agent / Parallel / Pipeline / Phase / Log / Return
  • 点击连线构建 DAG,实时预览生成的脚本
  • 编译器检测环、校验语法、生成 meta
  • 一键复制脚本,交给助手调用原生 workflow 工具运行

安装

bundle/ 是标准 DSH bundle。通过 插件 → 添加插件 选择 bundle/ 目录安装,然后重启 DSH。安装后界面任意处会出现「⚡ 工作流」按钮。

开发

node --test tests/        # 编译器单测(6 项)
node --check src/client.js

编译器在 src/compiler.js(纯 JS,Node 可测),Client 里内联了同逻辑副本(模块加载器限制)。

边界

  • v1 工作流定义存在编辑器内存,未做持久化数据库
  • 循环依赖会被编译器拒绝
  • 子 agent 能力遵循 DSH 现有工具策略,不绕过权限

许可

MIT

Related plugins