← Back to home@ClawsJoy

dsh-plugins

Community plugins for DeepSeek Harness (DSH): upgrade-survivable, seam-based, publishable.

Stars
0
Language
TypeScript
Created
Sep 21, 2026
Updated
Sep 21, 2026

Introduction

dsh-plugins

Community plugins for DeepSeek Harness (DSH).

Every package here is built to survive a DSH upgrade: it binds to a published contract (a service seam or an addressable profile row), declares the host packages it needs as peer dependencies, and is installed into a profile — never patched into the DSH source tree.

PackageWhat it does
@clawsjoy/dsh-session-persistence-tolerantListing tolerance + fault surfacing for the jsonl session backend: a corrupt or headerless session log stops disappearing silently.
@clawsjoy/dsh-session-retentionKeeps session logs whole: the size cap is opt-in because a rotated log cannot be loaded (seq gap in committed region).
@clawsjoy/dsh-tool-attributionPublishes DSH_TOOL_CALL_ID/DSH_TOOL_NAME for shell executions through the public ctx.shellEnv registry.
@clawsjoy/dsh-token-costA ctx.tokenCost service with configurable pricing (1/10000 ¥ units) and an honest fullyPriced flag.
@clawsjoy/dsh-egress-observerRecord-only egress observation attributed by DSH_TOOL_CALL_ID (Linux /proc; never blocks, never prevents a connection).

Install

dsh plugin --profile web add @clawsjoy/dsh-session-persistence-tolerant

then swap the profile row (see each package's README for its exact patch).

Development

pnpm install
pnpm test
pnpm typecheck

Adding or changing a package means the lockfile must be regenerated and committed, or CI's frozen install fails:

pnpm install --lockfile-only   # resolves without touching node_modules

License

MIT