dsh-codex-preset: Enabling a Codex-style Five-Stage Engineering Workflow for DSH

Preface

When running agents in DeepSeek Harness (DSH), the common friction is usually not that “the model isn’t smart enough,” but rather conversational habits: verbally claiming “fixed” without any command output; touching five files in a single diff; presenting guesses as verified conclusions; or having context from earlier decisions squeezed out after a long conversation. The DSH ecosystem allows you to declare agent presets using plugin bundles, embedding the persona and workflow order into the Cordis composition rather than relying solely on default chat-style prompts. The following introduces the community plugin dsh-codex-preset (maintainer qianai05233), which translates the OpenAI Codex CLI philosophy of “explore first, plan second, change in small steps, verify always, then report” into a Codex Mode preset within DSH.

What is this?

dsh-codex-preset is a Codex Mode agent preset for DSH: it doesn’t change the underlying model, but swaps in a fixed workflow order and Evidence Discipline—assertions regarding the codebase must be traceable to “reading a file” or “running a command.” The plugin is categorized as Workflow on SkillHub; repository github.com/qianai05233/dsh-codex-preset, MIT License (package.json version 1.0.0).

What problems does it solve?

The README condenses several issues with default agents into hard constraints within the persona, corresponding to five stages:

Stage Requirement
① EXPLORE Explore before acting: use glob to find files, grep to find symbols; read-only, no writes
② PLAN List todo_write first; use ask_user_question if requirements are ambiguous, guessing is not allowed
③ IMPLEMENT Must read before modifying; proceed in small steps; no drive-by refactoring of unrelated code
④ VERIFY The dividing line from “chatty models”: conclusions not verified by execution cannot be stated as facts; every non-zero exit code must be handled
⑤ INTEGRATE Explain clearly what was changed, what was run, and the results; use git tools for database commits

VERIFY and Evidence Discipline are the core differentiators: it is forbidden to package unexecuted checks as confirmed facts.

Differences from the built-in standard preset

The author states that the following differences are intentional, not omissions:

  • Hardcoded five-stage workflow persona—the main value of this preset
  • Preserves shell / jobs / subagent / workflow—coding requires running commands, monitoring long tasks, and parallel division of labor
  • Hooks into plan-mode—“Explore first, act second” is enforced in DSH via plan mode
  • Hooks into compaction pruning—context control for long sessions

The 17 declared plugins all originate from the DSH core, requiring no additional installation (per README prerequisites).

Technical Implementation: Declaring presets via Cordis patch

The early DSH mechanism of storing presets in $DSH_HOME/.agent-presets/<id>/ is deprecated (the official skill editing-cordis-compositions states this directory is no longer read). The current method is to declare @deepseek-ai/dsh-agent-preset lines via the bundle’s patch; this repository serves as a complete example of that syntax.

The core form in cordis.patch.yml is as follows (README excerpt; the plugin list contains 17 items in the source material, not expanded here):

- id: preset-codex
  name: '@deepseek-ai/dsh-agent-preset'
  config:
    id: codex
    name: Codex Mode
    order: 5
    plugins: [ ... 17 items ... ]

In package.json, dsh.bundle.patch points to ./cordis.patch.yml, injecting the composition into the Web profile upon plugin installation.

Installation and Activation

Prerequisite: DSH >= 0.1.7-rc.1.

Install using the command provided in the materials (note --profile web):

dsh plugin --profile web add github:qianai05233/dsh-codex-preset

After restarting dsh web, select Codex Mode from the Agent Presets in the interface.

Typical Usage and Customization

Activating the preset is the typical usage: once Codex Mode is selected, subsequent sessions will proceed according to EXPLORE → PLAN → IMPLEMENT → VERIFY → INTEGRATE. To modify the workflow text, edit persona.prefix in cordis.patch.yml within the repository, and reinstall using the same installation command after making changes:

dsh plugin --profile web add github:qianai05233/dsh-codex-preset

The README does not provide an independent “business scenario script”; the value lies in constraining agent behavior rather than additional CLI subcommands.

Use Cases and Notes

Who it is for

  • Teams or individuals seeking a project rhythm similar to Codex CLI within DSH Web
  • Coding sessions requiring enforcement of “read before modify, run before concluding, small diffs”
  • Developers looking to reference the Cordis patch agent preset declaration syntax to extend their own bundles

Notes

  • The plugin runs with the current dsh process permissions; please review the repository source code and MIT License yourself before installing.
  • SkillHub (Directory Page) is a community plugin directory and has no official affiliation with DeepSeek / High-Flyer; DSH’s philosophy is “everything is a plugin,” and this preset is one of the workflow-type community contributions.
  • The repository README shows 0 stars (subject to the GitHub page), which does not represent functional completeness; rely on the README and cordis.patch.yml.

Complementary Tools and Other Links

Optional complementary tools from the same maintainer (listed in README, not required for this plugin):

  • dsh-codex-panel—Floating control panel for one-click approval of git/GitHub write operations
  • dsh-freeapi-panel—Aggregation of multiple legitimate free LLM providers

Directory Page: https://www.skillhub.cn/plugins/qianai05233/dsh-codex-preset
GitHub: https://github.com/qianai05233/dsh-codex-preset

Following the steps above, if you are plagued by “talking too much, verifying too little, and making scattered changes,” you can use Codex Mode in DSH to embed the five stages and evidence discipline into the preset, rather than relying on manual reminders every time to tell the agent to grep before modifying and run tests before reporting results.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye