Back to home@CatheadOwl

dsh-extras

Out-of-tree plugin suite for deepseek-harness (dsh): markdown tooling, relates tables, review-evals dispatch.

Stars
0
Language
JavaScript
Created
Sep 4, 2026
Updated
Sep 4, 2026
GitHub repo

Introduction

@catheadowl/dsh-extras

English | 中文

One npm package, several runtime-independent dsh plugin modules: quality gates, Markdown link hygiene, prompt injection, and knowledge-base routing. dsh plugin add installs everything at once; every module is a separately toggleable composition row (identified by row id) and can be disabled without affecting the others.

Install

dsh plugin add @catheadowl/dsh-extras

Requires the dsh CLI. All runtime dependencies come from the dsh host (peerDependencies, resolved against the host at plugin add); the package itself carries only a few pure-JS utility dependencies.

Modules

ModuleRow idWhat it providesDocs
gatesgatesQuality-gate framework (ctx.gates): composable gates run automatically at turn close, plus the registerGate consumer facemodules/gates/README.md
markdownmarkdownmd_rename tool (move a Markdown file and rewrite every internal link) + the doc-link gate + the bundled link-transaction librarymodules/markdown/README.md
promptpromptPrompt-injection service (declarative providers + bundled parse/tree libraries) that injects project knowledge into the sessionmodules/prompt/README.md
routesroutesany_routes tool (routing views over Markdown knowledge bases) + the breadcrumb relates providermodules/routes/README.md

Each module is an independent row (fiber) in the Cordis composition: no shared state — disable any row and the others behave exactly as before.

Configuration

Disable a single module by row id in your profile patch layer:

- id: gates
  disabled: true

Modules with defaults can be overridden. All config keys per row:

RowConfig keys
gatesmaxConsecutiveBlocks (consecutive-block cap, default 3; exhausted → degrade to pass)
promptproviderTimeoutMs / totalTimeoutMs / renderBudgetChars (example below)
markdown / routesno plugin config keys
- id: prompt
  config:
    providerTimeoutMs: 2000
    totalTimeoutMs: 5000
    renderBudgetChars: 4000

Adding or removing modules happens through package versions: upgrade this package, then dsh plugin update shrinks or grows the composition rows.

API face

Beyond the composition rows, the package exports stable subpaths for plugin developers:

  • @catheadowl/dsh-extras/gates/register — the gates plugin consumer face (registerGate + the GateDefinition / GateViolation types).

Secondary consumer faces per module (e.g. markdown's repo-level gates.yml fallback) are documented in each module's README. The Web Settings tabs (gates / prompt) are loaded from the bundled client sub-package inside this package (modules/client) — nothing to install separately.

The module dependency topology and the exports reconciliation table live in docs/dependencies.md.

Development

# From the repository root
pnpm run build                  # four module libs + client bundle
pnpm run test:gates             # per-module unit tests (test:markdown / test:prompt / test:routes)
pnpm run verify:package-face    # exports / facade checks
pnpm run verify:publish-readiness  # release hygiene checks (docs locality, host closure, ...)

Development details — host checkout placement, toolchain borrow, peer junctions, and the host-closure network check — live in docs/development.md.

Known limitations

  • Requires the dsh CLI (this package is a plugin carrier, not a standalone app); all runtime peers are provided by the host closure.
  • The root README is bilingual (English primary + Chinese); module pages and deep docs are Chinese-first.
  • Settings tabs currently exist only for the gates / prompt rows (loaded via the bundled client sub-package, modules/client, not published separately).
  • The gates consecutive-block cap (maxConsecutiveBlocks, default 3) degrades to pass when exhausted — it is a safety valve, not a correctness guarantee; the markdown / routes rows expose no plugin config keys.

License

MIT