dsh-rules

Discovers rule files from every convention OMP supports and injects them into the system prompt as an always-apply layer plus a rulebook index, then enforces them with time-traveling stream rules that abort violating output mid-turn, deny a matching tool call, fold a reminder into that call's result, or ask a judge model about the finished reply. The same tool lets the model write new rules, and an audit panel on the Plugins page says why each rule is in force.

Coding & DebuggingNOASSERTION☆ 4

Overview

Discovers rule files from every convention OMP supports and injects them into the system prompt as an always-apply layer plus a rulebook index, then enforces them with time-traveling stream rules that abort violating output mid-turn, deny a matching tool call, fold a reminder into that call's result, or ask a judge model about the finished reply. The same tool lets the model write new rules, and an audit panel on the Plugins page says why each rule is in force.

Installation

Install from npm

dsh plugin --profile web add @ndsanes/dsh-rules

Resolves a published tarball rather than cloning the repository, and installs without any extra setup. Swap `web` for your profile name if you run another one.

Install from GitHub

dsh plugin --profile web add github:Ndsanes/dsh-rules

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

Version compatibility

Independent install test

Install result
Incompatible in the tested version
Tested Harness version
0.2.2-rc.1
Tested plugin version
Not reported
Test date

Fallback version

Fallback test result
No fallback version found
View dependency version ranges
@deepseek-ai/dsh-llm
0.2.0-rc.2
@deepseek-ai/dsh-agent
0.2.0-rc.2
@deepseek-ai/dsh-tools
0.2.0-rc.2
@deepseek-ai/dsh-session
0.2.0-rc.2
@deepseek-ai/dsh-system-prompt
0.2.0-rc.2

Installation notes

  • May run terminal commands