youxi-huang/dsh-gpt-file-discipline0

dsh-gpt-file-discipline

A configurable DeepSeek Harness host plugin that adds file-discipline guidance to selected model steps.

AI 分析

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

パッケージ
dsh-gpt-file-discipline
バージョン
0.1.0
ライセンス
MIT
最終更新
2026/08/14

インストール

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

ドキュメント

README 全文を読む ↗

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.