Introduction¶
In DeepSeek Harness (DSH), when handling long tasks that span multiple rounds and sessions, a common practice is to rely on conversation memory or maintain separate to-do lists. Opening a new session in the same workspace often requires re-aligning “where we are, what is missing, and what to do next.” Progress often stalls at a subjective percentage, lacking verifiable acceptance criteria and evidence.
dsh-questtree (repository dylan9707/dsh-questtree) is a workflow-class DSH plugin released by maintainer dylan9707. It maintains a long task as a project tree with goals, milestones, tasks, verification items, evidence, and “next steps,” shared at the workspace level; each session only records its own “where you are.” The plugin’s description in the skillhub directory is “quest tree plugin for dsh”. The DSH ecosystem follows the “everything is a plugin” philosophy; the community directory site has no official affiliation with DeepSeek or HF, and it is advisable to check the source code and MIT license before installing.
What is it¶
dsh-questtree maintains a shared project tree for each workspace, registers a set of quest_tree_* tools to the shared tools table, and injects usage instructions into the global system prompt. The right sidebar provides a native React panel supporting three views: tree, board, and briefing; verification progress, evidence gaps, blockers, and critical paths can be viewed on the first screen, and files in implementation records can be clicked to jump to file:line.
The task tree is used for the visualization of planning and progress, not the authoritative source of truth for code repositories; actual code changes should still be based on the real repository.
Core Capabilities¶
The following summarizes the “What it can do” table in the README; these are the plugin’s self-reported capabilities.
Project-level Sharing and Handoff¶
The same workspace shares a single tree; a new session can open and restore previous progress and evidence gaps without each session recording its own. quest_tree_handoff can generate a handoff briefing (goals, progress, current branch, remaining verifications, evidence gaps, next steps, pending issues). quest_tree_set_current only moves this session’s “where you are” without affecting other sessions.
Verification Contract and Completion Rules¶
Each task can have doneWhen (verification items) and verify (verification command); the panel shows “Verification x/y” instead of just a percentage. Status semantics: decided means finalized, implemented means code is written and pending verification, user-level verification corresponds to closed. closed requires evidence covering all verification items and passing review; implemented cannot be equated with completed.
Review Gate: implemented → quest_tree_review (pass / needs_revision) → then closed; needs_revision reverts to in-progress. Nodes can set owner to bind a responsible person; the panel and board display @Responsible.
Progress, Next Steps, and WIP Limits¶
Progress is calculated by node weight; the top bar fixedly displays counts for decided, in-progress, pending-verification, blocked, and closed. The ready set is calculated from nodes whose dependencies are ready and ancestors are not closed; the bottom of the panel fixedly shows “Next Steps,” facilitating agent alignment of focus at the start of each round. At most 2 in_progress (including milestones but excluding root); exceeding this will be rejected, requiring first finishing or using force.
Evidence, File Direct Links, and Events¶
quest_tree_evidence can add evidence such as tests, commands, diffs, files, reviews, and manual notes; covers specifies which verification items are covered; when coverage is complete and reviewed, close: true can be used to automatically close. Nodes files: [{path, line, endLine}] support direct links in implementation records to open the sidebar file and jump to the line. State migration is an append-only event log; rework (implemented/closed → decided) will be counted.
Drifting and Parking¶
Temporary branches can be parked into parked nodes via quest_tree_park, not occupying next and progress, avoiding frequent interruptions to the main line.
Tool Overview¶
The plugin registers 12 tools; common entry points are listed below (full list in GitHub README “Tools” table):
| Tool | Action (Summary) |
|---|---|
quest_tree_create |
Create new project tree (mainline root + goal) |
quest_tree_plan |
Unfold the entire tree at once, batch create branches with verification and dependencies |
quest_tree_create_node / quest_tree_update_node |
Append or update node |
quest_tree_evidence / quest_tree_review |
Evidence and review |
quest_tree_read |
Read entire tree, metrics, next steps, blockers, briefing |
quest_tree_handoff |
Generate handoff Markdown |
quest_tree_park |
Park temporary ideas |
quest_tree_set_current |
Move this session’s “where you are” |
quest_tree_move_node / quest_tree_delete_node |
Move or delete node (root cannot be deleted) |
Installation and Configuration¶
Installation¶
Installation commands follow the README (after npm release):
# npm (after release)
dsh plugin --profile <name> add dsh-questtree
# Local path
dsh plugin --profile <name> add <path-to-dsh-questtree>
package.json requires Node >=18, DSH >=0.2.2-rc.1. The plugin runs with the current DSH process permissions; check the source code and license (MIT) before installing.
Configuration Items¶
Can be configured in profile:
- id: quest-tree
name: 'dsh-questtree'
config:
stateRoot: '' # Project tree root directory; empty = <workspace>/.quest-tree
stateDir: .quest-tree # Directory name within workspace (also migration source)
stateFile: quest.json # Old single-file tree name (for migration)
promptSectionOrder: 118 # Order of usage instructions in system prompt
Data Storage¶
- Project Tree:
<workspace>/.quest-tree/project.json(can point to a fixed directory ifstateRootis not empty). - This session “where you are”:
<workspace>/.quest-tree/sessions/<sessionId>.json(only storescurrentNodeId). - Plugin supports read-only migration from old global session trees,
quest.json, etc. (migrated on first write). Event log retains max 400 records.
No coordinated concurrent writes across DSH processes; atomic writes and file locks ensure consistency within a single process.
Typical Usage¶
Starting with Natural Language¶
Intent can be described directly in the conversation, for example:
Build a project tree for "Refactor Login Retry", make all tasks have verification items, and then start working
The agent will typically use quest_tree_plan to unfold the tasks (with doneWhen / verify) first, then update status while working.
Call Sequence for Completing a Task¶
Reproducible example given in README:
quest_tree_update_node { node_id: "P2", status: "implemented", owner: "reviewer-a",
files: [{ path: "src/login/retry.ts", line: 40, endLine: 88 }],
implementation: "Changed retry.ts:40-88; exponential backoff; npm test passed" }
quest_tree_evidence { node_id: "P2", kind: "test", ref: "npm test -> 42 passed", covers: ["*"] }
quest_tree_review { node_id: "P2", verdict: "pass", note: "Checked 3 verification items one by one, evidence and diff match" }
quest_tree_evidence { node_id: "P2", covers: ["*"], close: true }
Rule Points:
- Before marking
implemented, at leastfilesorlinksmust point to actual changes (force: truecan skip, will recordforced). - Before
closed, everydoneWhenmust be covered by evidence;coverscan use verification item text, number, or"*". - Before
closed, there must be apassfromquest_tree_review. - When closing a node with no verification items, at least one piece of evidence is required.
If a user message is like a new branch, you can quest_tree_park first then decide if to switch the main line.
Right Sidebar¶
The “Task Tree” tab (native React, not iframe) provides a tree (default, searchable and collapsible), board (columns by status), and briefing (Markdown copyable). Node details include decision, implementation preview, review, verification checklist, evidence, changed files, and dependencies; changed files chip is clickable, similar navigation to built-in code review panel (dsh-resource://file/...).
Applicable Scenarios and Boundaries¶
More Suitable: Multi-round agent collaboration, long-cycle development or refactoring requiring verification items and evidence gates; teams or individuals needing to share a project map across multiple sessions in the same workspace.
Note to consider:
- Task tree does not replace design documents or source code;
decision/implementationare for human reading, source code takes precedence in case of conflict. - Root node (mainline) cannot be moved or deleted.
- To develop the plugin itself, run
npm run checkto loadlib/index.jsfor self-check; after modifyinglib/index.jsorlib/client.js, DSH needs to be restarted.
Conclusion¶
dsh-questtree pulls long tasks from “vague progress in conversation” into a workflow map with verification, evidence, review gates, and next steps, connecting with the DSH toolchain and sidebar panel. For further understanding, check the directory page skillhub: dsh-questtree and the GitHub repository dylan9707/dsh-questtree.