bvcvb/dsh-baize-rules0

dsh-baize-rules

User-set session/global must-do and must-not requirements injected at conversation start (Baize).

AI 分析

核心用途是强力约束 Agent 的输出行为和格式。适合需要为模型设定硬性合规边界、特定代码风格或交互禁忌的用户。支持通过 `/baize-rules` 命令动态管理规则。

パッケージ
dsh-baize-rules
バージョン
0.1.2
ライセンス
MIT
最終更新
2026/09/01

インストール

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:bvcvb/dsh-baize-rules

ドキュメント

README 全文を読む ↗

Configuration (Config)

On startup the plugin validates Config with @deepseek-ai/schemastery; an invalid value makes the plugin fail to load.

ConfigDefaultDescription
scope— (required)Default scope, used when /baize-rules doesn't specify one; only global/session allowed
maxBytes— (required)Byte cap visible to the model; trimmed with specificity-wins when exceeded
globalRulesPath$DSH_HOME/rules/global.jsonOverride the global rules file path
injectAtEveryStepfalseForce re-render on every step (debugging); default only patches on change

Mount metadata (cordis.patch.yml)

The published npm package ships dsh.bundle.patch, wired up automatically by dsh when you install dsh-baize-rules@: cordis.patch.yml inserts a single plugin line with default scope: session and maxBytes: 8192. To adjust the default scope / budget, change it there.