youxi-huang/dsh-gpt-file-discipline0

dsh-gpt-file-discipline

可配置的 DSH 主机插件,为选定的模型步骤添加文件规范引导提示词。

AI 分析

核心用途是约束模型的文件读取行为,防止其越界读取。适合需要对特定模型或特定步骤进行严格文件访问规范引导的安全敏感型任务。

套件
dsh-gpt-file-discipline
版本
0.1.0
授權
MIT
最近更新
2026年8月14日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:youxi-huang/dsh-gpt-file-discipline

Configuration

Cordis configuration patches are top-level patch-entry arrays. A configured insert has this shape:

- insert:
    - id: gpt-file-discipline
      name: dsh-gpt-file-discipline
      config:
        provider: custom-provider
        modelPrefix: Model-
        promptText: Read only the designated project sources.
        sectionName: custom-file-discipline
        caseSensitive: true

provider, modelPrefix, and promptText must be nonblank strings. sectionName must be 1–128 characters, start with a letter or digit, and contain only letters, digits, ., _, :, or -. caseSensitive must be a boolean and controls model-prefix matching only.

Profile installation applies the bundle to the DSH host, so the inserted plugin is host-wide. For preset-only use, make the package resolvable to DSH without adding its bundle layer, then add an ordinary plugin row to that preset's top-level entry list:

- id: gpt-file-discipline
  name: dsh-gpt-file-discipline
  config:
    provider: codex
    modelPrefix: gpt-

One practical route is to install the package as a dependency and then remove dsh-gpt-file-discipline from that profile's dsh.profile.bundles list before mounting the row in the preset. Do not use a map keyed by package name: agent preset compositions are top-level arrays of plugin rows.