Preface¶
In DeepSeek Harness (DSH), it is common for the AI’s wrap-up of a development task to end with simply saying “modifications complete.” Tests are not run, regressions are not checked, and documentation is not verified; issues often only surface when a human takes over. Community plugins extend Harness capabilities following the “everything is a plugin” approach. The directory is located at the SkillHub Plugin Page, and is not officially affiliated with DeepSeek or High-Flyer.
Below is an introduction to the dsh-wrapup-guard by maintainer 566001 (display name “Wrap-up Sentinel”): It transforms the wrap-up process into a gated workflow when the AI judges a task to be finished, preventing the “good enough” style of handover.
What is this¶
dsh-wrapup-guard is a DSH plugin (category extension). Its core behavior is: when the AI believes the task is complete, it calls the tool wrapup_check. The plugin takes charge of round state, automatically executing command-based checks detectable in the project (tests / lint, etc.), and enforces a Check → Fix → Re-check loop. It bounces back the task as long as there are unfixed items; only three consecutive rounds of comprehensive checks with zero issues are required to determine that the wrap-up is complete and notify the user.
The plugin is implemented in pure JavaScript; it does not perform code reviews or fix bugs on behalf of the AI—that is the AI’s role. The plugin handles counting, interception, release, and reporting.
What problems it solves¶
The AI tends to skip verification during wrap-up. This plugin fixes the process as follows:
Comprehensive Check → Identify Issues → Fix → Re-comprehensive Check → ...
↑__________________________|
Until 3 consecutive rounds with zero issues → Notify user "Wrap-up Complete"
As long as there are still issues with fixed !== true in the current round, it will not count as a “consecutive clean” round. Even if only a small bug was fixed, that round is not considered clean, and the count resets to zero. This avoids the “checking while fixing, and saying it’s done as soon as the fix is applied” scenario.
Core Functions¶
Actions of the tool wrapup_check¶
| action | Effect |
|---|---|
start |
Starts a wrap-up self-check and resets the counter; detects automatically runnable check commands in the project. |
check |
The plugin automatically runs command-based checks and returns raw output. |
report |
Reports the conclusion of the comprehensive check for this round; must include a problems array (an empty array indicates clean). |
status |
Views the current round, consecutive clean count, and summaries of each round. |
abort |
Aborts the current wrap-up process. |
Main parameters of report:
problems: Each item is{ kind, where, what, fixed }; items wherefixed !== truewill cause an immediate bounce.checks: Categories of checks performed manually (review/build/consistency); the plugin will remind if items are missing.summary: A summary of this round, which will be included in the final report.
Auto-detected check commands¶
Looks for items in the project root directory in order:
scripts.test/scripts.lint/scripts.typecheck/scripts.checkinpackage.jsontools/audit.js,tools/check.js,tools/selftest.mjs
If nothing is detected, it returns “no automatically runnable checks”—this is a legitimate result, and command-based checks are completed manually by the AI. The plugin will not scan and run every key in scripts, to avoid mistakenly triggering scripts with side effects like building or publishing.
Division of Labor¶
| Who | Responsible for |
|---|---|
| Plugin | State machine, consecutive clean count, auto-running command checks, determining release, notifying user |
| AI | Code review, build/run verification, consistency checks, actual fixing |
State and Notifications¶
- State is persisted to
~/.dsh/wrapup-guard/<sessionId>.json, retaining the count across multiple tool calls and DSH restarts. - When 3 consecutive rounds of zero issues are reached: The host writes a completion record, exposed via
/dsh-wrapup-guard/status; the browser side polls and pops up a completion card in the bottom right corner (collapses into a badge after about 12 seconds); the tool return value contains a full report for the AI to relay.
Implementation Notes (from README)¶
- Does not import
@deepseek-ai/*, relies onctxand Node built-in modules. - On Windows, runs
npm-related commands viacmd.exe /d /s/c; usestaskkill /T /Fto kill the entire process tree on timeout to prevent npm subprocesses from dragging on the timeout. - The state machine cannot automatically defend against AI under-reporting; the system prompt requires honesty and verification of whether the declared check categories are complete.
License: MIT. package.json requires Node >=22, peer dependencies @deepseek-ai/cordis ^4.0.1, @deepseek-ai/dsh >=0.1.7-rc.2. Current released version is 0.1.0.
Installation and Activation¶
Add the dependency and register the bundle in the profile’s package.json:
// profiles/<profile>/package.json
{
"dependencies": {
"dsh-wrapup-guard": "^0.1.0"
},
"dsh": {
"profile": {
"bundles": ["…", "dsh-wrapup-guard"]
}
}
}
For local development, the dependency can be written as file:/absolute/path/to/dsh-wrapup-guard; for npm installation, write the version number.
Install using DSH’s built-in pnpm in that profile directory:
node <DSH>/resources/runtime/pnpm/bin/pnpm.cjs install --no-frozen-lockfile
file: dependencies are copied into the profile’s node_modules; you need to rerun install after modifying plugin source code. Restarting DSH is required after changing the configuration (plugins are loaded at startup).
Please read the GitHub repository source code and license yourself before installing; the plugin executes check commands in the project directory with the current DSH process permissions, so only install packages you trust.
Typical Usage¶
- When the AI judges the task is nearing completion, call
wrapup_checkwithaction: startto begin the wrap-up round and reset the counter. - Call
checkto let the plugin run detected tests/lints, etc.; combine the output with manual review to performreview/build/consistencychecks. - Call
reportto submitproblems,checks, andsummary. If there are unfixed items, fix them according to the plugin’s feedback and then redo the comprehensive check (not just verifying the one spot you just changed). - Repeat until
statusshows the consecutive clean count has reached 3; at this point, you will receive a completion notification and a full report. You canabortmidway to give up.
Self-check commands within the repository (for maintainers or local verification of plugin behavior):
node tools/selftest.mjs
node tools/check-commands.mjs <project path>
Use Cases and Notes¶
Suitable for: Teams or individuals who want to institutionalize “wrap-up” in DSH sessions, need automatic running of npm run test / lint, etc., and are willing to accept the “three rounds of full inspection with zero issues” threshold.
Notes:
- If there are no auto-detected commands, the AI must still complete equivalent checks and fill them in honestly in
report. - The plugin cannot verify if the AI is concealing issues; it relies on prompts and checking
checksevery round. - Community directory page: https://www.skillhub.cn/plugins/566001/dsh-wrapup-guard; Source code and docs: https://github.com/566001/dsh-wrapup-guard.
Conclusion¶
dsh-wrapup-guard turns “task complete” from a verbal confirmation into a wrap-up gate with a state machine and command checks: unfixed issues must be bounced back, and only after three consecutive rounds of passing comprehensive checks is it released and notified. If you are using DSH for agent development and want to reduce “fixed but unverified” handovers, you can check the entry on the SkillHub directory page, and follow the README to add dsh-wrapup-guard to your profile and restart the Harness to try it out.