Introduction¶
In DeepSeek Harness (DSH), the main assistant often needs to explain “which steps to take and their dependencies” while also repeatedly assembling the scheduling logic themselves. As the number of steps increases, parallel reading, sequential checking, and saving intermediate results become repetitive labor; it is also unclear which steps can be safely replayed after an interruption. The community plugin Xiao He (npm package @feng0531/dsh-execution-bus, repository f-e-n-g-0531/dsh-execution-bus) delegates “execution and persistence” to a declarative runtime, while the main assistant focuses on result judgment and acceptance, making it suitable for scenarios where the process is already clearly defined and traceable execution is required.
What is this?¶
Xiao He is a multi-step tool planning runtime for DSH: it uses a JSON plan to describe steps and dependencies, schedules ordinary tools (such as read, glob, grep, etc.) via a DAG according to the plugin, saves checkpoints and execution logs, and provides a verifiable recovery process after interruption. The maintainer is GitHub user f-e-n-g-0531; the current released version is 1.8.4, licensed under MIT. It is not a distributed workflow service, a background daemon agent, or an automated development platform, nor does it replace DSH’s authorization and sandboxing.
Core Features¶
The capabilities below are derived from the project’s README and documentation, summarized from a usage perspective.
Scheduling and Execution¶
- Use a plan to declare steps and
depends_ondependencies; steps without dependencies can run in parallel (concurrency limit 1-4, plan max 32 steps). - The main assistant submits
runtime_run, waiting synchronously by default; specific content is read viaruntime_result({runId}). - Only
read/glob/grepsupport limited retries; deterministic errors and timeouts will not be blindly retried.
Traceability and Task Views¶
- Checkpoints are saved for every step; status, results, and pending items can be viewed by run or task.
runtime_task,runtime_query, etc., allow viewing multiple runs of the same task, pending items, and items awaiting review (e.g.,runtime_query({view:"needs_action"})).
Interruption, Cancellation, and Recovery¶
runtime_cancelinitiates cancellation;runtime_resumeis used to explicitly resume a paused run.- Recovery will reschedule in-flight read-only steps; it will stop if unknown writes, commands, or Agent states are encountered, requiring verification of the actual impact first.
Separation of Execution and Acceptance¶
runtime_acknowledge,runtime_decision, andruntime_reviewrecord acknowledgment, decision handling, and result review respectively; a successful run does not equal the task being formally accepted in business terms.
Capability Query and Boundaries¶
- For first-time use, call
runtime_capabilities({})to query capabilities (the query does not initialize storage;capacityBusyisnullwhen capacity is not observed). - Standard plugins support ordinary tool DAGs; standalone read-only Workers require the host to explicitly connect a trusted
DelegationPolicyAdapter, and the standard entry point will reportRUNTIME_AGENT_POLICY_UNSUPPORTED.
Installation and Enabling¶
The plugin runs with the current DSH process permissions; before installing, read the source code and LICENSE, and confirm the host version is within the compatibility range declared in the README.
1. Confirm Environment¶
This version primarily adapts to DSH 0.2.3-alpha.2; this host requires Node.js 24.22.3+ (24.x) or 26.13.1+ (subject to host installation requirements). The plugin itself declares engines.node as >=22 in package.json. The compatibility scope only covers DSH V0.2 public APIs verified in the README; no compatibility is promised for unverified versions.
The host must already have a declarative PTC preset; Xiao He derives an independent preset from it, not overwriting the original PTC or global tools. Dependencies and alerts are in docs/host-compatibility.md in the repository.
2. Install npm Package¶
Execute in the target configuration environment (version number must match the current release):
npm install --ignore-scripts @feng0531/dsh-execution-bus@1.8.4
3. Load Bundle and Preset¶
Add the package to dsh.profile.bundles for that configuration, or load the bundle via the host plugin manager. After loading, select Xiao He in the interface, with preset ID xiao-he-runtime. Installing only the npm package does not mean the bundle is loaded; publishing a new version will not automatically upgrade or restart your DSH.
Installation commands and directory page descriptions are based on the SkillHub Plugin Page and GitHub Repository. The DSH ecosystem emphasizes “everything is a plugin”; SkillHub is a community directory site with no official affiliation with DeepSeek / Hypersphere.
Typical Usage¶
Describing the Task to the Main Assistant¶
The README suggests starting by stating the intent like this (using only ordinary tools, not creating a Worker):
Use Xiao He to parallel read README.md and package.json, save the result of each step, and then have you summarize the project's purpose and runtime requirements. Query capabilities first, use only ordinary tools, and do not create a Worker.
Recommended execution order:
Clarify task → Query capabilities → Submit step plan → Execute and save results based on dependencies → Main assistant reads and verifies → Deliver result
Example of Submitting a Plan¶
When parallel reading two files in the repository, the paths must be actual files accessible by the host:
{
"goal": "Parallelly read project introduction and package configuration",
"concurrency": 2,
"steps": [
{ "id": "intro", "tool": "read", "input": { "file_path": "README.md" }, "retry": 1 },
{ "id": "package", "tool": "read", "input": { "file_path": "package.json" }, "retry": 1 }
]
}
The main assistant calls runtime_run with input { "plan": <the plan above> }. Subsequent steps can declare order using "depends_on": ["intro", "package"]; dependencies only control execution order and do not automatically insert prior results into the next step’s parameters, requiring the main assistant to organize a new plan after reading runtime_result.
Common Tool Entry Points¶
| What you want to do | Tool |
|---|---|
| Verify available capabilities | runtime_capabilities |
| Submit plan, view status, read results | runtime_run, runtime_status, runtime_result |
| View same-task runs, cross-task pending or review items | runtime_task, runtime_query |
| Cancel, explicit resume | runtime_cancel, runtime_resume |
| Record acknowledgment, decision, review | runtime_acknowledge, runtime_decision, runtime_review |
| Handoff summary, notification receipt | runtime_handoff, runtime_notification |
Parameters, pagination, and Agent step integration are in the repository’s docs/protocol.md.
Applicable Scenarios and Notes¶
Who is it for?¶
- Already using the target version of DSH and want to hand off clearly defined multi-step processes (parallel file reading, fixed-order diagnostics, multiple runs of the same task to check pending items) to the runtime for execution.
- When needing to save results step-by-step, retry read-only failures, or verify and resume after interruption, prioritize synchronous
runtime_runand readruntime_resultupon completion.
When not to install¶
- For simple one-off read/writes, exploratory tasks, cross-machine scheduling, or expecting multiple Agents to autonomously modify code and publish after installation — continuing with native tools or native delegation is more direct.
Usage Boundaries (Excerpt)¶
- Plan size max 64 KiB; single step timeout 1–600 seconds; read-only retries max 3 times. Single-step tools include
read/glob/grep/edit/write/pwsh, still requiring host approval. - Run logs are stored by default in
DSH_HOME/tmp/xiaohe-runtime/runs, can be overridden by environment variableXIAOHE_RUNTIME_DIR; final states retain the latest 100 by default. Input and results may contain sensitive information; the directory must be protected. - Cancellation does not guarantee that started host operations stop or rollback; does not guarantee exactly-once. The
sentstatus of the notification tool is only a declaration by the sender; the tool itself does not send external messages.
Component regression tests cannot replace validation with the real GUI, model, and OS sandbox; fault interpretation is in docs/OPERATIONS.md.
Conclusion¶
Xiao He converges multi-step tool tasks from “rewriting scheduling every time” to “declarative plan + runtime execution + main assistant acceptance,” verified primarily on DSH versions around 0.2.3-alpha.2. For further understanding, refer to the SkillHub Directory Page and GitHub Repository (README and docs/); for issue feedback, use GitHub Issues, specifying DSH and plugin versions and sanitized reproduction steps.