dsh-prompt-file-injector
Manifest validInjects the specified files into the model context of DeepSeek Harness (dsh).
dsh-prompt-file-injector
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.
Comments
Loading…
Similar plugins
by Zenjibad
dsh bundle: attach any file type in the DeepSeek Harness Web UI — text-likes inline, binaries as workspace path references, rasters via the built-in pipeline
★ 3
MIT
JavaScript
Aug 14, 2026
dsh plugin --profile web add dsh-any-attachmentby LSAI2023
dsh-ide-context — DeepSeek Harness bundle: inject your IDE's open files and current selection into each turn (IntelliJ IDEA & VS Code).
★ 0
MIT
TypeScript
Aug 16, 2026
dsh plugin --profile web add @deepseek-ai/dsh-ide-contextby whitefirer
dsh(DeepSeek Harness)插件:让 agent 读写浏览器所在机器的本地文件——File System Access 授权 + WS 中继,含非安全上下文兼容模式
★ 4
↓ 301/wk
MIT
JavaScript
Aug 23, 2026
dsh plugin --profile web add dsh-browser-fsby taxueseek
DeepSeek Harness 插件:原生上传管线上的文件夹按钮 + read_document 文档解析(PDF/DOCX/XLSX)。The folder button on the native upload pipeline, plus the read_document parser.
★ 38
MIT
TypeScript
Oct 1, 2026
dsh plugin --profile web add dsh-filesby xiaoso456
DeepSeek Harness 的软工作流插件:在画布上设计流程,编译成计划提示词,由模型按计划执行;运行状态由模型自己记,没有执行引擎
★ 4
↓ 268/wk
TypeScript
Oct 8, 2026
dsh plugin --profile web add @xiaoso/dsh-workflow-liteby CuteSamurai24
Small file memory for DeepSeek Harness. The model writes markdown, the host injects it.
★ 0
MIT
JavaScript
Aug 18, 2026
dsh plugin --profile web add dsh-md-memory