DSH HUB
HomePlugin StorePlugin PacksCommunityRankingsResourcesPublish Guide
Plugin source
Back to catalog

pgnqukezrdxmhjso /

pgnqukezrdxmhjso/dsh-prompt-file-injector

Verified

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

★ 0 Stars0 Forks0 IssuesN/A Community rating0 Confirmed installs
View on GitHub
READMESource: master@5e2348d4

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.

DSH HUB

A community index for DSH plugins. Not an official GitHub or DeepSeek AI product.

CommunityResourcesAPIAbout
—/ 5

No ratings yet

Verified DSH bundle

Commit 5e2348d4d3ba

Community comments

No comments yet. Be the first to write one.