bvcvb/dsh-baize-rules0

dsh-baize-rules

白泽规则插件:在会话开始时注入用户自定义的全局或会话级“必须做”与“不能做”行为规范。

AI 分析

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

套件
dsh-baize-rules
版本
0.1.2
授權
MIT
最近更新
2026年9月1日

安裝

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

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.