DeepSeek Harness 插件

dsh-codex-ryanzhou

Codex-style tools and agent preset for DeepSeek Harness(英文原文)

跳到安装方式

来源信息

GitHub 仓库
ryanzhou/dsh-codex
最近更新
2026年8月15日
分类
自动化与任务
GitHub stars
0
载体类型
plugin
目录证据
上游声明已找到 dsh.bundle
证据路径
package.json#dsh.bundle
核对版本
0.1.0-rc.8
上游核对日期
2026-08-20

该证据由上游目录提供。本站没有安装、运行或安全审核这个插件。

安装

默认先复制一段 Prompt,让 Agent 读 GitHub 仓库和源码;需要自己装时再切到命令。

复制这段 Prompt,发给 DSH、Codex 或其他 Agent,让它先读 GitHub 仓库和源码。

请先不要安装或执行任何命令。阅读这个插件的 GitHub 仓库、README 和关键源码,然后用清楚、直接的方式回答以下问题,帮助我判断它是否适合我的需求:

1. 这个插件是什么,解决什么问题;
2. 适合哪些用户和典型使用场景;
3. 安装后如何使用,并给出一个最小使用示例;
4. 有哪些已知限制,以及隐私、安全、兼容性或维护风险;
5. 给出“推荐 / 有条件推荐 / 不推荐”的明确建议和理由。

请区分仓库明确说明、根据源码推断和未知信息。证据不足时请明确说明,不要猜测或照抄 README。

GitHub:https://github.com/ryanzhou/dsh-codex
插件名:dsh-codex-ryanzhou
作者:ryanzhou

检查来源文件

安装前先看这个插件目录里的 README 和其他文件。

文件资源管理器3 个文件
README.md来源说明 · 只读预览

dsh-codex

A drop-in DeepSeek Harness extension that gives GPT models a Codex-style environment using the native, non-Code-Mode OpenAI Codex tool surface.

Looking to run DeepSeek V4 Flash in Codex instead? See dsv4-codex-proxy.

It adds a Codex-style mode agent preset with:

  • grammar-constrained OpenAI custom tool calls for apply_patch;
  • Codex-shaped exec_command/write_stdin unified exec with yielded background sessions and interactive PTY support;
  • native Web Bash rows and a Codex-style live-process-only background terminal list;
  • Codex-shaped update_plan, request_user_input, and view_image function tools;
  • /plan collaboration mode and /goal long-running work over DSH's native state, review, and continuation primitives;
  • the GPT-5.6 Sol Codex system prompt from the user-selected prompt archive;
  • DSH's existing sandbox, approval, todo, question, attachment, and tool-presentation behavior underneath the Codex-style wire format.

Why

GPT-5.6 does not perform as well in DSH's default Standard mode because its post-training expects the prompts, tools, schemas, and result formats used by Codex. Recreating those conventions gives GPT models a familiar environment where their coding behavior feels more at home, while preserving DSH's native experience for DeepSeek models. This makes it practical to use DeepSeek and GPT models side by side in the same DSH installation without forcing either through an unfamiliar agent setup.

Compatibility

Version 0.2.0 targets DSH 0.1.0-rc.6 and pi-ai 0.82.1. The extension uses small runtime bridges because those DSH versions do not expose grammar metadata or package-provided preset roots as public extension seams. Dependencies are pinned so an incompatible DSH upgrade fails installation instead of silently changing behavior.

Grammar custom tools require a GPT-5+ pi-ai route whose model metadata enables supportsOpenAIGrammarTools, such as the built-in OpenAI, OpenAI Codex, Azure OpenAI Responses, GitHub Copilot, opencode, or Cloudflare AI Gateway routes. Unsupported routes receive pi-ai's normal function-tool fallback.

Install

Install the bundle into every DSH profile where the preset should be available:

~~~sh dsh plugin --profile web add @ryantzhou/dsh-codex ~~~

After the command completes, restart that DSH process and select Codex-style mode when creating a session.

Remove it with the matching package spec:

~~~sh dsh plugin --profile web remove @ryantzhou/dsh-codex ~~~

How it works

The DSH bundle inserts one host plugin. At startup it:

1. adds this package's immutable preset directory to the active preset registry; 2. wraps each pi-ai provider once, immediately before dispatch, to attach the apply_patch Lark grammar; 3. maps Codex unified exec sessions onto DSH's background-job and PTY primitives; 4. shadows the generic Web tool/job views with Codex Bash rows and live background terminals; 5. composes native DSH plan and goal lifecycles with Codex-compatible model guidance; 6. removes the delegate schemas and their tool-specific guidance from Codex prompt assemblies.

The Codex tools themselves delegate to DSH's existing bash/pwsh, todo_write, ask_user_question, and read_image tools. This keeps policy enforcement and UI behavior in their existing owners. apply_patch runs the bundled parser and applicator through the same sandboxed shell delegate.

Development

~~~sh corepack pnpm install corepack pnpm check corepack pnpm test corepack pnpm build corepack pnpm pack ~~~

License

Original code is MIT licensed. Codex-derived grammar and behavioral references retain OpenAI's Apache-2.0 notice. The archived GPT-5.6 prompt is not covered by this project's MIT license; its collector applies CC0 but does not warrant third-party rights. See NOTICE and THIRD_PARTY_LICENSES.