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.

套件
dsh-grok-build-policy
相容性
待驗證
版本
1.0.0
授權
Apache-2.0
最近更新
2026年10月27日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add dsh-grok-build-policy

配置

匹配在每次组装系统提示词时进行,不区分大小写。modelPattern 和 providerPattern 都是子串。

字段默认作用
modelPatterngrok模型 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.

FieldDefaultEffect
modelPatterngrokSubstring the model id must contain. Empty skips the model check.
providerPatternemptySubstring 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: ""