@panando/dsh-codex-harness:Add Codex-Style Code Writing Presets to DSH

Preface

DeepSeek Harness (DSH) standard mode is designed for general dialogue: chatting, searching for information, and minor code tweaks. However, when modifying features, fixing bugs, or writing tests in real repositories, conversational habits often clash with coding habits—making changes without understanding the structure, relying on repetitive terminal grep commands, blocking the conversation with long build processes, or claiming “fixed” without providing verified output. Chat mode shouldn’t be burdened with a full set of engineering conventions; what you need is a distinct “coding” workflow mode. The following introduces the community plugin @panando/dsh-codex-harness: it registers a preset named “Codex Mode” within DSH, assembling behavioral conventions (read-before-write, search-first, background execution, evidence-based delivery) and a curated list of official tools. It only takes effect within sessions where this mode is explicitly selected.

What is this

@panando/dsh-codex-harness (repository panando/dsh-codex-harness), published by maintainer panando, is categorized as a “Workflow” in the SkillHub Plugin Directory. The current npm version is 0.1.3, licensed under MIT. It does not re-implement tools; instead, it relies on official DSH plugin packages, registering presets and mounting tools via cordis.patch.yml, while providing the default behavioral convention text in lib/prompts.js. Once installed, a “Codex Mode” option appears in the mode selector; DSH functions as usual in other modes when this plugin is not installed.

Core Features

The README uses a table to contrast four common issues with the Codex Mode solutions, which can be summarized into the following capabilities.

Engineering Behavioral Conventions

Sessions begin with read-only reconnaissance, list a plan, and only modify files after confirmation; prioritize built-in session search tools (corresponding to grep, glob in prompts) rather than arbitrarily stacking terminal commands; time-consuming builds, tests, and installations can be moved to background tasks, allowing the conversation to continue; delivery requires explaining which files were changed and attaching real verification output. The main text is located in DEFAULT_CODEX_SYSTEM_PROMPT within lib/prompts.js and can be modified as needed.

Tools and Runtime Capabilities

Capability Specifics
Terminal Uses bash on macOS / Linux and PowerShell on Windows, auto-selecting based on platform
Files & Search Read/write files; search by filename or content, adhering to session file permission policies
Plan Mode Understand structure in a read-only state, produce an executable plan before making changes
Background Tasks Run long commands in the background
Context Compaction Compacts when conversation becomes long; excessively long tool outputs are truncated
Web Access Web search and scraping
Skill System Load skills from the file system and invoke by name
Collaboration Goal tracking, todos, asking the user questions, result presentation

The toolkit includes dsh-tool-bash / dsh-tool-pwsh, dsh-tool-fs, dsh-tool-fs-search, dsh-tool-jobs, dsh-plan-mode, dsh-compaction-basic, etc. (see the “Included Tools” section in the repository README for the complete list).

Settings Page Description Card

The web interface path is “Settings → Plugins → @panando/dsh-codex-harness”. The card explains the location of the prompts and how to modify them.

Environment Requirements

Component Version Description
DSH 0.2.1-rc.2 or other 0.2.x stable versions Peer dependency is locked to 0.2.1-rc.2
Node.js 18 or higher 22 or higher recommended

If the DSH version is inconsistent with the peer dependency, the installation process may indicate incompatibility; refer to the README to adjust the peerDependencies in package.json to the DSH version actually in use.

Installation and Activation

Installing from npm is recommended. First, navigate to the DSH profile directory you are using (commonly named desktop or web, depending on your local setup):

cd ~/.dsh/profiles/<your profile name>
pnpm add @panando/dsh-codex-harness

Edit the profile’s package.json and add the package name to the dsh.profile.bundles array:

{
  "dsh": {
    "profile": {
      "bundles": [
        "@deepseek-ai/dsh-base",
        "@deepseek-ai/dsh-web-app",
        "@panando/dsh-codex-harness"
      ]
    }
  }
}

Bundles are assembled during the DSH startup phase; DSH must be restarted after modifying files, as changes are not applied hot-reloaded. For local development, you can link from source using pnpm add /absolute/path/to/dsh-codex-harness into the profile; see the “Install from Source” section in the repository README for steps.

It is recommended to review the repository source code and LICENSE before installing to ensure behavior and permissions meet expectations; the plugin runs within the current DSH process and possesses the terminal and file access capabilities allowed by the process’s sandbox policy.

Typical Usage

  1. Launch DSH and open the Web interface.
  2. Start a new session and select “Codex Mode” in the mode selector.
  3. In that session, describe the modification goals within the repository (fixing bugs, adding features, writing tests, etc.), following the preset conventions: reconnoiter first, then plan, then modify and verify.

Note: Existing sessions will not switch presets; please start a new conversation to change modes. This preset is not bound to a specific model and uses the profile’s global default model; adjust the model in the profile settings if necessary.

Optional Configuration

This package has no required configuration items. Common customization paths are as follows.

To modify behavioral conventions: Edit the following file in your profile directory:

node_modules/@panando/dsh-codex-harness/lib/prompts.js

Take effect by starting a new session after modification. Do not use {{variable name}} templating in the main text unless the variable name is provider or model, otherwise DSH parsing will error out.

To modify identity declaration: In the codex-persona item of cordis.patch.yml, field prefix, which defaults to containing {{model}}; similarly, only {{model}} and {{provider}} are allowed.

To add or remove tools: Adjust in the plugin list of cordis.patch.yml; disabled can turn off tools conditionally (the terminal selection of two lines relies on this to choose by platform).

lib/index.js also declares fields such as persona, systemPrompt, terminalToolsEnabled, patchToolEnabled, planToolEnabled, webSearchEnabled, fast, and fastModeControlEnabled. The README notes that current runtime behavior is determined by cordis.patch.yml and lib/prompts.js; currently, only systemPrompt in apply() actually affects the prompt, while the rest are reserved for future versions.

Use Cases and Precautions

Suitable for: Modifying features, fixing bugs, and writing tests in existing code repositories; tasks requiring understanding the structure before acting; long tasks requiring repeated builds and tests.

Less suitable for: Pure chat, copywriting, or research sessions that do not touch code; standard mode is lighter for these.

The DSH ecosystem adopts an “everything is a plugin” philosophy; SkillHub and similar sites are community directory sites and have no official affiliation with DeepSeek / High-Flyer. This article introduces a community-maintained preset package, not an official app store entry. The current GitHub star count for the repository is 1. Versions and dependencies are subject to GitHub and npm @panando/dsh-codex-harness.

Conclusion

@panando/dsh-codex-harness encapsulates Codex-style coding habits into a selectable “Codex Mode” preset within DSH: it does not disrupt other modes but enables a full set of conventions and tools only in sessions that require coding. Directory page: https://www.skillhub.cn/plugins/panando/dsh-codex-harness; Source code and documentation: https://github.com/panando/dsh-codex-harness.

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

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

Xiaoye