Introduction¶
DeepSeek Harness (DSH) adopts an “everything is a plugin” architecture, aiming to extend functionality through plugins. In multi-window and multi-tool collaboration scenarios, issues of comprehension loss and context loss arise when passing context between AI agents. Throwing vague, “colloquial” instructions directly to an AI often leads to interpretation biases, while context relies on manual transfer after window or tool switching. The task-forge plugin transforms requirements into standardized task briefs through a “Compile-Handoff-Readback” process and enforces a readback handshake protocol to ensure lossless handover across windows.
What is it¶
- Name:
dsh-plugin-task-forge - Summary: Compiles colloquial language into task briefs for lossless cross-window AI handoffs.
- Maintainer: 121212165
- Category: Workflow
- License: MIT
- Core Value: Solves the issue of context loss during AI-to-AI transmission through structured task briefs and readback protocols.
Installation and Activation¶
The plugin requires pnpm in the PATH and @deepseek-ai/cordis >=4.0.0.
- Run the installation command:
dsh plugin --profile web add github:121212165/dsh-plugin-task-forge
- Modify the configuration file. Replace or merge the content of the
cordis.patch.ymlfrom the root of this repository into$DSH_HOME/profiles/web/cordis.patch.yml.
Note: Do not simply append, otherwise errors will occur. - Restart dsh. Both the configuration layer and the client need to be restarted to take effect.
Core Commands¶
The plugin provides a series of commands to manage the full task lifecycle.
1. Compile: /forge <requirement>¶
Compiles colloquial language into a standard task brief for open-source projects.
* Usage: /forge <your requirement> [--mode interview]
* Description:
* Default auto mode: The model deduces and exposes assumptions; items it cannot resolve are written as numbered gaps Q1/Q2…
* --mode interview: Generates a question list first, waits for the user to answer, and then compiles.
2. Handoff: /relay <id>¶
Exports a self-contained handoff package to be pasted to an AI in any window.
* Usage: /relay <id> [--to <window_name>\|ide:<tool_name>]
* Description:
* Exports file to: ~/.dsh/task-forge/outbox/<id>-v<n>.md.
* Supports --to ide:<tool_name>, which will drop a byte-identical copy within the current project.
3. Readback Handshake: /ack <id> <full_readback_text>¶
Confirms that the receiving AI has correctly understood the task brief.
* Usage: /ack <id> [--to <window_name>] <full_readback_text>
* Description:
* Must contain STATUS: READY to be considered successful.
* If it is STATUS: NEED-INPUT, the gap will be automatically registered in the task brief.
4. Fill Gaps: /answer <id> <Q_number> <answer>¶
Answers gaps identified during the compilation process.
* Usage: /answer <id> <Q_number> <answer>
* Description:
* Answers are written into “Decided Items” (D number), and the version number increments by 1.
* In interview mode, after answering the last Q, the compilation command is automatically reinjected.
5. Ledger Overview: /forge-list¶
View the status of all tasks.
* Usage: /forge-list
* Description: Displays Task × Version × Window Readback Status (e.g., WindowA✓v2 / WindowB◐v1) × Gap/Decision counts.
Readback Handshake Protocol¶
To ensure a lossless handoff, the receiver must output the following before starting work:
version: <The version number it read>
[Readback] Paraphrase the goals, constraints, and acceptance criteria in your own words (corresponding to the numbering item by item)
[Gaps] List any insufficient or contradictory information found, numbered item by item; write "None" if there are none
STATUS: READY or STATUS: NEED-INPUT
- Incomplete Structure (Missing STATUS / Missing version / Missing paraphrasing) →
/ackdetermines it as invalid. - Version Mismatch → Treated as an older version with a warning.
- Version Number is the sole authority across windows; all handoff references must include
id@version.
Configuration Options¶
The plugin supports the following configurations (default values):
enabled: Whether to enable (Defaulttrue).dataPath: Data root directory, default~/.dsh/task-forge.hubPath: IDE copy directory, default.hub.quotaSummaryPath: Budget agreement file, default~/.dsh/quota/summary.json.quotaHistoryPath: Usage history file, default~/.dsh/quota/history.json.limit/maxChars: Number of entries and character budget injected into the system prompt, default8/900.order: Sorting position of the injected segment in the system prompt, default690.
Summary¶
dsh-plugin-task-forge provides a standardized workflow for task management within the DSH ecosystem. It structures requirements via /forge, ensures the accuracy of cross-window transmission via /relay and /ack, and ensures collaboration traceability via version number management. This is highly valuable for scenarios requiring multi-AI agent collaboration.
- GitHub Repository: https://github.com/121212165/dsh-plugin-task-forge
- Directory Page: https://www.skillhub.cn/plugins/121212165/dsh-plugin-task-forge