DeepSeek Harness Hub
← 返回列表

待办新鲜度守卫lamost423/dsh-todo-freshness-guard

DeepSeek Harnessspec-screened在 GitHub 查看 ↗
未验证

提醒并拦截过期待办,让长任务进度始终可信

尚未跑自动兼容性验证,可查看页面内的依赖与入口分析。 · 最近上游提交 2026/8/15 · 已提供中文文档

防止过时 todo_write 状态的树外 DeepSeek Harness 防护

综合分
27.5
GitHub 分
27.5
用户评分
★ Stars
1
周下载量
安装插件(需先安装 dsh CLI 引擎:npm install -g @deepseek-ai/dsh)
dsh plugin --profile web add lamost423/dsh-todo-freshness-guard
该插件未发布到 npm,走 GitHub 源安装(pnpm 若拦截 prepare 脚本,按其提示在 pnpm-workspace.yaml 的 allowBuilds 中放行后重跑)
数据截至 2026/9/16(元数据每日更新 · 实装验证按队列轮转,单条结论的验证时间见上方)
依赖的 DSH / Cordis 模块
@deepseek-ai/schemastery@deepseek-ai/cordis@deepseek-ai/cordis-plugin-include@deepseek-ai/cordis-plugin-loader@deepseek-ai/dsh@deepseek-ai/dsh-agent@deepseek-ai/dsh-agent-loop@deepseek-ai/dsh-agent-loop-testkit@deepseek-ai/dsh-code-runtime@deepseek-ai/dsh-invariants@deepseek-ai/dsh-llm@deepseek-ai/dsh-session
用户评分
还没有人投票,来当第一个
订阅周报,不错过优质插件更新
每周一封 · 高评分插件 + 新用户活动

README

DSH Todo Freshness Guard|DSH 待办新鲜度守卫

解决的问题:Agent 在长任务中可能持续调用工具,却不更新未完成的 todo_write 列表,导致用户看到的计划与真实执行状态脱节。

最痛的问题:Agent 明明还在运行,用户看到的却是过期状态——已完成事项仍显示未完成,新阻塞没有记录,下一步也无法判断。任务越长,进度越不可信。

如何解决:这是一个仓库外的 DeepSeek Harness Guard。它先提醒模型重新同步完整 Todo 列表;列表继续过期时,再阻止普通工具调用。todo_write 与外层 run_code 恢复通道始终可用。

Problem it solves: During long agent turns, the model may keep calling tools without updating its unfinished todo_write list. The visible plan then stops matching the work actually being done.

Most painful failure: The agent is still active, but the user is looking at stale status—completed work still appears pending, new blockers are missing, and the next step is unclear. This removes progress visibility exactly when a long task needs it most.

DSH 待办新鲜度守卫让长任务进度始终可见

行为

一次成功的 todo_write 包含未完成事项后,Guard 会按 Session 统计非记账类工具调用:

- 达到 reminderAfterCalls 时,向模型注入一次提醒,要求重新同步完整 Todo 列表。
- 超过 blockAfterCalls 后,拒绝普通工具,直到新的完整 todo_write 替换旧列表。
- 原生调用与 Code Mode SDK 子调用共用计数器。
- todo_write 始终可用。
- 外层 run_code 始终可用,保证 Code Mode 能调用 todo_write。
- Todo 列表为空或全部完成时,约束自动关闭。

本插件修复的是 todo_write 状态长期不更新的问题,不会替换或修改文件系统 Write 工具。

兼容范围

- DeepSeek Harness:0.1.0-rc.6
- Node.js:^22.19.0 || >=24.0.0
- 当前状态:社区预览版

安装

先安装兼容版本的 DSH CLI,再把 Release 压缩包添加到需要启用 Guard 的 Profile:

npm install --global @deepseek-ai/dsh@0.1.0-rc.6
dsh plugin --profile web add https://github.com/lamost423/dsh-todo-freshness-guard/releases/download/v0.1.1/dsh-todo-freshness-guard-0.1.1.tgz
dsh web

也可以从工作副本安装:

git clone https://github.com/lamost423/dsh-todo-freshness-guard.git
cd dsh-todo-freshness-guard
corepack enable
pnpm install --frozen-lockfile
pnpm build
dsh plugin --profile web add .
dsh web

插件默认贡献以下 Patch:

- insert:
- id: todo-freshness-guard
name: dsh-todo-freshness-guard
config:
reminderAfterCalls: 5
blockAfterCalls: 8

后加载的 Profile 或命令行 Patch 可以覆盖这一行配置。两个参数都必须是正整数,且 blockAfterCalls 必须大于 reminderAfterCalls。

移除插件:

dsh plugin --profile web remove dsh-todo-freshness-guard

验证

pnpm check
pnpm pack --pack-destination /tmp

测试覆盖原生模式、Code Mode、并发重置、Loader 组合、发布压缩包 Bundle 契约,以及通过官方 DSH 0.1.0-rc.6 完成真实 Web 启动。

许可证

MIT。衍生部分继续遵守 DeepSeek Harness 许可证,详见 NOTICE。

上游仓库有新提交时邮件通知你(每天最多一封,无更新不打扰),随时一键退订。

同作者(lamost423)的其他插件

💬 加入 DPharness 群聊

插件用法、部署报错、新插件第一时间同步——群里问,比一个人翻文档快。

点击加入 QQ 群
DPharness 群聊二维码,手机 QQ 扫码进群
扫码进群