dsh-todo-freshness: Displaying the True State of Task Cards

Preface

DSH’s (DeepSeek Harness) task card (“Task 1 in progress · 5 pending”) is merely a snapshot of the last todo_write call. When the model finishes its work and directly outputs the final response, that step involves no tool call, so there’s no further opportunity to write back—leaving the panel stuck on the stale state. This plugin doesn’t modify data on the model’s behalf; instead, it flags “this checklist is outdated” and nudges the model to update it itself.

What It Is

dsh-todo-freshness is a DSH workflow plugin developed by xiaomengxinbb. It monitors the freshness of the task checklist through two components:

  • Host (index.js): Registers a session projection todoFreshness that folds from existing events: when the checklist was last written, how many tool calls have run since, how many of those actually modified files, how many items remain unresolved, and whether the current turn has ended. It hooks a suggestion into tools/post-execute: when unfinished items remain and the default threshold of 6 and 14 consecutive tool calls has been reached since the last write-back, it injects a reminder into the next step, requiring the model to rewrite the entire checklist with the true state.
  • Client (client.js): Registers a hint bar at order 1 in conversation.input.dock, visible only in two cases: stale (unfinished items remain, but more than the threshold number of consecutive tool calls have passed without a write-back) or closedWithUnfinished (the turn has ended, yet unfinished items persist on the checklist). The hint bar only reports measured facts and does not appear when the checklist is being updated normally.

Two Approaches to “Fixing”

This plugin chose honest labeling + nudging the model to write back, rather than blanket-marking all leftover items as completed at the end of a turn. The latter would keep the panel perpetually clean but would display unfinished work as completed—effectively falsifying results. The former may still show items as unfinished, but what it displays is the truth. When the checklist is “out of sync,” you see a verifiable gap (written minutes ago, with N file modifications since), rather than a fake in-progress status.

Installation

Desktop installation requires the “Plugins” interface, or instructing the agent in a session to use plugin_manager’s install_bundle with the specified directory:

plugin_manager.install_bundle("github:xiaomengxinbb/dsh-todo-freshness")

Enable after installation, then refresh the page.

Configuration

Add the plugin configuration in cordis.patch.yml:

- insert:
    - id: todo-freshness
      name: dsh-todo-freshness
      config:
        staleCalls: 10
        nudge: false
Field Default Meaning
staleCalls 6 Number of consecutive tool calls without a todo_write before the checklist is considered stale. If long tasks trigger too many prompts, increase it, e.g. to 15
nudgeAt Follows staleCalls At which call number(s) to inject the reminder; multiple values allowed. Default is [staleCalls, staleCalls * 2 + 2], i.e. [6, 14] when threshold is 6
nudge true Whether to inject mid-turn reminders. When disabled, only the Client-side label remains; no model request is generated

Every entry in staleCalls and nudgeAt must be an integer ≥ 1 (string values like "10" are also accepted). Invalid values fall back to defaults, and a warning is logged in the plugin log indicating which field was ignored.

Usage Scenarios & Notes

  • Reminders are suggestions only. The model may ignore them, in which case the panel stays on the stale state—the plugin does not make that decision for it.
  • Thresholds are heuristics. The default of 6 calls is based on the assumption that “one tool call roughly advances one sub-task.” Adjust staleCalls if your task granularity differs.
  • Triggering is based on total tool calls, while the hint bar references file modification counts. Reading files or running shell commands also count as calls but don’t modify code, so during consecutive command execution phases, the count reaches the threshold before actual progress does—increasing staleCalls provides headroom for such phases.
  • The projection key todoFreshness is private to this plugin; after uninstallation, it disappears from session state without affecting the built-in todos.

Value

This plugin addresses the issue of DSH task cards potentially displaying outdated snapshots. Through objective counting and reminders, it lets users clearly see which tasks remain incomplete, rather than encountering a misleading “completed” state. It does not make decisions on the model’s behalf—it simply presents the facts and lets the model decide when to update the task checklist.

  • Plugin directory: https://www.skillhub.cn/plugins/xiaomengxinbb/dsh-todo-freshness
  • Source code: https://github.com/xiaomengxinbb/dsh-todo-freshness
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye