shuind/dsh-codex-harness
Project Overview项目介绍
This is a native plugin built exclusively for DeepSeek Harness (DSH), that adds a customizable Codex coding mode to the DSH agent workflow. It comes with a streamlined Codex prompt and adds lightweight prompt constraints to reduce excessive output from GPT models. To install the plugin, you can run the command dsh plugin --profile web add @shuind/dsh-codex-harness@0.2.1 via the DSH CLI, then restart the DSH web interface after installation completes. Once restarted, you can select the Codex mode from the Agent preset menu to start a new coding session with this plugin enabled.
After you start a session, the plugin provides four core tools: exec_command, write_stdin, apply_patch, and update_plan for coding tasks. It supports Fast priority requests, GPT vision capabilities, custom thinking intensity, and adjustable context window size. It also displays real-time information about the active model, model response progress, context compression status, and request duration. This plugin is designed for DSH users who prefer the Codex coding workflow with OpenAI's Responses API.
Before using the plugin, you need to configure a valid OpenAI Responses-compatible provider, endpoint, API key, and GPT model in DSH’s model settings. You can also pair this plugin with the separate dsh-codex-connect plugin to use ChatGPT subscription models. All prompt settings can be edited in DSH’s plugin configuration panel, changes take effect on your next request, and you can restore the default prompt template at any time. The plugin is released under the open-source MIT license with no usage costs.
这是一个专为DeepSeek Harness(DSH)打造的原生插件,为DSH提供了带可自定义提示词的Codex编码工作模式。它内置精简的Codex提示词,还针对GPT的过度冗余输出增加了提示词约束,用户可在DSH的插件配置界面查看、编辑或恢复默认提示词,安装可通过DSH CLI执行命令一键完成。
安装完成后重启DSH Web端,在「Agent预设」中选择「Codex模式」即可创建新会话使用。该插件适合需要使用OpenAI Responses API和Codex编码模式的DSH用户,支持Fast请求、GPT图片识别、自定义思考强度和上下文容量,还能实时显示请求模型、回复状态和上下文压缩耗时。
使用前需要在DSH的模型配置中设置好支持OpenAI Responses的服务商、端点、API密钥和模型,也可配合dsh-codex-connect使用ChatGPT订阅模型。本插件采用MIT许可证开源,没有额外使用成本,提示词修改后下次请求生效,可随时恢复默认模板。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-codex-harness(shuind/dsh-codex-harness)
仓库:https://github.com/shuind/dsh-codex-harness
本站详情页:https://www.yhbd.top/plugins/shuind-dsh-codex-harness/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 6 · 最近提交 2026-09-21 · 主语言 TypeScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- Only 6 stars - very few users, little community feedback星标只有 6,几乎没人在用,遇到问题缺少社区反馈
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 @shuind/dsh-codex-harness@latest
把 shuind/dsh-codex-harness 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
@shuind/dsh-codex-harness
为 DSH 提供可自定义提示词与 Codex 工具的编码模式。
本地开发中的新版支持直接编辑 DSH 预设、加入 Codex 能力及另存副本,详见 预设编辑说明。尚未发布到 npm。
功能
- 使用精简codex提示词;对gpt过度拉屎做了少量提示词约束。
- 在 设置 → 插件 → 插件配置 → Codex Harness 中查看、编辑或恢复完整提示词。
- 在 设置 → 插件 → 插件配置 → Codex Harness 中展开 预设编辑:Codex 模式和其它预设处于同一级,打开时默认选中 Codex。用户预设可直接编辑;DSH 内置预设只读,先创建可编辑副本。
- 提供
exec_command、write_stdin、apply_patch和update_plan。 - 支持 Fast 请求、GPT 图片与思考强度和上下文容量。
- 实时显示请求模型、模型回复和上下文压缩状态及耗时。
- Responses 请求优先使用原生
apply_patch、hostedweb_search和远程压缩,失败时回退到 DSH 实现。
安装
dsh plugin --profile web add @shuind/dsh-codex-harness@latest
重启 Web,在 Agent 预设 中选择 Codex 模式,再创建会话。
宿主版本
Codex 模式使用 @deepseek-ai/dsh-persona 的 prefix 配置。宿主必须提供
@deepseek-ai/dsh-persona >=0.1.3-alpha.2;当前的 DSH 0.1.5-rc.2 满足此要求。
更早的 persona 版本只接受 text,会在加载预设时报告缺少 prefix。
预设管理还需要 DSH 的 agent-presets、api-remotes、atomic-write 和 typert-protocol 接口至少为
0.1.5-rc.2。较旧宿主仍可加载 Codex 工具层,但不会注册预设编辑入口。
已有自定义预设
插件会自动更新未修改过且带有本插件管理标记的旧预设。包含用户修改的预设会保留,
需要手动迁移:先备份 $DSH_HOME/.agent-presets/codex-collaboration,再打开其中的
agent.cordis.yml,将 @deepseek-ai/dsh-persona 配置下的 text: 改为 prefix:,
保留后面的提示词内容,然后重启 DSH 并重新选择 Codex 模式。若预设没有该管理标记,
也应按同样步骤迁移;不要覆盖已有的自定义提示词。
配置
模型
在 DSH 的 Models 中配置支持 OpenAI Responses 的 provider、endpoint、API key 和 GPT 模型。例如:
api: openai-responses
baseURL: https://your-responses-endpoint.example.com
apiKeyEnv: OPENAI_API_KEY
也可以配合 dsh-codex-connect 使用 ChatGPT 订阅模型。
预设编辑
打开 设置 → 插件 → 插件配置 → Codex Harness,展开其中的 预设编辑,从选择器中选择 Codex 或其它预设。编辑器只展示名称、说明、Codex 提示词和能力开关,不要求直接编辑 YAML。
用户预设可以直接保存。DSH 内置预设不能修改,点击 创建可编辑副本 后再保存;副本会自动加入同一个选择器,也会保留源预设的工具、插件和其它配置。普通预设还可以在编辑时加入 Codex 能力。活动状态属于全局显示设置,远程上下文压缩、托管网络搜索、终端、补丁、计划和 Codex 提示词属于 Codex 模式能力,并可随预设保存。
Fast 与上下文
- Fast:在 Codex 模式的模型菜单中开启,向 Responses 请求发送
service_tier: "priority"。 - 上下文容量:点击输入栏旁的上下文用量指示器,可设置
1K–1000Ktokens;下一次请求和自动压缩使用该值。
License
MIT
HuaJi2077/empty-fort-strategy
Nwflower/dsh-weneed
GongYuanCaiJi/dsh-i-have-adhd
zhuyun017/dsh-her-companion