返回目录
模型与 MCP 插件

dsh-prompt-file-injector

pgnqukezrdxmhjso/dsh-prompt-file-injector

把指定的文件注入 DeepSeek Harness(dsh)的模型上下文。Injects files you choose into the model context of DeepSeek Harness (dsh).

Stars
0
Forks
0
Issues
0
更新
1 个月前

PROJECT TOPICS

项目标签

INSTALL REFERENCE

安装参考

未验证
dsh plugin --profile web add github:pgnqukezrdxmhjso/dsh-prompt-file-injector

该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。

PROJECT README

README

dsh-prompt-file-injector

AI-Crap npm

中文

Injects files you choose into the model context of DeepSeek Harness (dsh).

See design/en/current.md for details.

Install

dsh plugin --profile web add dsh-prompt-file-injector

Installing from GitHub is not supported.

Features

Adds a configuration area to this plugin's own card on the dsh sidebar's Plugins page, where you list paths and pick how each one reaches the model.

Mode What it does
System prompt Injects the file's full text as a fixed system prompt section; it stays present for the whole conversation.
Every turn Puts the file's content back into the conversation on every turn, so it stays close to the current topic and always reflects the latest content. The cost is a steady increase in token usage.
AGENTS Adds the file name to the AGENTS loading system dsh ships with, so it loads in the workspace the same way AGENTS.md does.

A reminder setting next to the list adds a line near the end of the conversation that points the model back to what was injected into the system prompt: Off, Every turn, or Every step.

Each path can also be limited to one workspace. The AGENTS mode has no such choice and always applies in every workspace, so its picker is disabled.

Settings

Parameter Description Type Required
entries Paths to inject array no
entries[].path A file path, or a file name in the workspace for the AGENTS mode string yes
entries[].mode The mode this entry uses: one of system, everyRound, agents string yes
entries[].workspaceId Limit this entry to one workspace; omit it to inject in every workspace. The AGENTS mode ignores it and always applies in every workspace string no
reminder Remind the model near the end of the conversation about what was injected into the system prompt: off, turn (once per turn), or step (also after each tool call) string no
everyRoundInMinimal Keep injecting the Every turn content in minimal mode, where the system prompt is owned by the preset's persona (default false) boolean no
maxFileBytes Byte cap for one file; a larger file is skipped. Applies to the System prompt and Every turn modes; the AGENTS mode uses the built-in limit (default 65536, entered as KB in the configuration area) number no

A relative path is resolved against the working directory of each conversation; an absolute path is used as it is. A file that cannot be read, exceeds the cap, or is binary (not text) is skipped silently.

To use one path with two modes, add it as two entries.

Built with dsh 0.1.7-rc.2

Secondary development

Clone this repository into a dsh workspace package directory, then install and build:

git clone https://github.com/pgnqukezrdxmhjso/dsh-prompt-file-injector packages/my/dsh-prompt-file-injector
pnpm install
pnpm --filter dsh-prompt-file-injector build

No runtime invariant companion is published because the plugin owns no independent runtime relation to check.

CLASSIFICATION EVIDENCE

分类依据

项目类型插件
功能分类模型与 MCP
规则置信度高

系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: model、deepseek、模型。