AI Agent Hub
Back to plugins
dsh-git-conventions preview

dsh-git-conventions

Workflow Updated 2026.08.25

Run the following command in DeepSeek Harness:

dsh plugin install CN-WenYu/dsh-git-conventions

Paste the following prompt into your AI chat to install this plugin:

Run dsh plugin install CN-WenYu/dsh-git-conventions in your terminal to install; source code at https://github.com/CN-WenYu/dsh-git-conventions

About this plugin

When an agent runs git commit, git push, or gh pr create on your behalf, nobody enforces the rules—messages come out as "fix stuff", a bare --force clobbers the remote, and a PR goes out with no title or description. dsh-git-conventions intercepts these three command types at the host level and turns your team's Git conventions into hard deny-on-violation constraints, while every rule string is defined by you in the settings panel; the plugin hard-codes not a single rule.

Core coverage spans three scenarios: commit messages are validated against Conventional Commits structure, and violations are denied with the specific issues and the full rule text echoed back for rewriting; bare --force pushes trigger a reminder to use --force-with-lease instead; gh pr create missing --title or --body is rejected with a completion prompt. All rule edits take effect instantly without a restart, the UI and messages follow the host language preference (zh/en), and switching off enforce lets every command through—flexible and non-intrusive.

Built for teams and solo developers who let agents join the daily dev loop in DeepSeek Harness but refuse to drop Git discipline. Paste your team's commit and PR templates into the settings panel once, and every agent-generated commit goes through the same gate; violation details feed back to the agent as context for self-correction—effectively a conventions gatekeeper for your autonomous workflow.

Screenshots

Use Cases

  • Agent-generated commit messages fail Conventional Commits checks and are denied with a rewrite hint
  • Agent runs git push --force and is reminded to use --force-with-lease to protect co-developers
  • Agent creates a PR without title or body and is rejected with a completion prompt

Best For

  • Teams using agents in DeepSeek Harness for daily commits
  • Developers who want unified Git conventions without per-commit manual review
  • Engineers who need hard quality gates for autonomous workflows