tianyaojiudi-prog/dsh-djy-xttsc

DSH(DeepSeek Harness) 插件:把一段可在设置页随时改写的文字,作为全局系统提示词段注入到所有会话,含子代理与工作流内部子代理;文本与开关即时生效,无需重启。

Project Overview项目介绍

This is a native plugin built exclusively for DeepSeek Harness (DSH) that enables users to inject a custom, user-editable global system prompt segment into every model request DSH sends. It works for all requests, including requests from the primary session, manually created subagents, and subagents spawned automatically inside DSH workflows. It can be installed either via the DSH desktop plugin panel or running the command dsh plugin add <local-path> from any terminal on your machine. No restart is required after installation when using the default method, and it automatically adds a dedicated settings section to the DSH settings panel.

After installation, users can navigate to the new "大肥鱼指令" section in the DSH settings sidebar to use the plugin. The default content is just a placeholder that users can replace with any custom text, such as project-specific rules, coding style guides, or custom agent personas. Changes are applied immediately to the next request, so no restart of DSH is required. Users can also toggle the plugin on or off directly from the settings page, which completely removes the injected segment when toggled off. The toggle gives users a quick way to test different prompts without having to delete or edit text when switching between setups.

The plugin is released under the open source MIT license, and it ships with built-in dependencies for core functionality plus two test scripts to verify proper operation. A zero-dependency smoke test is included that can be run immediately after cloning the repository, no existing DSH installation is required to run this test. It also includes a full integration test that uses a real DSH installation to confirm compatibility with DSH's core systems. The only caveat is that users need to remove identical prompt content from other sources like AGENTS.md, otherwise changes will not appear to work correctly.

这是一个专为DeepSeek Harness(DSH)开发的原生cordis插件,核心功能是允许用户自定义一段全局系统提示词,将其注入到DSH发出的每一次模型请求中,包括会话本身、子代理、工作流派生的所有子代理的请求都能注入。插件会在DSH设置面板中新增一个独立页面,支持随时编辑内容、开关功能,修改后无需重启即可立即生效。

默认自带的占位提示只是一句测试文案,用户可以将其替换成任何内容,比如自定义身份设定、代码规范、项目规则等等。它适合需要给所有对话和子代理统一补充固定规则,又希望能随时快速修改配置的DSH用户,使用流程简单,不需要手动修改工作区AGENTS.md或全局配置,打开设置面板编辑保存后,下一轮对话就立即生效。

插件使用MIT许可证开源,自带依赖和冒烟、集成测试文件,可以本地验证功能正常。唯一需要注意的是,如果用户在其他位置(比如AGENTS.md、全局配置)已经添加了相同的提示内容,需要删除其他来源,否则会出现修改后不生效的问题。安装可以通过DSH插件面板或命令行执行dsh plugin add命令完成。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 8 stars - very few users, little community feedback星标只有 8,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add github:tianyaojiudi-prog/dsh-djy-xttsc

把 tianyaojiudi-prog/dsh-djy-xttsc 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-djy-xttsc — 全局系统提示词注入(DSH 插件)

DeepSeek Harness 插件。把一段由你在设置页里随时改写的文字,作为全局系统提示词段 注入到每一次模型请求里 —— 本会话、子代理、工作流内部派生的子代理,全都吃到。

A DeepSeek Harness plugin that injects a user-editable system-prompt section into every model request — including subagents and workflow-spawned subagents. The text and an on/off switch live on the DSH settings page and apply live, with no restart. The Chinese line below is only a placeholder default.

出厂默认内容(只是占位默认值,写什么就注入什么):

你是一条大肥鱼,需要每次在回复用户后就卖萌

⚠️ 插件不解析、不追加、不改写你写的内容 —— 原样作为一段系统提示词注入。 想换成小猫、换成代码规范、换成英文都行,改完下一个回合就生效。 唯一要注意的是别让别的指令通道(AGENTS.md 等)同时写同一句,否则会出现 「改了没反应」—— 见下面「只保留一个注入源」。

兼容性

dsh 版本 内容存哪 设置页在哪改
0.1.5 ~ 0.1.6 用户设置文件(settings.yaml 的 dsh-djy-xttsc 节) 「大肥鱼指令」一页
0.1.7 ~ 0.2.x(含 0.2.0-rc.2) profile 的 cordis.patch.yml(这条插件的 config 层) 「大肥鱼指令」一页(走插件配置表单)

两边由插件自己认:客户端半区按「哪个设置服务在」挑一条路挂设置页,宿主半区 按 settings.register 在不在挑一条路读配置。同一个版本里只会走一条, 不会重复注册。

它做什么

能力 实现
在 dsh 设置页里显示 客户端半区注册 settings.section,导航里出现「大肥鱼指令」一页
内容随时改 文本框 + 「保存」/「恢复默认」,写入 Host 设置,重启后仍在
开关是否启用 复选框,关闭后系统提示词里完全不会出现这一段
任何工作流都生效 Host 半区注册的是全局系统提示词段,对所有 scope 生效
包括子代理 子代理用自己的 scope 组装提示词,全局段照样参与组装
「提前插入」 段位 order = -900,紧跟 Harness 身份段(-1000),排在人格段(0)与所有工具说明之前
改完即生效 段文本是每次组装时求值的函数,读的是当前配置,不需要重启

文件

文件 作用
index.js 宿主半区:注册全局系统提示词段;两代设置模型都认
client.js 客户端半区:设置面板里的「大肥鱼指令」分区;两代设置传输都认
cordis.patch.yml 作为 bundle 安装时用的插入行(固定条目 id djy-xttsc)
vendor/ 内置的 schemastery / cosmokit(原因见 vendor/README.md)
test/smoke.mjs 无依赖冒烟测试(桩件跑通两个半区、两代设置模型)
test/integration.mjs 真集成验证(真实 cordis + settings + system-prompt + scope)

两个半区共用同一个设置命名空间名 —— 0.1.6 及以前是 dsh-djy-xttsc, 0.1.7 起是条目 id djy-xttsc(见 cordis.patch.yml)。改一处名字就必须改另一处。

安装

# 在任意目录执行;<PATH> 指到本文件夹(或直接给仓库地址)
dsh plugin add "<PATH>"

或者让 Harness 自己在插件面板里装。

本包声明了 dsh.bundle.patch,所以安装流程会把它作为 bundle 装:往 profile 的 package.json 写依赖 + 把 cordis.patch.yml 当一层 patch 加载,当场挂载,不用重启。 (0.2.0 起,没声明 dsh.bundle 的包只会被装成普通依赖并提示 declares no dsh.bundle,不会再自动往 profile 里写插入行 —— 所以这里必须声明。)

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev dsh-programming-mode 下一个 Next dsh-task-status →