fastgithub-accelerate: Auto-Integrate GitHub Acceleration for DSH

Introduction

When developing within DeepSeek Harness (DSH), web_fetch, web_search, and sub-processes like git and curl frequently require access to GitHub. DSH’s dsh-web-fetch-http pins public IPs; if a domain resolves to a private network or loopback address, the request is rejected with WEB_BLOCKED_URL—unless the traffic goes through an installed proxy policy where resolution is handled on the proxy side, in which case the pin is skipped.

Local FastGithub, gh-proxy, or corporate HTTP(S) proxies can route GitHub traffic through faster paths, but manually changing environment variables or browser extensions in DSH is cumbersome and prone to conflicting with Harness’s built-in proxy logic. The following introduces the community plugin fastgithub-accelerate (maintainer zijinggong): it integrates acceleration sources into DSH’s proxy policy. Once installed, access to GitHub via web_fetch / web_search, git / curl, and Node-side fetch is transparently accelerated. A small badge in the Composer also displays the current acceleration source and status.

What is this

fastgithub-accelerate is a DSH bundle plugin (npm package name fastgithub-accelerate, version 0.3.0 in current materials, MIT license). It does not perform URL rewriting at the browser level (browsers use origin-form, which generic forward proxies cannot serve in the same way). Instead, it selects an active acceleration source on the Host side and invokes installProxyFromEnvironment via the shared Harness @deepseek-ai/dsh-http-proxy to route DSH outbound GitHub traffic to:

  • Local FastGithub (via the plugin’s local loopback forwarding proxy 127.0.0.1:39467 when DNS hijacking is active), or
  • A custom HTTP(S) upstream proxy specified in your configuration (no local FastGithub required, no MITM root certificate required).

If a proxy was exported via environment variables when DSH started, that proxy always takes precedence over the plugin endpoint; the plugin does not override user-owned proxies, and the badge will reflect the inherited policy.

Plugin directory page: skillhub.cn/plugins/zijinggong/fastgithub-accelerate. Source code and documentation: github.com/zijinggong/fastgithub-accelerate.

Core Features

Dual-path Acceleration Source

The Host (index.js) selects the current source based on status.source:

  1. fastgithub: When FastGithub’s DNS hijacking is active, DSH traffic goes through the plugin’s loopback forwarding proxy (default port 39467), and DNS resolution falls onto the FastGithub interceptor.
  2. custom-proxy: When config.proxyUrl is set and FastGithub is unavailable or mode specifies using a custom proxy, traffic points directly to the upstream HTTP(S) proxy (gh-proxy, Cloudflare Workers acceleration, corporate proxy, VPN node, etc.).

The default for mode is auto: if DNS hijacking is present, prefer FastGithub; otherwise, fall back to the custom proxy if proxyUrl is configured.

Injecting into DSH Proxy Policy

The plugin loads @deepseek-ai/dsh-http-proxy from the Harness canonical realpath (the same module instance as the Harness) and calls installProxyFromEnvironment for the active endpoint. Therefore:

  • web_fetch / web_search are tunneled; GitHub requests previously blocked due to loopback resolution may resume normal operation;
  • Sub-processes like git and curl inherit the http(s)_proxy environment variables;
  • The undici global dispatcher routes Node-side fetch.

Probing and Status Interface

Probes FastGithub hijacking and the configured proxy approximately every 60 seconds. Provides GET /fastgithub/status for queries. The Client (client.js) renders a status badge in the Composer (e.g., FastGithub accelerating, Custom proxy accelerating, or No source available). The meaning of status fields can be found in the Status table in the README, primarily including:

Field Meaning
accelerating Proxy installed and an active acceleration source exists
source fastgithub / custom-proxy / none
policy proxied / none
proxyUrl Custom proxy URL (when source is custom-proxy)
fastgithub.dnsHijack Whether github.com resolves to loopback
fastgithub.interceptor443 Whether FastGithub :443 interceptor is ready
module Whether dsh-http-proxy import is ok
port / endpoint Plugin loopback proxy address

Installation and Enablement

In the target DSH environment, choose one of the methods provided in the README (do not construct install syntax not appearing in the documentation yourself).

Local bundle path installation:

plugin_manager → action: install_bundle → target: <path-to>/fastgithub-accelerate

Installation from GitHub repo or npm (after release):

dsh plugin --profile web add <owner>/<repo>

Replace <owner>/<repo> with the actual repository, e.g., zijinggong/fastgithub-accelerate. For more complete prerequisites (FastGithub running, DNS hijacking, MITM root certificate trust) and verification steps, see INSTALL.md in the repository.

Typical Usage

FastGithub Only

Local installation and startup have been completed according to the FastGithub documentation (e.g., fastgithub.exe start or UI startup), and the README requirements are met: http.sslverify false, root certificate CN=FastGithub added to the trust store. Keep the plugin mode at the default auto; once DNS hijacking is effective, source should be fastgithub.

No FastGithub, Custom Proxy Only

Write configuration for this plugin in the profile’s cordis.patch.yml. Restart DSH after modification.

# in the profile's cordis.patch.yml
- id: fastgithub-accelerate
  config:
    mode: auto        # auto | fastgithub | custom-proxy
    proxyUrl: http://<proxy-host>:<proxy-port>
  • mode: auto (Recommended): Uses FastGithub if hijacking is active, otherwise uses proxyUrl.
  • mode: custom-proxy: Forces usage of proxyUrl, ignoring FastGithub.

After restart, access GET /fastgithub/status; you should see "source": "custom-proxy", "proxyUrl": "<your proxy>", "accelerating": true. GitHub traffic for web_fetch and git will go through this proxy, requiring no local FastGithub, DNS hijacking, or MITM root certificate.

Configuration summary:

Key Default Meaning
mode auto auto | fastgithub | custom-proxy
proxyUrl (empty) Upstream HTTP(S) proxy, format http://host:port

Applicable Scenarios and Notes

Who it is for: Developers who frequently pull GitHub repos in DSH, read READMEs or APIs via web_fetch, and either have FastGithub running locally or have a trusted HTTP(S) proxy capable of stable GitHub access.

Prerequisites (choose one):

  • FastGithub is running and DNS hijacking, 443 interception, and certificate trust are ready per FastGithub / INSTALL docs; OR
  • A reachable proxyUrl is configured.

If neither is available, the plugin can still load, but source will be "none", and no acceleration will occur.

Security and Operations: Custom proxies must reliably access GitHub and be trustworthy; when using public gh-proxy, pay attention to stability and certificate policies. The README has explicit reminders regarding this.

Permissions and Review: The plugin runs under the current DSH process permissions and installs process-level proxy policies with periodic network probing. Please read the Source Code and LICENSE before installation to ensure it complies with your security strategy. The DSH ecosystem emphasizes “everything is a plugin”; community directories like SkillHub are independent sites with no official affiliation with DeepSeek / High-Flyer.

Conclusion

fastgithub-accelerate integrates FastGithub or custom HTTP(S) proxies into the unified DSH proxy policy, reducing manual proxy changes and GitHub access failures caused by loopback resolution, while exposing the current acceleration source via a Composer badge and /fastgithub/status. For details, refer to the repository README and INSTALL.md.

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

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

Xiaoye