Preface¶
When executing complex tasks, the DeepSeek Harness (DSH) model often needs to switch back and forth between “writing a plan” and “confirming completion.” The built-in todo_write conflates these two actions into a single call: the model both records the plan and declares things done, making it impossible to distinguish between “finished the work” and “wants to cross it off the list.” After collapsing, the model no longer even has the table in hand and must rely on memory to move forward.
dsh-plan-steps splits “writing a plan” and “signing off” into two independent tools: plan_write records a two-level plan, and complete_step signs off items one by one with the host advancing the list. The design draws on Reasonix semantics but is rewritten from scratch for DSH’s event and slot model—it is not a port. The plugin also takes over the task panel above the input box, displaying the current item and “Completed N / M” in real time.
Introduction¶
dsh-plan-steps is a workflow plugin maintained by GrounzerLiu, now archived (2026-11-24). It provides Reasonix-style plan steps for DeepSeek Harness: two-level planning, a single sign-off path, and a live panel. The plugin is archived; new features are covered by DeepSeek Harness’s built-in timeline plugin. The dsh-plan-steps package on npm remains installable but is no longer maintained.
Core Features¶
Two-Level Planning¶
plan_write records a two-level plan: level 0 represents phases, level 1 represents sub-steps within each phase. Each item can carry a stable step_id, and the entire table has exactly one current item at a time. Rewrites enforce continuity validation: existing ids must not be dropped, the current item must not be deleted or demoted, completed items keep their position; once all items in the previous plan are completed, a new plan can be written directly.
Sign-off Advancement¶
complete_step signs off the current in_progress item, the host advances the list and writes a todo/write snapshot (the panel updates accordingly), then tells you the next step. A phase can only be signed off after all its sub-steps are completed.
Sequential, depth-first progression: sub-steps within a phase are worked through in list order; while sub-steps are being executed the phase remains pending, and only after all sub-steps are done does the phase become the current item (the phase is signed off last); once the phase is signed off, the first sub-step of the next phase becomes active.
Guards and Steering Back¶
Guards reject attempts to mark open items as completed via plan_write / todo_write directly. When the list still has open items at the end of a turn, the turn is steered back using agent.steer() to pull that turn back—at most once per turn.
wait_for_user declares “waiting for the user,” and that turn will not be steered back.
Abandonment and Unlocking¶
abandon_plan abandons the current plan: the list is cleared, the panel disappears, and reason is required and persisted in the session log. This is the only write path that bypasses rewrite continuity validation.
unlock_plan releases a timeout lock: it records “why the sign-off was not performed” and re-enables the tools, without marking anything complete or modifying the list. The lock is off by default.
Panel and Context Recall¶
The panel takes over the task panel above the input box, showing the current item’s name + “Completed N / M” + a segmented progress bar, with an expandable two-level indented list. Each complete_step also carries the same positional information.
Context recall: when the current list is not in the visible window, a “Host task state” block is injected into the request.
Installation and Activation¶
Local directory installation, no build step, no runtime dependencies:
# UI: Plugins > Add Plugin > select this directory
# Or via the management tool:
# install_bundle(target: "D:/dsh-plugins/dsh-plan-steps")
Install from GitHub:
dsh plugin --profile desktop add github:GrounzerLiu/dsh-plan-steps
# Then add dsh-plan-steps to the profile's dsh.profile.bundles
The bundle inserts a line include:plan-steps and registers the five tools plan_write, complete_step, wait_for_user, abandon_plan, and unlock_plan into the model’s tool set.
The client half requires a tarball / git installation. After installing, refresh the page once so the client module enters the startup graph.
Configuration¶
Five toggles live on the plugin’s own settings page: find the plan-steps row in the Plugin Manager, click “Configure” on the right to enter the page, and check/uncheck directly.
| Toggle | Default | Effect |
|---|---|---|
| Reject un-signed completions | On | When off, plan_write / todo_write can mark items as completed on their own |
| Steer back a turn when list is open | On | When off, no steering at end of turn; the turn can end even with open items |
| Rebuild panel snapshot each turn | On | When off, after turn/start the panel waits for the model to write once before restoring |
| Nudge when plan is stale | On | When several consecutive steps have not touched the plan and items remain incomplete, inject a “remember to progress” hint into the request |
| Nudge threshold (steps) | 20 | The step count for the above; also the minimum interval between nudges |
The same fields can also be written under that row’s config in the profile’s cordis.patch.yml as deployment defaults; values on the plugin page take precedence. Toggling a switch off does not affect tool registration.
Timeout Lock (Off by Default)¶
When the plan has not been touched for several consecutive steps and items remain incomplete, the plugin by default only injects a nudge. Enabling “Timeout lock tools” on the settings page changes behavior at the same threshold to a hard lock:
8 steps without touching the plan → lock → only this plugin's five tools are allowed (plus PTC's `run_code` channel)
All other tools are rejected; the rejection message states the current item, the number of incomplete items, and all available exits. Any of the five tools executing successfully unlocks and resets the counter:
complete_step: work is done, sign offwait_for_user: blocked on the user, hand the turn backplan_write: the list is wrong, rewrite it for review (a verbatim rewrite with no content change does not unlock)abandon_plan: the list is voidedunlock_plan: cannot account for it, write down the reason
Failed calls (signing the wrong item, rejected by continuity validation) do not unlock.
Use Cases and Caveats¶
Suitable for scenarios that require explicit task phases and sub-steps, and where “writing a plan” and “confirming completion” should be presented separately.
The plugin runs with the current dsh process permissions. Review the source code and license (MIT) before installing.
In Summary¶
dsh-plan-steps provides Reasonix-style two-level planning and a sign-off path, splitting plan recording and completion sign-off into independent tools and guards. It suits workflows that need structured task progression. The plugin is archived; new features are covered by DeepSeek Harness’s built-in capabilities.
- Directory page: https://www.skillhub.cn/plugins/GrounzerLiu/dsh-plan-steps
- GitHub: https://github.com/GrounzerLiu/dsh-plan-steps