Introduction¶
In DeepSeek Harness (DSH), the common practice for using agents to modify code and push to GitHub is to verbally instruct in each session to “commit first, then push.” Network proxies work intermittently, credentials may or may not be cached, whether the push aligns with the remote HEAD after completion, whether tags are placed on the correct commit—these judgments are prone to repeated pitfalls across different sessions, and there is no unified receipt/confirmation.
dsh-github-flow is published by maintainer JiangHuai24 and categorized as a workflow. It registers github-push and its supporting scripts at the DSH global skill layer, so that every session follows the same fixed pipeline when saying “push to GitHub,” rather than piecing together commands on the fly.
What Is This¶
The plugin registers a skill named github-push (including scripts/gh-push.ps1) on the Host side. The catalog refreshes in real time and is visible to all sessions. The positioning in the README is: to solidify “commit → push → verify → publish Release” into a shared pipeline, replacing ad-hoc Git operations.
Community directory page: https://www.skillhub.cn/plugins/JiangHuai24/dsh-github-flow
Source code and documentation: https://github.com/JiangHuai24/dsh-github-flow
Core Features¶
Global github-push skill¶
| Item | Description |
|---|---|
github-push skill |
Registered at the global layer, visible to all sessions |
scripts/gh-push.ps1 |
One-click execution: probe network → commit → push (with retries) → verify sha → create tag → publish Release |
Key pipeline points (from the README):
- After pushing, verify
remote refs/heads/<branch> == local HEAD. - Don’t guess the network: when direct connection and
127.0.0.1:7890alternately fail, probe first and then choose a route. - Credentials are not persisted: tokens are only fetched from Git Credential Manager, never written into the repository, and never echoed back.
One-click push within a session¶
There is a GitHub button on the left side of the input box: clicking it fills the current session’s input box with the push instruction (it will not be sent automatically; you need to press Enter). The instruction that is filled in will:
- Use the
github-pushskill to push the current workspace; - Before pushing, check whether the README, LICENSE, or
package.jsoncontain personal accounts, tokens, or absolute paths, and replace them with placeholders if found; - Ensure that personal accounts do not appear in commit messages or repository descriptions;
- Provide a receipt after pushing (branch, sha, verification, Release).
Sidebar “↑ GitHub” panel¶
There is an “↑ GitHub” button at the bottom of the sidebar. Opening the panel lists all git workspaces (branch, number of changes, path). After filling in the commit message, click “Commit and Push.”
- It follows the same
gh-push.ps1pipeline as the skill: probe network → commit → push → verify sha. - When there are changes, the commit message is required; when there are no changes, the button becomes “Push Only.”
- The script output is displayed at the bottom of the panel, and success or failure can be viewed directly.
Multi-account management¶
In the settings page, “GitHub Push Flow” → “GitHub Accounts”: you can add account names, switch the current account, remove accounts, and bind accounts to specific repositories.
The plugin does not save any tokens; it only records account names and commit identity. Login credentials are managed by the system’s Git Credential Manager, and re-login is performed on demand during pushes.
Pre-push sensitive data scanning¶
POST /github-flow/scrub scans the files to be pushed and reports sensitive items such as personal accounts (outside URLs), GitHub tokens, Bearer tokens, private keys, and email addresses. It is a read-only check and does not modify files without authorization.
Settings page and Host interface¶
“Settings → GitHub Push Flow” displays the skill name, script path, and repository address, and supports one-click command copying; the data comes from the Host read-only interface /github-flow/info.
UI sizing and interaction standards are documented in docs/ui-standard.md in the repository.
Installation and Activation¶
The installation command follows the README (use the absolute path of this repository; do not use the name to construct other install forms):
plugin_manager action=install_bundle target=<absolute path of this repository>
The plugin line id is github-flow.
The current version in package.json is 1.8.1, and the license is MIT. The plugin works on top of DSH’s skills service (built into the Host); the client is configured for the web platform with immediately: true.
Please read the source code and license yourself before installing. The plugin runs with the permissions of the current dsh process; before installing and enabling it, you should confirm whether it complies with your security policy.
Typical Usage¶
Natural language triggering in a session¶
In any session, saying “push to GitHub” will cause the model to load github-push and execute a PowerShell call like the following:
powershell -NoProfile -ExecutionPolicy Bypass -File "<this repo>\scripts\gh-push.ps1" `
-RepoPath "<repo path>" `
-Message "feat: ..." `
-Tag "v1.2.3" `
-ReleaseName "v1.2.3 - ..."
| Parameter | Description |
|---|---|
-RepoPath |
Repository path, defaults to the current directory |
-Message |
Required when there are uncommitted changes |
-Tag |
Optional; create a tag on HEAD after pushing |
-ReleaseName |
Optional; used with -Tag to create or update a GitHub Release |
-DryRun |
Only probe and print; do not commit or push |
Dependency environment¶
Dependencies listed in the README:
- Windows PowerShell 5.1+ (scripts are kept pure ASCII to avoid BOM-less UTF-8 being parsed as ANSI)
git,curl.exe(built into Windows 10+)- DSH’s
skillsservice (built into the Host)
Applicable Scenarios and Notes¶
This is suitable for developers working in a Windows environment who frequently push local repositories to GitHub through DSH sessions, and who want commit message sanitization, sha verification after pushing, and optional tagging and Release publishing.
It is not suitable for scenarios expecting to directly run gh-push.ps1 on Linux/macOS (the scripts and dependency documentation target Windows PowerShell). In multi-account scenarios, you still need to complete login yourself via Git Credential Manager; the plugin only manages account names and binding relationships.
The DSH ecosystem emphasizes “everything is a plugin”; community directories such as SkillHub are independent sites and have no official affiliation with DeepSeek / Huanfang. This article only introduces the capabilities of the plugin as written in the materials.
Conclusion¶
dsh-github-flow encodes the repetitive judgments involved in GitHub pushes into the global github-push skill and gh-push.ps1, and completes the operation entry points through the sidebar panel, settings page, and sensitive-data scanning interface. If you need to unify the push pipeline across sessions, you can install the bundle according to the README after reviewing the source code.