Xunflash/dsh-grok-build-policy ↗★ 0
dsh-grok-build-policy
Adds Grok Build working rules to the system prompt while a Grok model is selected.
安裝
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add dsh-grok-build-policy說明文件
閱讀完整 README ↗配置
匹配在每次组装系统提示词时进行,不区分大小写。modelPattern 和 providerPattern 都是子串。
| 字段 | 默认 | 作用 |
|---|---|---|
modelPattern | grok | 模型 id 需要包含的子串。留空则不按模型过滤。 |
providerPattern | 空 | 提供方 id 需要包含的子串。留空则不限制提供方。 |
两个都留空时,这段规则不会注入。默认配置下,grok-4 和 grok-4.7 会匹配,deepseek-v4 不会。
要改已安装的 profile,在该 profile 的 cordis.patch.yml 末尾覆盖这一行。config 会被整段替换,所以两个字段都要写:
- id: grok-build-policy
name: dsh-grok-build-policy
config:
modelPattern: grok
providerPattern: ""
Configuration
Matching runs on every system-prompt assembly and is case-insensitive. modelPattern and providerPattern are substrings.
| Field | Default | Effect |
|---|---|---|
modelPattern | grok | Substring the model id must contain. Empty skips the model check. |
providerPattern | empty | Substring the provider id must contain. Empty allows every provider. |
When both are empty, the rules are not injected. With the defaults, grok-4 and grok-4.7 match, and deepseek-v4 does not.
To change an installed profile, append an override to that profile's cordis.patch.yml. config is replaced as a whole, so write both fields:
- id: grok-build-policy
name: dsh-grok-build-policy
config:
modelPattern: grok
providerPattern: ""