dsh-inject-head

DSH PLUGIN模型与账号接入

仓库 HYBB-rash/dsh-inject-head

模型与账号接入 L5 · 运行验证通过 安全审查:低风险 可信度:金 可安装插件
安装这个插件

dsh-inject-head 是 HYBB-rash 维护的 模型与账号接入 类 DSH 可安装插件, 仓库为 HYBB-rash/dsh-inject-head,许可证 MIT。 下面按「装什么、怎么装、验没验过、跑起来要注意什么」逐项列出。

一句话选型结论

按资料字段整理

dsh-inject-head 是模型与账号接入类的 DSH 可安装插件,验证等级 L5 · 运行验证通过,安全审查为低风险,有可直接复制的安装命令。验证通过不等于安全:插件会读写文件、执行命令或联网,装前先到仓库确认它做了什么;涉及密钥或系统权限的,建议先在隔离环境试装。

分类模型与账号接入 收录类型可安装插件 验证等级L5 · 运行验证通过 安全审查低风险
验证等级 L5 L5 · 运行验证通过
GitHub 星标 0 复刻 0 · 未关闭 issue 0
最近更新 2026-10-29 创建于 2026-10-29
README 5.1 KB 正文体量,越大说明说明书写得越细

安装

可安装插件
在 DSH 里执行,装完用 dsh plugin list 确认已挂上;标了 L4 / L5 的命令已在沙盒里真实跑通
dsh plugin --profile web add github:HYBB-rash/dsh-inject-head#v1.0.0
  1. 1
    确认版本与运行环境

    仓库没有标注兼容版本与 Node.js 要求,先确认你的 DSH 版本能装,再继续。

  2. 2
    执行安装命令

    在 DSH 里执行上面的命令;多包仓库要注意区分具体子包名,别装错包。

  3. 3
    确认已挂载

    用 dsh plugin list 查看列表里是否出现这个插件,出现即挂载成功。

  4. 4
    试跑并检查权限

    加载后跑一个最小用例,确认它能正常工作;同时看它申请了哪些文件、命令或网络权限。

兼容 DSH 版本未标注版本不匹配时安装会报错
Node.js 要求未标注来自仓库 package.json 的 engines 字段
前置依赖无需要同时安装的同级依赖
npm 包名未发布到 npm可用 npm view 查看包信息

能做什么

模型与账号接入
字段来自项目仓库与公开索引,中文说明由本站标注

上游标签

agentcordisdeepseek-harnessdsh-pluginsystem-prompt

验证等级与安全审查

L5 · 运行验证通过
自动化流程结论,不是人工审核
验证等级L5 · 运行验证通过在 dsh 沙盒中完成安装与运行冒烟——装得上、跑得起来
安全审查低风险静态分析结论,未标注不代表已通过审查
仓库健康度活跃按仓库活跃度与最近更新时间给出
可信度金综合仓库活跃度与验证结果

选择建议

装之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 验证等级 L5:安装和运行都在沙盒里跑通过,装完能直接用的概率高。
  • 静态安全审查为低风险,没有发现明显可疑行为。
  • 有可直接复制的安装命令,不用自己翻文档找入口。

先想清楚的地方

  • 没有声明 Node.js 版本要求,版本不匹配可能装不上。
  • 验证通过不等于安全:插件会读写文件、执行命令或联网,装前先到仓库确认它做了什么。

更适合

  • 需要在模型与账号接入场景里给 DSH 补能力的人。
  • 想装完就能用、不想自己排依赖的人。
  • 能接受在本地装依赖、愿意自己确认权限的人。

不太适合

  • 只使用 DSH 官方内置能力、不接受第三方插件的人。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
插件验证等级安全审查星标兼容版本安装命令
dsh-inject-head当前 L5 · 运行验证通过 低风险 0 未标注 有
archify L4 · 沙盒安装通过 低风险 8.0 万 未标注 有
DeepSeek-Reasonix L4 · 沙盒安装通过 低风险 3.6 万 未标注 有
nocobase L3 · 安装规范通过 低风险 2.5 万 0.1.1-rc.2 无
learn-harness-engineering L4 · 沙盒安装通过 低风险 2.0 万 未标注 有
dsh-our-free-model 未做沙盒验证 未标注 8,064 未标注 无

仓库档案

模型与账号接入
字段来自项目仓库与公开索引,中文说明由本站标注
作者 / 维护方HYBB-rash仓库 dsh-inject-head · 默认分支 main
分类模型与账号接入ai
收录类型可安装插件声明了 dsh.bundle、可用 dsh plugin add 安装的条目
开发语言未标注仓库主语言
许可证MIT商用或二次分发前请确认条款原文
星标 / 复刻 / issue0 / 0 / 0收录时的数值,非实时
创建 / 更新2026-10-29 · 2026-10-29最后推送 2026-10-29
本站收录2026-10-30首次进入本站目录的时间

README 全文

5.1 KB
作者原文,中文版优先;只做安全转义,不改内容

dsh-inject-head

Inject a fixed block of text at the very top of every DeepSeek Harness system prompt — including presets that normally discard outside contributions.

Zero dependencies. One file to edit. Takes effect on the next turn, no restart.

your text                                  ← line 1, this plugin
You are an AI agent that helps the user…   ← harness identity
…deployment persona, tools, policies…

Why this needs two mechanisms

DSH assembles a prompt by sorting sections ascending on (order, name) and joining the non-empty ones with blank lines. A section at order -5000 therefore lands above harness:identity (-1000) and the deployment persona (0):

Section Order
operator:head ← this plugin -5000
harness:identity -1000
deployment:persona-prefix 0
tools / policies 1000 … 9900
deployment:persona-suffix 10200

