dsh 目标生命周期管理与可视化看板:目标、判据、执行、评审都在项目内跟踪,由 graph_* 工具驱动,会话视图内渲染二维泳道看板。
安装
# npm 包(预构建)
dsh plugin --profile web add dsh-graph
# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)
dsh plugin --profile web add github:miuzel/dsh-graph#path:/dsh-graph-host
装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。GitHub 来源的插件还会在安装时执行构建脚本——pnpm 默认拦截,所以安装可能停在 ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED 或 ERR_PNPM_IGNORED_BUILDS;dsh 会打印出需要添加的确切键名,把它加进该 profile 的 pnpm-workspace.yaml 的 allowBuilds 下,重跑一次即可装上。放行构建本身就是一次信任判断:请只安装可信来源,并尽量锁定 commit(github:owner/repo#sha)。
README
中文
概述
dsh-graph 是面向 DeepSeek Harness (DSH) 的目标看板插件。它将大模型智能体(Agent)的工作流组织为基于图的目标管理(Graph-based Goal Management)。
本插件采用一体化单包分发(npm 包名 dsh-graph),同时集成两大核心能力:
- Host 端:向 DSH Agent 提供覆盖目标全生命周期的 50 个
graph_*工具,并暴露/api/dsh-graph*REST API(支持看板投影、目标详情查询与写操作); - Client 端:无缝内嵌于 DSH Web 控制台(
conversation.view槽位)的浏览器二维泳道看板,提供直观的可视化交互与实时追踪。
数据以本地纯文本与事件流形式存储于工作区的 .dsh-graph/ 目录,Git 友好、天然支持协同对账与审计追踪。
安装方式
在 DSH 环境中运行以下命令即可安装:
dsh plugin --profile <profile-name> add dsh-graph
当前版本:v0.19.7。环境要求:Node.js ≥ 22(包内预编译 core 运行时)。宿主提供的核心包(@deepseek-ai/cordis、@deepseek-ai/schemastery、@deepseek-ai/dsh-settings)以 peerDependencies + peerDependenciesMeta.optional(DSH 生态惯例)声明,由 DSH 宿主环境提供,安装不产生 peer 告警;yaml 为插件自带运行依赖(声明在 dependencies 中),避免产生重复的核心包实例。
宿主兼容范围:engines.dsh 声明 >=0.1.5-rc.2 <0.2.1-0(上界 -0 排除 0.2.1 的一切预发布与正式版),供 dsh-market 等宿主感知型市场在卡片展示与安装/更新预检中读取。实测通过的宿主:0.1.6-alpha.2 ~ 0.1.7-rc.2、0.2.0-rc.1、0.2.0-rc.2(负责人 2026-09-30 真机复验)。该区间顺带覆盖的 0.1.8 系在 npm 上从未发布(0.1.7-rc.2 之后直接跳版到 0.2.0-rc.1),故为空集,不构成未实测声明。
平台状态:
| 平台 | 支持情况 |
|---|---|
| Linux / WSL2 | ✅ 支持 |
| 原生 Windows | ✅ 支持(已在原生 Windows 上实测) |
| macOS | ✅ 支持(已在 macOS 上实测) |
三平台使用同一安装包。已知限制:① macOS 默认文件系统 APFS 大小写不敏感 —— 仅大小写不同的目标编号 / 版本泳道会落到同一实体,请勿只用大小写区分;② macOS 上若工作区路径经显式传入且含符号链接(如位于 /tmp、/var 之下),会被拒绝并报 graph root symlink is not allowed;由 process.cwd() 推导的路径不受影响。
最新亮点(v0.19.7)
- 界面文案跟随宿主语言:宿主切换语言时插件文案当场跟着变,不再需要重载;重启后也以宿主当前语言初始渲染。同时修掉「升级宿主后插件浏览器半边不激活」的冷启动问题。
- Windows 上的文件系统操作不再踩坑:目录形态的目标搬迁不再因为提前建了同名目录而被系统拒绝;看板内的相对路径按平台统一分隔符,归档 / 取消归档与路径校验不再报错或静默失效。
- 状态与记录不再可能对不上:状态变更先记事件再落盘,中途失败不会留下「状态已改、记录没写」的中间态;取锁失败不再释放别人的锁,坏掉的锁能自行收敛而不是永久卡住;目标编号不会被删除后重新发出去;解绑只作用于被指定的那一次执行。
- 英文模式下不再夹带中文:英文派发时,内置的模式片段、小节标题、空描述兜底材料都按语言渲染,界面与提示词里不再冒出中文。
- 「成功」不再可能是假的:向会话投递内容、重新派发子代理等操作改为等待回执,没拿到回执就如实提示并给出复制兜底;仓库自带的整套测试也不再可能「看起来全绿」而实际漏跑文件、跳过用例或提前退出。
完整变更史见 CHANGELOG。已发布版本支持通过 npm 与 dsh-market 生态分发。
升级残留自检与清理
现象(外部报告):升级宿主后 Web GUI 冷启动报
web boot: N entry did not activate / <插件名>: failed —— 插件的 host 半边(graph_* 工具)正常、热加载也正常,只有浏览器半边不激活。
成因:dsh.client.inject 不是「名录」,而是加载顺序边。浏览器端 loader
(@deepseek-ai/dsh-client-modules/lib/client.js:655-658)只对 inject 中已存在于客户端清单的包名做前置加载,
名字不在清单里就静默跳过。而 @deepseek-ai/dsh-client-runtime 自 dsh 0.2.x 起不再随宿主分发
(在 dsh 0.1.5-rc.2 / 0.1.7-rc.2 / 0.2.0-rc.2 的安装树里均无此包),但它的包清单仍声明 dsh.client:
升级过程中若这个旧条目/旧副本残留在 profile 里,它会重新变成一条客户端清单行;该行的加载失败会被级联成
client-modules: "<插件>" not loaded because dependency "…" failed,把任何仍声明它的插件一起拖死。
干净安装没有这一行,所以不复现。dsh-graph 已删除该声明(即使残留仍在,本插件也不再是它的消费者)。
首选动作:把 dsh-graph 升级到含本修复的版本即可,残留无需处理。 含本修复的版本已不再声明该死引用 ⇒ 无论 profile 里是否还残留旧副本,本插件都不再是它的消费者,也不会被它拖死。下面的自检只是「想确认现状」时的只读排查;清理残留是可选的进阶动作。
自检(全部只读;下述命令已在隔离实例 dsh 0.2.0-rc.2 / 0.1.7-rc.2 上实测):
把 <DSH_HOME> 换成你的 DSH home:web 版默认是 ~/.dsh(也可由 DSH_HOME 环境变量指定);桌面版是另一套路径,请以该壳的配置/日志里显示的 profile 目录为准。
# ① 本插件的声明 —— 期望 3 项,且不含 dsh-client-runtime
node -e 'console.log(JSON.stringify(require(process.argv[1]).dsh.client.inject))' \
"<DSH_HOME>/profiles/web/node_modules/dsh-graph/package.json"
# ② profile 清单里是否还列着它 —— 期望输出 0
# (注意:grep -c 在计数为 0 时退出码是 1,看打印出的数字即可,不要看退出码)
grep -c dsh-client-runtime "<DSH_HOME>/profiles/web/package.json"
# ③ 整个 DSH home 内是否还有名为 dsh-client-runtime 的目录 —— 期望无输出
find "<DSH_HOME>" -type d -name dsh-client-runtime 2>/dev/null
# ④(可选,仅在 Web 版且实例正在运行时)客户端清单里是否还有该行 —— 期望无输出
# 「dsh web」启动行会打印带 token 的 URL,把它原样填进 <URL>
curl -sL -b "" "<URL>" | grep -o '"@deepseek-ai/dsh-client-runtime"' | head -1
隔离实例实测结果(dsh 0.2.0-rc.2):
- ① →
["@deepseek-ai/dsh-client-ui-settings","@deepseek-ai/dsh-client-ui-primitives","@deepseek-ai/dsh-client-ui-sidebar-right"] - ② →
0 - ③ → 无输出
- ④ → 无输出;
curl返回 200、35125 字节(同一命令对清单里确实存在的行名如@deepseek-ai/dsh-client-ui-settings能打印出来) - 命令有效性反证(都不是恒真空跑):在一份确实含该名字的清单文件上 ② 打印
1;在 profile 里放入名为dsh-client-runtime的目录后 ③ 确实打印出该路径(随即移除)
清理(可选,先备份):仅当你确实想清干净、且 ②非 0 或 ③有输出时:先备份 profile,再删除 ③ 打印出的残留目录(并在 ② 命中的清单里去掉对应条目),然后重启宿主 —— 客户端包元数据在激活期缓存,增删客户端插件必须重启才生效。风险提示:在 live profile 上直接删目录/改清单有改坏环境的风险;更稳妥的替代是重装同版本 dsh-graph 或新建一个干净 profile。自行清理前务必留备份,异常时用备份复原。
未验证:无桌面壳环境可用(@deepseek-ai/dsh-desktop 在 npm 为 E404)。上述现象与成因链引用外部报告与宿主源码,
不声称已复现桌面壳症状。
核心特性
- 四阶段生命周期状态机:
引擎严格约束状态迁移:
draft → planning → collecting → ready → in_progress → review → delivered(任何阶段均可标记进入blocked阻塞状态)。 - 判据先于执行(Criteria Before Execution): 在目标派发执行前必须登记明确的质量验收判据,最终评审严格依照逐条判据核验交付物,杜绝模糊交付。
- 结构化上下文卡片:
支持文本(Text)、文件(File)、图片(Image)、数据(Data)等多种上下文类型。经历
empty → collecting → filled → reviewed闭环生命周期,为执行子代理提供精确的上下文种子。 - 二维泳道看板: 横向按生命周期阶段划分列,纵向按排期划分版本(Version)、暂存池(Backlog)与独立目标(Standalone)泳道;支持拖拽排期。
- 目标间关系标记: 目标之间可标记「取代 / 调整 / 补充 / 相关」四类关系(也可解除),关系只记在目标文件(frontmatter)这一处真源;看板卡片显示关系徽标,目标弹窗在「目标描述」下方直接列出关系清单(含跨版本与已归档标注)。
- 流畅跨会话交接(Handoff & Supervisor Claim):
支持生成包含看板投影、长期记忆与关键环境事实的
HANDOFF.md,换会话后新 Supervisor 可幂等认领上下文并快速接管。 - 现代交互与双主题适配:
完整适配深色与浅色双套主题(自动跟随 DSH 全局主题变量);外部数据更新时支持微光动画提醒(支持系统的
prefers-reduced-motion无障碍降级);弹窗拖拽防误关。
Agent 工具速查表
dsh-graph 为 Agent 提供了完善的工具链(共 50 个 graph_* 工具),按功能划分为以下分类:
| 分类 | 工具名称 | 核心说明 |
|---|---|---|
| 目标生命周期 | graph_create_goal |
创建目标(默认放入 Backlog,可指定版本) |
graph_rename_goal |
重命名目标标题 | |
graph_set_description |
设置/更新目标描述正文(Markdown) | |
graph_set_directive |
为下一次 Attempt 注入补充指令与边界要求 | |
graph_set_goal_type |
设置目标类型(feature / bug / task / improvement / patch / chore) | |
graph_set_goal_tags |
设置目标标签列表(最多 20 个,乐观并发) | |
graph_amend_goal |
记录对目标的修订补充,可自动同步至描述 | |
graph_transition |
推进目标状态机迁移(进入 blocked 需附原因) | |
graph_postpone_goal |
暂缓目标,移回 Backlog 并置为 draft | |
graph_archive_goal |
归档已完成或已废弃的目标 | |
graph_unarchive_goal |
从归档中恢复目标 | |
graph_delete_goal |
安全删除已归档的目标 | |
graph_clean_worktree |
清理已验证的 worktree(用户确认后执行) | |
graph_list_worktrees |
查询 Git worktree 清理候选(只读,不自动删除) | |
| 目标关系 | graph_set_relation |
标记/解除目标间关系(取代/调整/补充/相关,可增可删;幂等,拒绝替代环) |
| 质量判据 | graph_set_criteria |
登记目标验收判据(严格在执行前设定) |
| 上下文卡片 | graph_add_card |
创建上下文卡片占位(text / file / image / data) |
graph_bind_collect_card |
绑定收集子代理,卡片状态转为 collecting | |
graph_fill_card |
填充卡片内容并生成看板简要摘要 | |
graph_review_card |
复核卡片内容(filled → reviewed) | |
graph_delete_card |
删除未在收集中的卡片 | |
graph_convert_card_to_shared |
将自有卡转换为共享卡(放入共享池) | |
graph_convert_card_to_owned |
将共享卡收回为自有卡(独占) | |
graph_attach_shared_card |
把共享池既有共享卡挂载到目标(复用已收集上下文,仅 owner/主管) | |
graph_detach_shared_card |
解除目标对共享卡的引用(卡仍留池;collecting 拒绝) | |
graph_list_shared_cards |
只读列出共享池共享卡(id/title/status/refs) | |
| 附件管理 | graph_store_attachment |
存储文件附件到目标 |
graph_delete_attachment |
删除目标附件 | |
| 排期管理 | graph_move_goal |
在 Backlog、独立目标与版本之间移动排期 |
| 执行与返工 | graph_start_attempt |
派发执行 Attempt,启动并绑定可续轮子代理 |
graph_record_attempt_handoff |
记录前序 Attempt 的返工约束与排查基线 | |
graph_unbind_goal_child |
安全解绑目标执行子代理 | |
graph_abandon_attempt |
放弃陈旧或失联的 Attempt | |
| 配置管理 | graph_get_settings |
查询当前 workspace 项目配置及合法枚举元信息 |
graph_update_settings |
结构化更新当前 workspace 项目配置(支持 patch) | |
| 记忆管理 | graph_memory_add |
写入按需/常驻记忆条目 |
graph_memory_recall |
按关键词检索记忆 | |
graph_memory_remove |
删除指定记忆条目 | |
graph_memory_replace |
替换已有记忆条目内容 | |
| 状态汇报 | graph_report_status |
汇报当前 Attempt 进度(看板卡片实时显示) |
graph_report_supervisor_status |
Supervisor 汇报全局工作状态(顶部状态栏动画) | |
| 评审裁决 | graph_resolve_accept |
裁决交付验收(verdict: accept / object) |
| 协作与交接 | graph_add_comment |
向目标追加可追溯的讨论与反馈历史 |
graph_write_results |
人工写入 attempt 完成摘要(source=manual + 写入者标注;无子代理的轻量改动兜底) | |
graph_refresh_results |
重写 results.md:零 LLM 兜底拼装,或采用专用摘要子代理/人工产出的 content(旧版自动归档;支持批量 goals[]) |
|
graph_handoff |
生成跨会话交接文档 HANDOFF.md |
|
graph_claim_supervisor |
新会话接管 Supervisor 并更新会话元数据 | |
graph_help |
输出插件功能说明与 50 个工具速查清单 | |
| 数据与校验 | graph_validate |
执行全量不变式检查(状态、依赖环、卡片引用) |
graph_rebuild |
从事件流完全重建目标状态并与元数据对账 |
浏览器看板说明
内嵌于 DSH Web 界面:
- 二维泳道布局:清晰展现多个版本的推进节奏,支持灵活查看不同泳道和阶段;
- 实时流式更新:卡片与顶部状态栏直观反映 Agent 汇报的最新执行状态;外部文件变更触发动画闪烁;
- 丰富弹窗与抽屉交互:点击卡片可展开目标详情弹窗,查看质量判据、上下文卡片与 Attempt 历史。
侧边栏用法
右侧栏的「看板」与会话页的「看板」页签是同一份实现——同一个看板组件、同一套头部与窄档逻辑,两侧完全一致(零 host 门控),任选其一即可。
- 入口:在会话里打开右侧栏 → 点「看板」磁贴;打开的看板面板会成为右侧栏顶部的一个页签常驻,随时切回。
⋯ 工具:刷新 / 标签筛选 / 记忆 / 项目知识库(共享条目)/ 看板设置 / 已归档。工具条按头部实测宽度装不下自动折叠为这一项(不是写死的窗口断点)。[🏷️]版本管理:角落的方形图标按钮(可访问名称为「🏷️ 版本管理」),点开版本管理抽屉;紧邻其右是同一行等高的创建版本。- 版本选择器:位于泳道行
[+](新建目标)左侧,切换当前显示的泳道(具体版本 / Backlog / 独立目标)。 - 窄档行为(分档依据是看板根容器实测宽度——即看板组件自身元素的
clientWidth,不是窗口宽度、也不是浏览器视口宽度):≥ 480px(宽档):多泳道横向并排,各版本 / Backlog / 独立目标可同时查看;< 480px(单泳道档):阶段列由横向并排改为纵向堆叠,泳道内容由版本选择器决定(具体版本 / Backlog / 独立目标三选一;工作区一个版本都没有时,默认落点就是「独立目标」,选择器当前项显示「独立目标」);该档没有版本折叠开关(收起来等于空板),并同时把工具条强制折叠为「⋯ 工具」、隐藏 DEBUG 行。- 怎么把看板放进
< 480px:宿主页签的宽度由页签布局模式决定,不是拖出来的——实测(1600px 视口)单页签 719px、页签上的分栏之后每页签 359px(该档随窗口宽度变化)、全屏799px。所以默认单页签宽度(719px)落在宽档,此时不会出现单泳道;需要单泳道档时用页签上的分栏,或把窗口收窄到看板面板实测宽度 <480px。进入后一眼可验:六个阶段块纵向堆叠,且泳道标题右侧出现版本选择器(当前项为具体版本 / Backlog / 独立目标)。 - 宽档残留(实测):宽档网格的最小宽度实测约 956px,所以看板面板实测宽度在这之下时(例如默认单页签 719px),宽档网格仍会横向滚动、把「确认 / 批量接受」列推到可视区外;真正消除横向滚动的是单泳道档(<480px)。
- 版本选择器只在单泳道档渲染:宽档下整个看板没有版本选择器(该元素不渲染)。因此宽档里能看到的「全部版本」只可能来自打开的下拉选项列表,而不是当前选中项;单泳道档未显式选择任何视图时,当前项是「独立目标」而不是「全部版本」。
效果截图见仓库 screenshot/sidebar-kanban.png(虚构演示数据 nebula-notes,右侧栏宽度落在 < 480px 单泳道档);本 npm 包不包含仓库的 screenshot/ 目录,故此处只给出仓库路径。
数据存储说明
插件数据保存在当前工作区下的 .dsh-graph/ 目录:
- 自动初始化:首次在工作区运行工具时自动生成数据骨架,不包含多余 Demo 数据;
- Git 友好:所有数据由纯文本 YAML/Markdown 与只追加(append-only)的
events.jsonl组成; - 事件流对账:
events.jsonl记录每一次状态流转与操作,是唯一事实来源,可通过graph_rebuild随时对账; - 多 Worktree 适配:Git Linked Worktrees 自动解析归一到主工作树的同一
.dsh-graph/根目录。
English
Overview
dsh-graph is a goal-oriented kanban plugin for DeepSeek Harness (DSH), bringing Graph-based Goal Management into Agent workflows.
Distributed as a single unified package (npm package name: dsh-graph), it provides both halves out-of-the-box:
- Host Side: Exposes 50
graph_*tools to DSH Agents covering the entire goal lifecycle, along with/api/dsh-graph*REST endpoints for board projections, goal details, and mutations; - Client Side: A browser 2D swimlane kanban board integrated into DSH Web (the
conversation.viewslot) for intuitive visualization and real-time tracking.
All data is stored locally as human-readable files and an append-only event log under .dsh-graph/, making it Git-friendly, easily auditable, and collaborative.
Installation
Install the plugin using the DSH CLI:
dsh plugin --profile <profile-name> add dsh-graph
Current version: v0.19.7. Requirements: Node.js ≥ 22 (includes the precompiled core runtime). Core packages provided by the DSH host (@deepseek-ai/cordis, @deepseek-ai/schemastery, @deepseek-ai/dsh-settings) are declared under peerDependencies with peerDependenciesMeta.optional (standard DSH ecosystem convention) and provided by the host runtime without peer warnings; yaml is retained in dependencies as a plugin-specific runtime dependency, preventing duplicate core package instances.
Host compatibility range: engines.dsh declares >=0.1.5-rc.2 <0.2.1-0 (the -0 upper bound excludes every 0.2.1 prerelease and final release); host-aware markets such as dsh-market read it for card display and install/update pre-flight. Hosts verified: 0.1.6-alpha.2 through 0.1.7-rc.2, and 0.2.0-rc.1; 0.2.0-rc.2 (verified by the maintainer on 2026-09-30). The 0.1.8 line incidentally covered by that range was never published on npm (versions jump straight from 0.1.7-rc.2 to 0.2.0-rc.1), so it is an empty set and adds no unverified claim.
Platform status:
| Platform | Support |
|---|---|
| Linux / WSL2 | ✅ Supported |
| Native Windows | ✅ Supported (verified on native Windows) |
| macOS | ✅ Supported (verified on macOS) |
All three platforms share the same package. Known limitations: (1) APFS, the macOS default, is case-insensitive — entries that differ only by case resolve to the same entity, so do not rely on case alone to distinguish goal ids or version lanes; (2) on macOS a workspace path that is explicitly supplied and contains a symlink (e.g. under /tmp or /var) is rejected with graph root symlink is not allowed; paths derived from process.cwd() are unaffected.
What's new (v0.19.7)
- Plugin text follows the host language: switching the host language updates the plugin's wording on the spot — no reload needed — and after a restart it renders in the host's current language from the start. The cold-boot failure where the browser half of the plugin never activated after a host upgrade is fixed as well.
- File-system operations no longer stumble on Windows: moving a goal between directory and flat layouts no longer fails because a same-named directory was created ahead of time; relative paths recorded on the board now use the platform's separator, so archiving / unarchiving and path validation no longer error out or silently do nothing.
- State and records can no longer disagree: a state change is journalled before it is persisted, so a mid-way failure never leaves "status changed, record missing"; losing a lock race no longer releases someone else's lock, a broken lock recovers on its own instead of stalling forever; goal numbers are never handed out twice after a deletion; unbinding only affects the exact execution you named.
- English mode no longer leaks Chinese: built-in mode snippets, section headings and the empty-description fallback material are all rendered per language, so no Chinese shows up in the UI or in prompts.
- "Success" can no longer be fake: delivering content to a session or re-dispatching a subagent now waits for a receipt — without one you get an honest notice plus a copy fallback; and the repo's own test suite can no longer look all-green while files were skipped, cases were skipped, or the process exited early.
See the CHANGELOG for the full history. Official releases are distributed via npm and the dsh-market ecosystem.
Upgrade-residue self-check and cleanup
Symptom (externally reported):
after upgrading the host, a Web GUI cold start reports web boot: N entry did not activate / <plugin>: failed — the plugin's
host half (graph_* tools) works and hot reload works, but its browser half never activates.
Cause: dsh.client.inject is not a directory listing, it is a load-order edge. The browser-side loader
(@deepseek-ai/dsh-client-modules/lib/client.js:655-658) preloads only those inject names that already exist in the client
manifest, and silently skips the rest. @deepseek-ai/dsh-client-runtime is no longer shipped with the host since dsh 0.2.x
(absent from the install trees of dsh 0.1.5-rc.2 / 0.1.7-rc.2 / 0.2.0-rc.2), yet its package manifest still declares dsh.client.
If an old entry/copy of it survives an upgrade in your profile, it becomes a client manifest row again; that row's load failure
cascades into client-modules: "<plugin>" not loaded because dependency "…" failed, dragging down every plugin that still declares it.
A clean install has no such row, which is why it does not reproduce. dsh-graph has dropped that declaration — even if the
residue is still present, this plugin is no longer one of its consumers.
Preferred action: just upgrade dsh-graph to a build that contains this fix — the residue needs no handling. A fixed build no longer declares the dead name, so whether or not an old copy survives in your profile, this plugin is no longer one of its consumers and can no longer be dragged down by it. The self-check below is only a read-only way to inspect the current state; cleaning up the residue is an optional advanced step.
Self-check (read-only; every command below was measured on isolated instances of dsh 0.2.0-rc.2 / 0.1.7-rc.2):
Replace <DSH_HOME> with your DSH home: for the Web build it defaults to ~/.dsh (or wherever DSH_HOME points); the desktop build
uses a different path — take the profile directory shown in that shell's configuration or logs.
# (1) This plugin's declaration — expect three names, without dsh-client-runtime
node -e 'console.log(JSON.stringify(require(process.argv[1]).dsh.client.inject))' \
"<DSH_HOME>/profiles/web/node_modules/dsh-graph/package.json"
# (2) Does the profile manifest still list it? — expect the number 0
# (note: `grep -c` exits 1 when the count is 0 — read the printed number, not the exit code)
grep -c dsh-client-runtime "<DSH_HOME>/profiles/web/package.json"
# (3) Is there still a directory named dsh-client-runtime anywhere under the DSH home? — expect no output
find "<DSH_HOME>" -type d -name dsh-client-runtime 2>/dev/null
# (4) Optional, Web build with a running instance only: is it still a row in the client manifest? — expect no output
# `dsh web` prints a tokenized URL on startup; paste it verbatim as <URL>
curl -sL -b "" "<URL>" | grep -o '"@deepseek-ai/dsh-client-runtime"' | head -1
Measured on an isolated instance (dsh 0.2.0-rc.2):
- (1) →
["@deepseek-ai/dsh-client-ui-settings","@deepseek-ai/dsh-client-ui-primitives","@deepseek-ai/dsh-client-ui-sidebar-right"] - (2) →
0 - (3) → no output
- (4) → no output, while
curlreturned 200 with 35125 bytes (the same command does print a row name that is present in the manifest, e.g.@deepseek-ai/dsh-client-ui-settings) - Command-sanity counter-checks (neither command is vacuously silent): (2) prints
1on a manifest file that really contains the name, and (3) did print the path after a directory nameddsh-client-runtimewas deliberately placed into the profile (removed again immediately).
Cleanup (optional, back up first): only if you really want a clean slate and (2) is non-zero or (3) has output: back up the profile first, then remove the residue directory printed by (3) (and drop the matching entry from the manifest that (2) flagged), then restart the host — client package metadata is cached at activation time, so adding/removing client plugins only takes effect after a restart. Risk note: deleting directories or editing the manifest of a live profile can break your environment; the safer alternatives are reinstalling the same dsh-graph version or creating a fresh, clean profile. Always keep a backup before doing this yourself, and restore from it if anything misbehaves.
Not verified: no desktop-shell environment is available (@deepseek-ai/dsh-desktop is E404 on npm). The symptom and cause chain above cite the
external report and host source code; this README does not claim the desktop-shell symptom was reproduced.
Key Features
- Four-Phase Lifecycle State Machine:
Enforced by the core engine:
draft → planning → collecting → ready → in_progress → review → delivered(with ablockedescape hatch available at any stage). - Criteria Before Execution: Acceptance criteria must be explicitly defined prior to execution. Deliverables in the review phase are verified strictly against individual criteria, preventing ambiguous delivery.
- Context Cards:
Supports Text, File, Image, and Data cards. Follows a structured lifecycle (
empty → collecting → filled → reviewed) to seed precise task context for execution subagents. - 2D Swimlane Board: Columns represent lifecycle stages, while horizontal swimlanes organize goals by Version, Backlog, and Standalone categories, complete with drag-and-drop scheduling.
- Relations Between Goals: Goals can be linked with four relation kinds — supersedes / amends / extends / related — and unlinked again; relations live in exactly one source of truth (the goal's frontmatter). Cards show relation badges, and the goal dialog lists the full inventory under "Goal description" (cross-version and archived peers flagged).
- Seamless Session Handoff:
Generate
HANDOFF.mdsummarizing board projections, long-term memory, and environment facts. A new session can claim the Supervisor role idempotently viagraph_claim_supervisor. - Modern UI & Dual-Theme Support:
Full Dark and Light theme adaptation following DSH variables. Subtle pulse animations highlight external updates (with
prefers-reduced-motionaccessibility support); drag-safe modal text selection.
Agent Tools Reference
dsh-graph equips Agents with a comprehensive set of graph_* tools (50 in total):
| Category | Tool | Description |
|---|---|---|
| Goal Lifecycle | graph_create_goal |
Create a goal (defaults to Backlog, optional Version) |
graph_rename_goal |
Rename goal title | |
graph_set_description |
Set/update goal description body (Markdown) | |
graph_set_directive |
Inject instructions and boundaries for the upcoming attempt | |
graph_set_goal_type |
Set goal type (feature / bug / task / improvement / patch / chore) | |
graph_set_goal_tags |
Set goal tags (max 20, optimistic concurrency) | |
graph_amend_goal |
Record amendments, optionally appending to description | |
graph_transition |
Advance goal through lifecycle states (reason required for blocked) | |
graph_postpone_goal |
Postpone goal back to Backlog as draft | |
graph_archive_goal |
Archive completed or obsolete goals | |
graph_unarchive_goal |
Restore goals from archive | |
graph_delete_goal |
Safely delete an archived goal | |
graph_clean_worktree |
Clean up a verified worktree (requires user confirmation) | |
graph_list_worktrees |
Query Git worktree cleanup candidates (read-only, no auto-delete) | |
| Goal Relations | graph_set_relation |
Mark or unmark a relation between goals (supersedes / amends / extends / related; idempotent, rejects supersede cycles) |
| Quality Criteria | graph_set_criteria |
Define quality criteria (required prior to execution) |
| Context Cards | graph_add_card |
Create a context card placeholder (text / file / image / data) |
graph_bind_collect_card |
Bind collection subagent; marks card status as collecting | |
graph_fill_card |
Populate card content with a concise board summary | |
graph_review_card |
Review card content (filled → reviewed) | |
graph_delete_card |
Delete cards not currently collecting | |
graph_convert_card_to_shared |
Convert owned card to shared card | |
graph_convert_card_to_owned |
Convert shared card back to owned card | |
graph_attach_shared_card |
Attach an existing shared card to a goal (reuse collected context; owner/supervisor only) | |
graph_detach_shared_card |
Remove a goal's reference to a shared card (card stays in the pool; rejected while collecting) | |
graph_list_shared_cards |
List shared pool cards read-only (id/title/status/refs) | |
| Attachments | graph_store_attachment |
Store file attachments to a goal |
graph_delete_attachment |
Delete a goal attachment | |
| Scheduling | graph_move_goal |
Move goals between Backlog, Standalone, and Versions |
| Execution & Rework | graph_start_attempt |
Dispatch an execution attempt and spawn a continuable subagent |
graph_record_attempt_handoff |
Record rework constraints, failure notes, and baseline | |
graph_unbind_goal_child |
Safely detach an execution subagent from a goal | |
graph_abandon_attempt |
Abandon a stale or lost attempt | |
| Configuration | graph_get_settings |
Query workspace project configuration and enum metadata |
graph_update_settings |
Update workspace project configuration (supports partial patch) | |
| Memory | graph_memory_add |
Write on-demand / standing memory entries |
graph_memory_recall |
Recall memory entries by keyword search | |
graph_memory_remove |
Remove a specific memory entry | |
graph_memory_replace |
Replace an existing memory entry's content | |
| Status Reporting | graph_report_status |
Report progress of current attempt (live card display) |
graph_report_supervisor_status |
Report supervisor status (top status bar animation) | |
| Review & Verdict | graph_resolve_accept |
Accept or object to delivered attempts |
| Collaboration | graph_add_comment |
Append historical discussion or human feedback |
graph_write_results |
Manually write an attempt completion summary (source=manual + writer annotation; fallback for subagent-less changes) | |
graph_refresh_results |
Regenerate results.md: zero-LLM fallback assembly, or a caller-supplied content body from the dedicated summarizer subagent / a human (previous version archived; supports a goals[] batch) |
|
graph_handoff |
Export cross-session handover document (HANDOFF.md) |
|
graph_claim_supervisor |
Claim supervisor role in new session & update metadata | |
graph_help |
Display usage instructions and the 50-tool checklist | |
| Validation | graph_validate |
Validate full invariants (states, cycles, card refs) |
graph_rebuild |
Rebuild goal state from events.jsonl and reconcile |
Browser Kanban UI
Embedded directly within the DSH Web console:
- 2D Swimlane Layout: View the progress of multiple versions and categories simultaneously;
- Live Streaming Updates: Cards and the top status bar stream real-time execution updates; external file edits trigger visual highlights;
- Interactive Modals & Drawers: Click cards to inspect quality criteria, context cards, attempt histories, and detailed instructions.
Sidebar Usage
The sidebar's "Kanban" tile and the conversation page's "Kanban" tab are the same implementation — the same board component and the same header / narrow-width logic, fully identical on both sides (zero host gating). Either entry point works.
- Entry: open the right sidebar in a session → click the "Kanban" tile; the opened board then stays as a persistent tab at the top of the sidebar, one click away.
⋯ Tools: Refresh / Tag filter / Memory / Project Knowledge Base (shared entries) / Board settings / Archived. The toolbar collapses into this single item automatically when it does not fit the measured header width (not a hard-coded viewport breakpoint).[🏷️]Version Management: the square icon button in the corner (accessible name "🏷️ Version Management") opens the version-management drawer; immediately to its right sitsCreate Version, same row and equal height.- Version selector: sits to the left of the lane-row
[+](new goal) and switches the lane currently shown (a specific version / Backlog / Standalone). - Narrow-width behaviour (tiered by the measured width of the board's root container — the board element's own
clientWidth, not the window width and not the browser viewport width):≥ 480px(wide tier): multiple swimlanes side by side, so versions / Backlog / Standalone are all visible at once;< 480px(single-lane tier): stage columns switch from side-by-side to vertically stacked, and the lane shown is chosen by the version selector (exactly one of a specific version / Backlog / Standalone; when the workspace has no versions at all, the default landing lane is "Standalone", and the selector's current item reads "Standalone"); this tier has no per-lane collapse toggle (collapsing would leave an empty board), and it also forces the toolbar into⋯ Toolsand hides the DEBUG line.- How to get the board into
< 480px: the host tab's width comes from the tab layout mode, not from dragging — measured at a 1600px viewport: single tab 719px, 359px per tab after the tab'sSplitmode (this mode scales with the window width), 799px inFullscreen. So the default single-tab width (719px) lands in the wide tier and no single lane appears; use the tab'sSplitmode, or narrow the window until the board panel measures <480px. Once there, it is obvious: the six stage blocks are stacked vertically and the version selector appears next to the lane title (current item: a specific version / Backlog / Standalone). - Residual in the wide tier (measured): the wide-tier grid's minimum width is about 956px, so whenever the board panel measures less than that (e.g. the default single tab at 719px) the wide grid still scrolls horizontally and pushes the confirm / bulk-accept column out of view; the tier that actually removes horizontal scrolling is the single-lane one (<480px).
- The version selector is rendered only in the single-lane tier: in the wide tier the board has no version selector at all. So an "All versions" string seen in the wide tier can only come from an opened dropdown option list, never from the current selection; and in the single-lane tier, before any explicit view choice, the current item is "Standalone" — not "All versions".
See screenshot/sidebar-kanban.png in the repository for a screenshot (fictional demo data nebula-notes, sidebar width in the < 480px single-lane tier); this npm package does not ship the repository's screenshot/ directory, so only the repository path is given here.
Data Storage
All data resides in .dsh-graph/ within your workspace:
- Zero-Config Auto-Init: Generates directory structure automatically upon first tool call without dummy demo data;
- Git Friendly: Managed as plain YAML/Markdown files and an append-only
events.jsonlevent log; - Auditability:
events.jsonlserves as the authoritative single source of truth, reconcilable at any time viagraph_rebuild; - Multi-Worktree Support: Git Linked Worktrees automatically resolve to the canonical graph root in the primary worktree.
License
链接
同类插件
Q00/ouroboros#integrations/dsh-plugin★ 6194
通过 DSH MCP 客户端挂载 Ouroboros 的纯配置包,在 DSH 中提供 36 个涵盖需求访谈、Seed、执行、评估与演化流程的工具。
loopx-project/loopx#dsh-loopx-plugin★ 6188
LoopX——面向长周期 Agent 的提供商中立、本地优先状态内核与控制平面:在 DeepSeek Harness 执行层之上持久化 Goal、Todo、门禁、证据、配额、恢复与交接状态;插件负责引导安装 CLI 与技能、准入有界的同会话续跑,并为精确绑定的工作循环提供本地 GoalBar。
chuspeeism/dashi-taskboard#deepseek-harness★ 3299
把当前已安装并运行中的 Codex Taskboard 嵌入 DeepSeek Harness 侧边栏,并通过 Launcher 运行时描述文件连接,而不是使用固定端口。
NanmiCoder/dsh-agent-teams★ 1959
AgentTeams 多智能体团队。
EthanYoQ/AI-Novel-Writer#dsh-ai-novel-writer★ 1347
安装专用 AI 小说创作预设与工作台:提供带修订号的本地项目资产、紧凑侧边工作台,以及需要原生审批的逐文件变更。
tong-io/tongflow#dsh-tongflow★ 1041
基于 TongFlow 的“片场”插件,用于图片、配音、音乐与视频制作:agent 为每个资产生成 TongFlow 工作流文件(.tongflow.json)并通过 TongFlow 插件执行,内嵌工作流画布,按镜头/角色/take 组织项目,附漫剧模板;以 @tongflow 开头的会话进入 Studio 界面。
社区评论
评论公开保存在 GitHub Discussions。加载评论会连接 GitHub 和 Giscus;发表内容需要 GitHub 账号。