OpenTritium/dsh-codex-shim
让GPT在DSH中宾至如归。
Project Overview项目介绍
This is a native plugin built exclusively for DeepSeek Harness (DSH) that simulates Codex-style prompts, tool vocabulary, tool outputs, and WebUI presentation for selected model routes. It enables more reliable tool use for GPT-family models and other Codex-adapted models running inside DSH. The plugin only interacts with DSH via public APIs and does not replace DSH’s native tooling; if the plugin is removed or a model does not match the configured patterns, DSH reverts to its original behavior. To install, users can download the release tarball via GitHub CLI or curl, then add it to their DSH profile using the pnpm dsh plugin command.
After installation, users can configure the plugin via the DSH settings.yaml file, where they can set global enabled status, define model patterns that should use the shim, and add explicit overrides for specific provider/model pairs. Changes to the configuration are picked up live by the file-backed settings provider, so no restart of DSH is required after editing. For users who prefer a graphical interface, an optional patch can be applied to the DSH WebUI to add a settings card for the plugin. This plugin is intended for DSH users who work with Codex-adapted models and want a native Codex-like experience within DSH.
The plugin currently requires Node.js version 22.19.0 or newer, and is only tested against a specific commit of DSH (47f943859bef60e4160492346772ded9b24f765a). Compatibility with other DSH versions or Windows operating systems is not yet verified. This plugin is released under the open-source MIT license, and it does not include a full Codex runtime, OAuth handling, model credentials, or a web search backend. Uninstallation is straightforward: just remove the plugin via the pnpm dsh plugin remove command, and reverse the optional WebUI patch if it was applied.
这是一个专为DeepSeek Harness(DSH)构建的原生插件,作用是为选定的模型路由模拟Codex风格的提示词、工具词汇、工具结果和WebUI展示,帮助GPT系列及其他适配Codex的模型更可靠地调用工具。该插件仅通过DSH的公共服务定义、消费者和UI插槽调用现有DSH能力,不会替换DSH原有工具,移除插件后DSH会恢复原有正常行为。安装可通过GitHub CLI或curl下载发布压缩包,再用pnpm dsh plugin命令添加到指定配置文件中。
安装后用户可通过DSH配置文件settings.yaml启用插件,设置匹配的模型规则,也可通过可选补丁为DSH WebUI添加设置卡片,获得图形化配置体验。用户可根据自身使用的模型路由,自定义启用或禁用不同模型对Codex风格的适配,规则可动态更新无需重启DSH。该插件面向需要在DSH中使用Codex适配模型、获得原生Codex使用体验的开发者和普通用户。
该插件要求Node.js版本为^22.19.0或>=24.0.0,当前仅适配特定提交版本的DSH,可选WebUI补丁也仅对应该版本DSH,暂未测试Windows兼容性。插件采用MIT许可开源,不提供Codex运行时、OAuth、模型或访问凭证,也不自带网页搜索后端。卸载只需移除插件包,若打了补丁可按需回滚补丁代码。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-codex-shim(OpenTritium/dsh-codex-shim)
仓库:https://github.com/OpenTritium/dsh-codex-shim
本站详情页:https://www.yhbd.top/plugins/opentritium-dsh-codex-shim/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 4 · 最近提交 2026-08-16 · 主语言 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 4 stars - very few users, little community feedback星标只有 4,几乎没人在用,遇到问题缺少社区反馈
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:OpenTritium/dsh-codex-shim
把 OpenTritium/dsh-codex-shim 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
@opentritium/dsh-codex-shim
This plugin simulates Codex-style prompts, tool vocabulary, tool results, and WebUI presentation for selected model routes, helping GPT-family and other Codex-adapted models use tools more reliably.
This is a shim, not a Codex runtime. It does not start a Codex app-server, handle Codex OAuth, provide models or credentials, execute commands by itself, or provide a web-search backend. It consumes existing DSH capabilities only through public service definitions, consumers, and UI slots; when a model does not match or the bundle is removed, DSH continues with its normal tools and behavior.
Install in a profile
The examples below install the bundle into the WebUI web profile. dsh plugin owns the profile manifest and dependency list.
Download the Release tarball with gh
gh release download --repo OpenTritium/dsh-codex-shim --pattern 'opentritium-dsh-codex-shim-*.tgz'
pnpm dsh plugin --profile web add ./opentritium-dsh-codex-shim-*.tgz
pnpm dsh --profile web --dump-config
Without GitHub CLI, download the same latest-release asset with curl and jq:
curl -fsSL https://api.github.com/repos/OpenTritium/dsh-codex-shim/releases/latest \
| jq -r '.assets[] | select(.name | endswith(".tgz")) | .browser_download_url' \
| xargs -r curl -fLO
pnpm dsh plugin --profile web add ./opentritium-dsh-codex-shim-*.tgz
pnpm dsh --profile web --dump-config
If the bundled gpt-5.6-* rule is enough, skip the next two configuration sections.
Configure through a configuration file
Configure this plugin through the profile's settings provider. The default file-backed provider uses $DSH_HOME/settings.yaml (normally ~/.dsh/settings.yaml); create or edit its codex-shim: section. The bundled gpt-5.6-* automatic rule remains in force until modelPatterns is explicitly set.
codex-shim:
enabled: true
modelPatterns:
- gpt-5.6-*
- deepseek-v4-*
modelOverrides:
- provider: openai
model: gpt-5.6-luna
enabled: true
- provider: example-provider
model: experimental-model
enabled: false
enabled: false turns the shim off globally. modelPatterns replaces the automatic-rule list; use modelPatterns: [] to disable automatic matching. Each modelOverrides row is an exact provider/model decision and takes precedence over the patterns. Omit the row to let that model follow the automatic rules. Provider and model must exactly match the resolved DSH route.
Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →
agentrq/agentrq
freestylefly/wesight
corrinehu/dsh-workbuddy-connect
KelaoHu/dsh-lowtide
liebaojun/MakoCode
Ayuilos/Miffan
starsstreaming/beautiCode