ChatGPTClaudeGrok / X / CursorGemini

dsh-plugin-codex-coding: A DSH plugin Bringing a Codex-Style Coding Workflow to DeepSeek Harness

ygzhang-lab/dsh-plugin-codex-coding

Development & OperationsVerified
Listed on 2026-11-06
Page last updated 2026-11-06

A Codex-style coding plugin for DeepSeek Harness that enforces a delivery contract, adds an apply_patch tool and automatic reasoning-effort switching, so DSH sessions safely handle Q&A, review and coding workflows.

dsh-plugin-codex-coding is a DSH plugin that installs a Codex-style coding workflow into DeepSeek Harness. It targets scattered AI edits, uncontrolled change scope, and missing verification by enforcing a fixed five-stage delivery contract on every coding turn, backed by Q&A, Review, and Codex workflow modes plus a surgical patch tool. The plugin ships as one custom preset and three custom tools, and also offers automatic reasoning-effort switching, local Skill and tool toggles, and bilingual Chinese/English output.

How to Install

install
dsh plugin --profile web add github:ygzhang-lab/dsh-plugin-codex-coding
Category
Development & Operations
Platform
DSH Plugin
Author
ygzhang-lab
Distribution
Plugin

dsh-plugin-codex-coding Key Features

Five-stage delivery contract for codingapply_patch for surgical multi-file editsAuto Q&A / review / code modesReasoning effort auto-selected by taskToggles for local Skills and plugin tools
Listed on dsh-plugin.org

dsh-plugin-codex-coding Repo Summary

What Does It Do?

DSH Codex Coding is a DSH plugin for DeepSeek Harness that brings a Codex-style coding workflow, packaged as one custom preset (Codex Coding) plus three custom tools. It solves the problem of scattered, uncontrolled AI code changes by enforcing a fixed delivery contract: establish context, define done, change surgically, verify before claiming success, and deliver compactly. Core capabilities include three workflow modes with automatic selection, surgical apply_patch edits, automatic reasoning-effort switching, local Skill and DSH tool toggles, and bilingual Chinese/English output. The plugin changes no agent behavior at host startup; its only entry point is choosing the Codex Coding preset when creating a session.

Core Features

  • Delivery contract: a standalone five-stage system prompt section, separate from the persona prefix, with concrete playbooks for Bug, Feature, Refactor, Review, and Docs tasks.
  • Three workflow modes: Q&A, Review, and Codex, chosen automatically by default or pinned manually via coding_mode; Q&A and Review never edit code on their own.
  • Codex patch tool: a new apply_patch handles multiple files, hunks, and moves in one call, parses Codex patch syntax strictly, and reports expected content plus file snippets on mismatch instead of silently editing the wrong file.
  • Automatic reasoning effort: auto defaults to Low, rises to High only for multi-file or module-level review/refactor work, and to Max only for project-level builds or bugs that cannot be fixed in one pass.
  • Per-turn mode card: each turn records its own workflow mode and reasoning effort; switching affects only later turns, and historical cards are read-only.
  • Low token overhead: no extra model call for complexity judgment, and coding_context gathers repo state, AGENTS.md, diff stats, and verification commands in one shot.

How to Use This Plugin?

After enabling it in DSH and restarting, create a new session and select the Codex Coding preset; sessions on other presets do not load this plugin's behavior. The default auto mode picks Q&A, Review, or Codex per request, so a first prompt can simply be "fix this error: locate the cause, change it, then run the narrowest test." To switch, use the auto / Q&A / Review / Codex controls on the card at the end of the session, run /workflow review in the input box, or have the agent call coding_mode(mode="review"). Reasoning effort is usually picked in the model selector; clicking the auto link on the card hands it back to the plugin. Configure reasoning policy, session language, local Skills, and tool toggles on the plugin page in DSH Desktop, or via the profile's cordis.patch.yml in the CLI. To check current state, ask the agent or run /workflow.

How to Troubleshoot This Plugin?

When patch context does not match, apply_patch returns the expected content and file snippets; compare them with the current file and regenerate the patch rather than relying on a silent write. If no mode card appears or the contract behavior is missing, confirm the session uses the Codex Coding preset, since other presets do not load the plugin. If interface and reply languages diverge, check the session language setting and the OS interface language, because auto mode reads the system language to decide reply language.

This page is an independent rewrite of the plugin's official README — for authoritative documentation and the latest changes, refer to the source: ygzhang-lab/dsh-plugin-codex-coding. The plugin is third-party code that runs on your machine once installed; inclusion does not imply endorsement — please review the source before installing.

Install, update, and uninstall this plugin in the Plugin Market of DeepSeek Harness's DSH Plugin Hub
ChatGPTClaudeGrok / X / CursorGemini

DSH Plugin FAQ