dsh-git-style-zeta: Configuring Prompt Guidelines for Git Commits and PRs in DSH

Introduction

When using DeepSeek Harness (DSH) to help write commit messages or PR descriptions, teams often rely on verbal agreements regarding format that rarely persist consistently across every conversation. Switching models or sessions often leads to style drift; if you need to retain attribution like Co-authored-by, it relies on the model’s “memory” rather than configurable rules.

The dsh-git-style-zeta (maintained by zeta987) introduced below takes a different approach: it writes Git commit and Pull Request writing instructions into an optional segment of the DSH native system prompt. You edit this in Settings, and it applies to new turns immediately without restarting the host (note that installing or uninstalling the plugin itself, as described in the README, still requires a host restart). It is prompt guidance, not a Git hook or policy engine—it cannot replace human review, nor can it guarantee that every commit will include attribution.

What is this

dsh-git-style-zeta is a DSH plugin published on npm (version 0.3.0 in current materials, MIT license). Its description is: Configurable Git commit and pull request prompt instructions for DeepSeek Harness.

The plugin contributes two optional paragraphs to the DSH system prompt, intended for commits and PRs respectively. Empty fields inject no content; the two fields are independent of each other. The plugin does not execute Git commands, install hooks, modify Git configurations, rewrite existing commits, or alter external tools like Codex or Claude. The prompt instructs the model to preserve existing author and co-author information in the repository (including attributions left by other agents).

Community directory page: skillhub.cn/plugins/zeta987/dsh-git-style-zeta. Source code and documentation: github.com/zeta987/dsh-git-style-zeta.

Core Features

Two Configurable Instruction Sets

Config Item Default Value Purpose
git-commit-instructions "" Writing rules for commit messages
git-pr-instructions "" Writing rules for PR titles and bodies

If a field is omitted, null, an empty string, or contains only whitespace, the corresponding paragraph is not added to the prompt. The preview in Settings shows the exact text the plugin will contribute; changes take effect for new turns after saving.

Correspondence with Settings / Profiles

In DSH Settings, select Git style to edit the fields mentioned above. Saving writes the content to the git-style-zeta line in the current profile’s cordis.patch.yml (the set here label next to the fields in the UI originates from this). Clicking Use the default removes the override from that line.

For headless environments or when you need default text within a profile, you can directly modify the profile’s cordis.patch.yml (common path: $DSH_HOME/profiles/web/cordis.patch.yml). The bundle already inserts a git-style-zeta line; when applying overrides, use id to point to this line and do not duplicate the insert; the line id must remain git-style-zeta, otherwise the Settings form will become disconnected from the configuration. DSH replaces the entire config section when applying overrides, so if both fields are used, the override must retain both.

The README provides examples: Conventional Commits, subject length, body explaining “why”, and a fixed Co-authored-by: DeepSeek Harness <noreply@deepseek.com> appearing exactly once; the PR side requires a one-line title explaining the behavior change, a body distinguishing between the problem, the behavior after the fix, and the checks actually run, plus a specific line of DeepSeek Harness link text. These are merely examples; you can write your own based on team standards.

Notes on Writing Prompts (from Maintainer)

The plugin appends your text verbatim and always requires the model to preserve existing author / co-author information. Rules should be executable by the model simply by reading the text: specify the exact line, that it appears exactly once, and how to complete it if missing. Ambiguous conditions (e.g., “only when absent”) might be interpreted by the model as requiring an explicit user request, causing it to skip the trailer. Do not write credentials in the prompt. Only DSH profiles with this plugin loaded are affected.

Installation and Activation

This release requires DSH 0.1.7-rc.2 or higher; older hosts should pin to dsh-git-style-zeta@0.2.1 (per README).

Profiles are independent. Replace web with the target profile name and install separately in each profile that needs this standard:

dsh plugin --profile web add dsh-git-style-zeta
# restart the host

Restart the host after installation. Node engine requirements are listed in package.json (>=22.19.0).

To upgrade to a specific version, explicitly specify the package version and restart:

dsh plugin --profile web add dsh-git-style-zeta@0.3.0

Uninstallation:

dsh plugin --profile web remove dsh-git-style-zeta
# restart the host

If you manually wrote a git-style-zeta override in cordis.patch.yml, remember to delete that line after uninstalling; there is no need to restore Git hooks or Git settings, and existing commits will not be rewritten.

Typical Usage

  1. Install the plugin in the target profile using the command above and restart the host.
  2. Open Settings → Git style, fill in team standards in git-commit-instructions / git-pr-instructions; check the preview to confirm injected content, then save.
  3. When asking the model to commit (or open a PR) in a conversation, the model should follow the configured paragraphs; in the README screenshot example, the commit preserves the repository’s original author and appends the co-author trailer according to the configuration. Actual effectiveness still depends on the model and conversation context—the plugin does not perform forced validation.

Without a UI, simply write the same fields into the config block with id: git-style-zeta in the profile’s cordis.patch.yml; this syncs with Settings.

Applicable Scenarios and Notes

Suitable for: Teams or individuals wanting to unify commit / PR copy style, attribution trailers, or PR template instructions within DSH sessions; scenarios requiring the standards to be embedded in profiles and carried by default in environments without Settings storage (e.g., headless).

Not suitable for: Scenarios requiring 100% compliance or mandatory interception of non-compliant messages via hooks or CI—this plugin only provides prompt guidance.

Security and Permissions: The plugin runs with the current DSH process permissions; please review the GitHub repository source code and MIT license yourself before installation to ensure it complies with your policies. Community directories like SkillHub are independent sites, not officially affiliated with DeepSeek / High-Flyer, and are not official app stores.

The DSH ecosystem emphasizes “everything is a plugin”; dsh-git-style-zeta belongs to the class of capabilities that influence the model’s reasoning path via the system prompt (often categorized as model reasoning related in directories) and does not change the underlying behavior of the Git repository.

Conclusion

If you are already using DSH for daily commit and PR copywriting, and you want standards to be editable and distributable with profiles, dsh-git-style-zeta provides a lightweight, previewable configuration surface, rather than another Git toolchain.

  • Directory Page: https://www.skillhub.cn/plugins/zeta987/dsh-git-style-zeta
  • GitHub: https://github.com/zeta987/dsh-git-style-zeta
羽毛球分组比赛记分
小程序二维码

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

Xiaoye