dsh-github-harness: GitHub Issue-driven DSH Single-Agent Issue-to-PR Workflow

Introduction

When making repository changes in DSH, the common practice is to describe requirements in the session, modify code, and manually open a PR. If requirements come from a GitHub Issue, you also need to align branches and context between the Issue, local checkout, and DSH session. After review comments or CI failures, you often have to reorganize “where you left off last time.” If you want the Issue to serve as the task entry point and the PR as the delivery entry point, with code pushed only after acceptance passes, you need to chain GitHub and DSH into a repeatable loop.

Below we introduce the community plugin dsh-github-harness (maintainer: yintaocheng, category: workflow). It provides the github_harness tool in DeepSeek Harness, running through the pipeline “Issue → DSH implementation → independent acceptance → Pull Request.” The same Issue can be resumed via comments and CI feedback, without needing to reopen the task every time.

What Is This

dsh-github-harness is a reusable plugin and CLI for DeepSeek Harness: within a target Git repository (which does not need to contain the plugin’s source code), it manages branches, DSH sessions, and PRs on an Issue basis, forming a single-agent task loop. The README summarizes it as: make GitHub Issue the task entry point for DSH, and make PR the code delivery entry point.

Issue → DSH implementation → independent acceptance → Pull Request
  ↑                              │
  └────── review comments / CI feedback ──────┘

The plugin’s current version is v0.3.0 (see the repository’s package.json), licensed under MIT, and belongs to the DeepSeek Harness community plugins. The directory page is at SkillHub, and the source code is at GitHub.

Core Features

The following capabilities all come from the project README and can be verified against the repository documentation before installation.

  • Manage context per task: Each Issue uses an independent branch, DSH session, and PR.
  • Continuously handle feedback: Read Issue comments, PR reviews, and CI results to resume running on the same Issue.
  • Verify first, then publish: Do not push when acceptance fails; do not create empty PRs when there are no code changes.
  • Support multiple projects: The plugin only needs to be installed once; select the target repository via workdir when calling. Tasks within the same checkout execute serially.
  • Preserve human review: The stable version does not automatically approve or merge PRs.

Installation and Activation

Environment requirements: DeepSeek Harness 0.2.0-rc.2, Node.js 22+, and Git (consistent with the engines field in package.json and the README).

In DSH’s Plugins → Add plugin, enter the official installation string:

github:yintaocheng/dsh-github-harness#v0.3.0

After installation, enable the plugin and follow the host’s prompts to complete the restart. The tool name registered with the host is github_harness. For CLI installation and desktop-side details, see the repository’s docs/desktop.md.

Typical Usage

1. Prepare the target project

Open a Git repository with an existing baseline commit, ensuring that the HTTPS origin points to a GitHub repository you have write access to. On Windows, you can log in via Git Credential Manager:

git credential-manager github login --browser

For other credential methods, see the repository’s Authentication Configuration. Also confirm that DSH’s headless model is available.

2. Configure acceptance

Create a harness.local.json in the target repository root directory:

{
  "owner": "YOUR_ACCOUNT_OR_ORG",
  "repo": "YOUR_PROJECT",
  "base": "main",
  "agent": { "id": "solo", "expectedLogin": "YOUR_GITHUB_LOGIN" },
  "dsh": { "command": ["dsh", "headless"] },
  "verify": [["node", "--test"]]
}

Replace owner, repo, expectedLogin, and the acceptance commands in verify. On Windows, if dsh cannot be found in PATH, change the first item of dsh.command to the absolute path of the desktop’s built-in dsh.cmd. For complete field descriptions, see Configuration Example.

Exclude local configuration and run state from version control:

harness.local.json
.harness/
.reference/

3. Run an Issue

Create an Issue on GitHub, clearly describing the requirements, scope, and acceptance criteria. In DSH, you can drive it with natural language, for example:

Use github_harness to check my-project’s configuration, then handle Issue #42 in that repository.

You can also directly call the tool (JSON parameters):

{"action":"doctor","workdir":"my-project"}
{"action":"run","issue":42,"workdir":"my-project"}
{"action":"status","issue":42,"workdir":"my-project"}

workdir can be an absolute path or a path relative to the current DSH session workspace. After the PR is created, leave feedback on the Issue or PR, then execute run again with the same directory and Issue to resume.

doctor checks identity, repository read capability, and the DSH command; it will not create repositories for you, nor does it verify all write permissions. The GitHub configuration must match the target checkout. Do not switch repositories or accounts by copying task caches.

Use Cases and Considerations

Suitable for: Teams or individuals who are already using DSH for code modifications, want Issue/PR to be the sole task and delivery interface, and can configure acceptance commands locally (e.g., node --test).

Permissions and security: The tool requires file, process, and network access authorized by the host, and runs with the permissions of the current DSH process. Agents, tests, and Git hooks may all execute local code within the target repository. You should read the source code and the MIT license before installation, and only use it for trusted repositories.

Ecosystem note: DeepSeek Harness’s philosophy is “everything is a plugin”; community directories such as SkillHub are independent sites with no official affiliation with DeepSeek / High-Flyer, and this article does not describe them as an “official app store.”

For more information, see the repository documentation: Installation and Credentials, Commands and Continuation, and the demo project dsh-github-harness-demo.

Conclusion

dsh-github-harness fixes GitHub Issue and PR as the entry and exit points of the DSH single-agent workflow: code is pushed only after acceptance passes, and feedback left on the Issue/PR allows the same task to be resumed. If you are maintaining changes across multiple repositories in DSH, you can try running an Issue in the target repository using the installation string and harness.local.json described above.

  • Directory page: https://www.skillhub.cn/plugins/yintaocheng/dsh-github-harness
  • GitHub: https://github.com/yintaocheng/dsh-github-harness
羽毛球分组比赛记分
小程序二维码

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

Xiaoye