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、模型或访问凭证,也不自带网页搜索后端。卸载只需移除插件包,若打了补丁可按需回滚补丁代码。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • 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 →

← 上一个 Prev dsh-launcher 下一个 Next dsh-plugin-longgraph →