Introduction¶
The design philosophy of DeepSeek Harness (DSH) is “Everything is a plugin.” Within this plugin ecosystem, the dsh-waibao plugin addresses the difficulty developers face in tracking the progress of delegated tasks initiated from the command line. It brings task execution—originally hidden within the command line—into the visual DSH desktop workspace.
Plugin Overview¶
Name: dsh-waibao
Positioning: DSH Outsourcing. Codex assigns tasks; DSH Desktop executes them. It continues in the same session and returns for acceptance verification upon completion.
Maintainer: ericlee041769-hash
Category: Workflow
License: MIT
Core Features¶
- Desktop Visible Sessions: Task sessions appear in the native workspace and sidebar, where the main content, tool execution processes, and usage metrics are displayed by DSH.
- Context Continuation: Subsequent tasks reuse the saved session binding to resume execution from the original session.
- Completion Callback: Upon task completion, the originating Codex chat is notified so Codex can inspect the deliverables.
- History Adoption: Integrate existing headless sessions into the desktop workspace to continue working.
- Model Retention: Uses the selected provider/model; checks for switching during continuation.
Installation and Activation¶
The first version supports Windows and Node.js 24+ only. The completion callback feature requires the Codex desktop client and enabled Codex App Tools.
- Download
dsh-waibao-0.1.0.tgzfrom the v0.1.0 release page. - Install using the built-in DSH Desktop CLI:
$dsh = "$env:LOCALAPPDATA\Programs\DeepSeek Harness\resources\runtime\cli\bin\dsh.cmd"
& $dsh plugin --profile desktop add 'D:\Downloads\dsh-waibao-0.1.0.tgz'
- Exit normally and restart DSH.
- Install the Codex skill:
$plugin = "$env:USERPROFILE\.dsh\profiles\desktop\node_modules\dsh-waibao"
node "$plugin\bin\install-skill.mjs"
- In a new Codex chat, enter:
Use dsh-waibao to delegate this task to DSH, and help me verify the results upon completion.
Typical Usage¶
Create Task Files¶
Create a prompt file and a task JSON in the workspace. The following is an example path:
{
"workspace": "D:\\code\\demo",
"workspaceTitle": "Outsourcing Demo",
"title": "Check Implementation and Tests",
"requestId": "demo-round-1",
"bindingPath": "D:/code/demo/work/dsh-session.json",
"promptFile": "D:/code/demo/work/round1.txt"
}
Run Task¶
Execute using the CLI:
node "$plugin\bin\cli.mjs" run 'D:\code\demo\work\task.json'
Continuation and History Adoption¶
When continuing a task, retain the bindingPath and use a new requestId and prompt file. Do not copy historical content or drive the same session simultaneously.
To adopt an existing headless session, use the adopt command:
node "$plugin\bin\cli.mjs" adopt '{"workspace": "D:\\code\\demo", "sessionId": "xxx", "workspaceTitle": "Adoption Demo"}'
adopt accepts workspace, sessionId, and the optional workspaceTitle. Before execution, confirm that the old headless process has ended and use the original working directory. The adoption process itself does not invoke the model.
Completion Callback Handling¶
The skill calls bin/job.mjs run <job.json> within the Codex environment. After the task ends, a completion event is sent via local Codex App Tools.
Check status:
node "$plugin\bin\job.mjs" status <id>
Handle delivery:
node "$plugin\bin\job.mjs" deliver <id>
Technical Details and Notes¶
- Communication Mechanism: The plugin communicates via Windows local named pipes with random tokens; it does not use HTTP ports.
- Data Storage: Connection records and callback status are located in
~/.dsh/dsh-waibao/. You can unify the data directory via the environment variableDSH_WAIBAO_DATA_DIR. - Permissions and Costs: Prompts are passed to the native DSH Agent, using the current account, model, and tool permissions. Model costs are billed by the corresponding provider.
- Disconnection Handling: If the client disconnects before receiving
done, an error will occur. Check the desktop session status before retrying. - Security Advice: Do not commit tokens, full logs, personal projects, or session data to public repositories.
Conclusion¶
dsh-waibao enables developers to utilize DSH’s desktop capabilities to handle complex, long-duration tasks while maintaining the collaborative workflow with Codex. Refer to the links below for related directories and source code.