Preface¶
When working on multi-turn tasks in DSH, common issues include scattered progress within conversations, workspace root directories cluttered with temporary files, and difficulty resuming after switching sessions. Some rely on manually creating directories and writing Markdown to track progress; others initialize git in the project root, mixing it with the main repository. The following introduces dsh-task-workspace (GitHub: Zilong6666/dsh-task-workspace) released by maintainer Zilong6666. It encodes a set of practical conventions into DSH: one task folder per session, a single PROGRESS.md per task that is entirely overwritten and updated, and separate git init within the task directory when the task grows long.
What is this¶
dsh-task-workspace is a bundle plugin for DSH (package version 0.3.0, MIT license), categorized under workflow. Through the prompt segment task-workspace, the skill task-workspace-convention, and a set of tools and CLI, it maintains consistency for “one folder per task, one progress file, and per-task git when necessary” within a single workspace. Community directory page: https://www.skillhub.cn/plugins/Zilong6666/dsh-task-workspace.
Core Features¶
How Conventions Map to the Disk¶
The typical workspace structure is as follows (excerpt from the official README):
<workspace>/
├── .dsh-tasks.json # Task index, updated on write
├── Competitor-Research-20261002/
│ ├── PROGRESS.md # The sole progress file for this task
│ ├── .dsh-session.json # Records which session owns this folder
│ ├── .git/ # Exists only when the task grows long
│ └── data/…
└── etl-refactor-20261003/
└── PROGRESS.md
A single session can own at most one task folder; calling task_new again will reuse the existing directory (reused: true) without creating a second folder under the same session. PROGRESS.md has six fixed sections: Goal, Status, Current Progress, Next Steps, Deliverables, and Change Log.
Tools List¶
| Component | Function |
|---|---|
task_new |
Creates <workspace>/<name>-<YYYYMMDD>/PROGRESS.md, optionally git init |
task_progress |
Overwrites and updates progress-related sections; appends a line to the change log |
task_git |
Initializes git within the task directory and commits, or performs subsequent commits |
task_list |
Lists existing task folders and their status in the current workspace |
task_tidy |
Categorizes top-level entries, rewrites the workspace index, and optionally cleans provably deletable junk (default is dry run) |
CLI dsh-task |
Performs the same logic as above without going through the model |
Overwrite and Compression in task_progress¶
task_progress overwrites the “Current Progress” section rather than appending to the end of the file. When the summary is too long (approximately over 18 lines), it automatically compresses it into a “Progress History (Compressed Summary)” block and preserves a collapsible archive to prevent the file from becoming unreadable. If the task directory already has a git repository, it commits after updating by default (can be skipped via commit: false or configuring autoCommit: false). Passing all empty parameters will result in an error to avoid meaningless file touches.
When to Initialize Git in the Task Directory¶
The explicit trigger conditions given in the convention (satisfying any one is sufficient): estimated to exceed about 3 turns, requires continuation across sessions, produces more than about 10 files, or the user explicitly requests it.
Installation and Activation¶
The plugin runs with the current dsh process permissions; it is recommended to review the GitHub source code and MIT license yourself before installation to ensure compliance with your environment policies.
Install from a profile (command from README, replace desktop with the profile name for your environment):
dsh plugin --profile desktop add dsh-task-workspace
Or install from a local checkout:
dsh plugin --profile desktop add /absolute/path/to/dsh-task-workspace
After installation, you must restart the profile or start a new session for the bundle patch to take effect. If the profile is exclusively owned by the Electron application, dsh plugin --profile desktop add might be rejected; in this case, the README provides scripts/install-into-profile.sh to link and append to dsh.profile.bundles.
Runtime environment requires Node >= 20 (see engines in package.json).
Configuration¶
Config file path: ${DSH_HOME}/dsh-task-workspace/config.json. Workspace root directory resolution order: tool parameters → workspaceRoot → $DSH_TASK_WORKSPACE_ROOT → $DSH_WORKSPACE_ROOT → current session workspace → $DSH_HOME. If an explicitly specified root directory does not exist, it will be created; node_modules/, /, temporary directories, and $HOME itself will be rejected.
Example of common fields:
{
"enabled": true,
"workspaceRoot": "",
"defaultGit": false,
"autoCommit": true,
"promptEnabled": true,
"skillEnabled": true
}
defaultGit: true indicates initializing git immediately upon creating a new task; setting promptEnabled / skillEnabled to false keeps the tools but removes the injected convention text. The profile layer can also override configuration items of the same name via patches.
Typical Usage¶
Creating a New Task and Writing Progress in DSH¶
First, create the task directory and PROGRESS.md (optionally git init immediately):
{ "name": "Competitor Research", "goal": "Compile pricing and feature differences of three competitors", "init_git": true }
Update progress (task_dir or task points to the folder):
{
"task_dir": "Competitor-Research-20261002",
"summary": "Scraped pricing pages from 3 official websites; Company A lacks API pricing",
"changelog": "Completed scraping of pricing pages",
"status": "In Progress",
"next": "Fill in API pricing for Company A\nOutput comparison table",
"deliverables": "data/pricing.csv"
}
Initialize or commit git separately after the task grows long:
{ "task_dir": "Competitor-Research-20261002", "message": "chore: initialize task repository" }
Command Line dsh-task¶
When not going through the model, you can use the CLI to perform the same operations:
dsh-task new "Competitor Research" "Compile pricing differences" --git
dsh-task progress Competitor-Research --summary "Scraped 3 companies" --changelog "Completed scraping"
dsh-task git Competitor-Research --message "chore: initialize task repository"
dsh-task list
dsh-task config --root "/path/to/workspace"
Exit codes: 0 success, 1 usage error, 2 operation failure. Human-readable information is in stderr, and result paths are in stdout, facilitating cd "$(dsh-task new …)".
Tidying the Workspace¶
task_tidy only reports by default; actual deletion requires apply: true and targets only provably deletable items (such as .DS_Store, __pycache__, certain backup suffixes, empty shell task folders mistakenly created outside the workspace, etc.). It will not delete task content or READMEs. Empty directories are not deleted by default; empty_dirs: true is required.
{ "workspace": "/path/to/workspace", "apply": true, "index": true, "empty_dirs": false }
Applicable Scenarios and Notes¶
Suitable for developers who need to perform multi-turn, resumable development or research tasks in DSH, while hoping for a unified shape for progress files and decoupling from the workspace root directory. It is not suitable for completely handing over the git strategy of the main application repository to this plugin—its git scope is the task subdirectory.
To emphasize again: the plugin tools will create directories, write files, and execute git under your configured workspace, with permissions identical to the current dsh. Please verify workspaceRoot and the apply behavior of tidy before enabling it in production or sensitive paths.
The DeepSeek Harness ecosystem adopts the “everything is a plugin” approach; community directories like SkillHub are independent of DeepSeek / High-Flyer and are not official app stores. This plugin has a star rating of 0 on the directory page, belonging to a relatively new workflow category entry; please refer to the GitHub README before use.
Conclusion¶
The value of dsh-task-workspace lies in transforming “one folder per session, one PROGRESS.md per task, and per-task git for long tasks” into repeatable tools and CLIs within DSH, rather than relying on verbal conventions in every conversation. Directory page: https://www.skillhub.cn/plugins/Zilong6666/dsh-task-workspace; Source code and full parameter description: https://github.com/Zilong6666/dsh-task-workspace.