Introduction¶
When building agents or long conversations in DeepSeek Harness (dsh), it is often necessary to reliably pass project descriptions, specification documents, or AGENTS-style files to the model. Manual copy-and-paste is prone to missing updates, and relying solely on workspace indexing may not be equivalent to “having the entire file enter the context according to a fixed policy.” The following is the community plugin dsh-prompt-file-injector (maintainer: pgnqukezrdxmhjso, category: Model Reasoning): on the sidebar Plugins page, the plugin card provides a configuration area that lists paths and selects how each path enters the model context.
What Is This¶
dsh-prompt-file-injector injects user-specified files into dsh’s model context (README description: Injects files you choose into the model context of DeepSeek Harness (dsh)). Both the npm package name and the plugin name are dsh-prompt-file-injector, with the current package version 0.1.0 and license MIT. The plugin is built on dsh 0.1.7-rc.2; for more detailed design notes, see design/en/current.md in the repository.
Three Injection Modes¶
In the plugin card, select a mode for each path:
| Mode | Effect |
|---|---|
| System prompt | Injects the full file text as a fixed system section, persisting throughout the entire conversation. |
| Every turn | Reinserts the file content into the conversation each round, staying close to the current topic and reflecting the latest on-disk content; the trade-off is continuously increasing token usage. |
| AGENTS | Adds the file name to dsh’s built-in AGENTS loading system, loading it within the workspace in the same way as AGENTS.md. |
If the same path requires two strategies, add two entries to the list, each specifying a different mode.
Reminder and Scope¶
There is a reminder option next to the list, which prompts the model to review injected system content near the end of the conversation; it can be set to Off, Every turn, or Every step.
Each path can be restricted to only take effect in one workspace; omitting the workspace restriction means injection in all workspaces. AGENTS mode cannot be restricted by workspace; the selector is disabled in the UI and always takes effect for all workspaces.
Configuration Options¶
Aside from the sidebar UI, the configuration structure matches the Settings table in the README:
| Parameter | Description |
|---|---|
entries |
List of paths to inject (array, optional) |
entries[].path |
File path; in AGENTS mode can be a file name within the workspace (required) |
entries[].mode |
One of system, everyRound, agents (required) |
entries[].workspaceId |
Inject only in that workspace; omit for global. AGENTS mode ignores this option |
reminder |
off, turn (once per round), step (including after each tool call) |
everyRoundInMinimal |
Continue injecting Every turn content even in minimal mode (default false; in this case the system is occupied by the preset persona) |
maxFileBytes |
Maximum bytes per file; files exceeding this are skipped; applies to System prompt and Every turn; AGENTS uses built-in limits (default 65536, entered in KB in the configuration area) |
Path resolution rules: relative paths are relative to the working directory of each conversation; absolute paths are used as-is. Files that cannot be read, exceed the size limit, or are determined to be binary (non-text) will be silently skipped.
Installation and Activation¶
The official installation method comes from the README, and it explicitly states that direct installation from GitHub is not supported:
dsh plugin --profile web add dsh-prompt-file-injector
Before installation, it is recommended to review the source code and MIT license of the GitHub repository yourself. The plugin runs under the permissions of the current dsh process, and injected paths are those accessible to that process. Do not blindly add untrusted paths or overly large files to the list.
Typical Usage Steps¶
- Run the above command to install the plugin under the web profile.
- Open the dsh sidebar Plugins and find the dsh-prompt-file-injector card.
- Add an entry in the configuration area: fill in
path, select System prompt, Every turn, or AGENTS; set workspace restrictions and reminder as needed. - If a specification document needs to both remain in the system and be refreshed each round, add two entries with the same
pathand differentmode. - Start a conversation and confirm the model can access the injected content; in Every turn mode, pay attention to token usage and the
maxFileByteslimit.
Use Cases and Notes¶
Suitable for dsh users who need to stably incorporate fixed instruction documents, team standards, or AGENTS-style files into context. Every turn is suitable for files whose content changes and where the model must see the latest version each round; System prompt is suitable for constraints that remain unchanged throughout the conversation; AGENTS is suitable for file names aligned with dsh’s existing AGENTS loading behavior.
The community directory SkillHub plugin page and GitHub are independent information sources and have no official affiliation with DeepSeek / 幻方; the DSH ecosystem emphasizes “everything is a plugin”, and installation and configuration should follow the repository README.
Links¶
- Directory page: https://www.skillhub.cn/plugins/pgnqukezrdxmhjso/dsh-prompt-file-injector
- GitHub: https://github.com/pgnqukezrdxmhjso/dsh-prompt-file-injector