Preface¶
When using agents to fix bugs in DeepSeek Harness (dsh), common issues include: the model claiming “fixed” and stopping without verifiable step-by-step evidence, or writing “red-green” tests as assertion files rather than actually running commands. The community plugin directory contains a category of workflow plugins that package a bug fix into a fixed pipeline where every step must pass a gate, and the ledger must contain corresponding artifacts.
Below is an introduction to the dsh-drill-kit by maintainer EnRaiha (npm package name dsh-drill, directory page skillhub.cn). It strings “localize → blast → edge → red → green → hygiene → read-only review → PR” into a single drill and co-locates capabilities like code2graph (c2g) and PR craft in the same repository.
What is this¶
dsh-drill is an evidence-gated bug fix drill plugin for DSH: one issue, one worktree, one evidence chain. Each phase leaves a record in the per-task ledger, and drill_gate rejects “completion” claims without proof. Red/green proof is generated by executing test commands locally, rather than writing assertions to files.
In addition to the plugin body (index.js, lib/, 16 tools, 107 tests), the repository includes:
core/c2g_tools.py: c2g core (stdlib only), used byframe,error, and query-type tools;core/pr_craft.py: PR copywriting core (lint-desc,lint-diff,plan, etc.);frontends/kilo/,frontends/hermes/: Thin frontends exposing the above core to Kilo and Hermes runtimes;docs/: Specifications, review records, and auditable source bundles.
The current documented version is v0.8.6, loaded on DSH 0.1.6-alpha.2; License MIT.
Core Features¶
Phases and Gates¶
The phases and required evidence in the documentation are as follows (excerpt):
| Phase | Gate | Required Evidence (Summary) |
|---|---|---|
| 1 Localize | localize |
A locate record (file:line), from a failure signal (drill_error) or symbol (drill_locate) |
| 2 Blast | blast |
blast record (call relationships/affected files, drill_blast), and/or branch diff (drill_diff) |
| 3 Edge | edge |
edge record: invariants that must fail; drill_diff can propose a checklist |
| (Subsequent) | Red / Green / Hygiene / Review 2 / PR | Red/Green binds commits via plugin-side test runs; Review 2 is a fresh-context read-only review; PR is rendered by the ledger |
The README defines the drill as: localizing from failure signals, drawing the blast radius, enumerating boundaries, proving red (baseline failure) then green (pass after fix), passing hygiene checks, passing the read-only Review 2, and finally producing a PR—every claim must have an artifact in the ledger. “Done” is a gate evaluation, not a one-sentence statement.
Plugin and Host¶
The plugin relies on @deepseek-ai/dsh-tools, dsh-llm, and dsh-subagent provided by the DSH runtime (declared as optional peers in package.json, resolved by the profile; missing host causes an import error). @deepseek-ai/schemastery is provided as a regular dependency for validation.
The plugin line is declared in cordis.patch.yml (dsh.bundle.patch in package.json), which is read by both the DSH profile manager and the awesome-dsh-plugin directory.
Upstream and Proprietary Parts¶
The c2g layer is based on upstream projects like NodeDB-Lab/code2graph; this repository’s proprietary parts include the gate and ledger implementations, the drill skill and auditor role, the merged-store/embedding fallback in lib/embed.js, and drill-oriented tools like c2g_error and c2g_frame.
Installation and Activation¶
The installation script can be executed directly from a checkout or pulled from GitHub; it does not depend on the npm registry or API tokens (the official dsh plugin add path requires pnpm on the PATH).
Common methods (excerpted from README):
./install.sh --profile web # Official dsh plugin add (requires pnpm)
./install.sh --profile web --link # Symlink installation: no pnpm, no network
./install.sh --profile web --skills --frontends --verify
./install.sh --profile web --uninstall
Remote preview or linked installation:
curl -fsSL https://raw.githubusercontent.com/EnRaiha/dsh-drill-kit/master/install.sh \
| bash -s -- --profile web --dry-run
curl -fsSL https://raw.githubusercontent.com/EnRaiha/dsh-drill-kit/master/install.sh \
| bash -s -- --profile web --link
The script attempts to locate the DSH checkout (dsh in PATH, $HOME/projects/deepseek-harness, or a checkout adjacent to this repo); it falls back to link installation if pnpm or network is missing; it backs up the profile’s package.json as .bak-drill before editing; it preserves copies before overwriting skills/roles; it does not replace existing frontend directories unless --force is specified; and it does not automatically restart the runtime. --dry-run only prints actions without writing to disk.
You can also use the DSH plugin manager directly (README text):
dsh plugin --profile <profile> add dsh-drill
dsh plugin --profile <profile> add dsh-drill@0.8.4
dsh plugin --profile <profile> add /path/to/dsh-drill-kit
dsh plugin --profile <profile> add github:EnRaiha/dsh-drill-kit#v0.8.6
Manually specifying the CLI:
node <dsh-checkout>/apps/cli/lib/bin.js plugin --profile <profile> add /path/to/dsh-drill-kit
dsh plugin --profile <profile> add github:EnRaiha/dsh-drill-kit
Restart the DSH runtime after adding the plugin: Host-side plugin lines are assembled at startup.
Environment requirements: engines.node in package.json is >=22.19.
Typical Usage and Documentation¶
- Install in the target profile and restart
dsh. - Call the corresponding tools according to the drill phases (e.g.,
drill_error,drill_locate,drill_blast,drill_diff,drill_gate, etc.) to fill the ledger with evidence step-by-step. - In the Red/Green phases, execute real test commands within the repository, binding the proof to commit records via the plugin.
- After passing the Review 2 and PR phases, use the ledger to generate the PR body.
Specifications and audit materials are in docs/: DRILL-BUG-AND-PLUGIN-FULL-DOC is the canonical specification; DRILL-PLUGIN-SOURCE-BUNDLE is a generated snapshot with file hashes and test records for review without repository access. See docs/README.md for the index.
In-repository self-testing:
node --test test/*.test.js
node tools/build-source-bundle.mjs
Integration tests will skip if host packages cannot be resolved; standalone consumers will not encounter false failures due to this.
Use Cases and Notes¶
Suitable for: Teams or individuals already using DSH who want to constrain a single bugfix into an auditable pipeline (gates + ledger + real red/green + PR); scenarios requiring the same conventions as c2g localization and PR craft. The plugin is categorized as a workflow.
Notes:
- The plugin runs under the permissions of the current dsh process. Please read the source code and the MIT license before installation to confirm that the tool behavior and command execution scope are acceptable.
- The community directory skillhub.cn and the GitHub repository are maintained by the maintainer and the community; they are not official DeepSeek / High-Flyer application stores. The DSH ecosystem follows an “everything is a plugin” extension approach.
- The documentation records 0 GitHub stars; the status notes mention two rounds of documentation review, with fixed defects accompanied by regression tests and unresolved items marked as unverified.
Conclusion¶
dsh-drill-kit packages a bug fix on DSH into a drill with gates and an evidence chain: 16 tools, ledger-driven PR, and co-maintained alongside c2g, PR craft, and Kilo/Hermes frontends. To view the introduction and categorization, open the Plugin Directory Page; for installation and phase details, refer to the GitHub Repository README and docs/.