But a preset declared complete: true (for example minimal) runs sections: [ownPersona] at the end of assembly and throws every other section away. No section can reach it — that is host behaviour, not a limitation of this plugin.

So the plugin registers two things from the same text source:

  1. the global section operator:head at order -5000, with interpolate: false so braces and {{…}} in your own words can never break an assembly;
  2. the prompt variable inject_head.

Section-based presets get the text for free. For a complete: true preset, add one line to that preset's persona prefix:

prefix: >-
{{inject_head}}

You are a helpful software engineer assistant.

The same file still drives the text. Nothing else about the preset changes.

Install

The package declares dsh.bundle.patch, so it installs as a normal bundle.

git clone https://github.com/HYBB-rash/dsh-inject-head.git

Then point the plugin manager at the cloned directory — install_bundle with its absolute path — or add it to ~/.dsh/profiles//package.json by hand:

{
"dependencies": {
"dsh-inject-head": "link:/absolute/path/to/dsh-inject-head"
},
"dsh": {
"profile": {
"bundles": ["…", "dsh-inject-head"]
}
}
}

Link the package into the profile's node_modules, then restart the harness once. Editing the text afterwards never needs a restart.

Configure

One text source, four levels, highest priority first:

Priority Source Notes
1 DSH_INJECT_HEAD_TEXT inline; trimmed
2 DSH_INJECT_HEAD_FILE path to a UTF-8 file; trimmed
3 $DSH_HOME/inject-head.md default path (~/.dsh/inject-head.md)
4 DEFAULT_TEXT in index.mjs '' — inject nothing
mkdir -p ~/.dsh
printf 'Answer in English. Prefer short answers.\n' > ~/.dsh/inject-head.md
  • edit the file → next assembly picks it up (cached on mtime)
  • empty the file → injection silently stops
  • delete the file → nothing is injected

Use the environment variables when you want the text to travel with the shell rather than with the home directory — useful for per-project overrides.

Verify

Ask the harness to dump the composed prompt, or check the first line of any session:

dsh --profile "$DSH_PROFILE" --dump-config

The plugin row appears as inject-head with name pointing at index.mjs. To check the assembled prompt instead, ask your agent "what is the first line of your system prompt?" — it should be your text verbatim.

Run the plugin's own tests:

npm test    # 9/9 passed

Limits

  • complete: true presets need the one-line persona edit. The plugin cannot inject a section into them; only the variable route works.
  • Don't edit a preset persona that another plugin asserts on. Some plugins validate a preset's persona by exact string equality and silently disable themselves when it changes. Adding {{inject_head}} to such a preset will trip that check — use a different preset, or leave that one uncovered.
  • The text enters session history. It is part of the system prompt, so it shows up in exported or shared sessions. Never put secrets in it.
  • It costs tokens every turn. A short line is negligible; a paragraph is not.

中文说明

在每份系统提示词的最上方注入一段固定文本。

  • 唯一真源是 ~/.dsh/inject-head.md,改完下一轮即生效,不用重启
  • 清空文件即关闭注入,删除文件则什么都不注入
  • 也可用 DSH_INJECT_HEAD_TEXT(直接给文本)或 DSH_INJECT_HEAD_FILE(指定文件)覆盖

覆盖范围:普通 preset(standard / ptc / cordis 这类按 section 组装的)自动生效;声明了 complete: true 的 preset(如 minimal)在组装末尾会丢弃所有其它 section,需要你在它的 persona 前缀里加一行 {{inject_head}},文本仍由同一个文件驱动。

已知边界:若某个 preset 的 persona 被其它插件按精确字符串校验,改它会让那个插件静默失效 —— 这种情况请换一个 preset,或让它保持不覆盖。注入内容会进入会话历史,导出或分享会话时可见,不要放密钥。

License

MIT © 2026 Herman Hong

常见问题

6 问
答案由本站依据条目字段整理,不引用上游原文
dsh-inject-head 怎么安装?

在 DSH 里执行 `dsh plugin --profile web add github:HYBB-rash/dsh-inject-head#v1.0.0` 即可。

dsh-inject-head 的验证等级是什么意思?

L5 · 运行验证通过。在 dsh 沙盒中完成安装与运行冒烟——装得上、跑得起来

dsh-inject-head 安全吗?

低风险。

dsh-inject-head 装之前要先确认什么?

先看它会读写哪些文件、执行哪些命令、连接哪些网络地址;验证等级只说明装得上、跑得起来,不等于安全。涉及密钥或系统权限的,建议先在隔离环境试装。

dsh-inject-head 用的是什么许可证?

上游标注为 MIT。商用或二次分发前请到仓库确认许可证原文。

这条记录的数据可靠吗?

本站按仓库名去重后合并整理,字段以作者仓库与 npm 元数据为准;安装命令、仓库地址与 README 保持原文,带 L4 / L5 标记的安装命令已在隔离沙盒里真实跑通。

模型与账号接入
按星标排序,可作替代方案

archify

archify

从仓库或系统描述生成经过校验的自包含交互式架构图、流程图、时序图、数据流图和生命周期图。

L4 · 沙盒安装通过 8.0 万 星

nocobase

nocobase

L3 · 安装规范通过 2.5 万 星

dsh-our-free-model

dsh-our-free-model

为 DeepSeek Harness 挂载免登录、免 API Key 的免费前沿模型通道,装完即用,并附用量看板与 OpenAI 兼容本地转

未标注验证等级 8,064 星

dsh-purge

dsh-purge

dsh-purge 是一款 DeepSeek Harness 设置插件,可修改默认副本、权限策略和工具限制,并添加规则卡片以分组应用补丁,支

L5 · 运行验证通过 4,573 星

插件的元信息来自作者仓库;分类、验证等级与安全结论的中文说明为中文整理,最近核验 —。