Preface¶
Getting agents to access GitHub in restricted networks often results in request timeouts, leading the agent to misinterpret the situation as “the network is broken.” Furthermore, you have to manually explain how to configure the proxy in every session. System proxies are often invisible to fetch within Node processes; GUI proxy clients might not be running or cannot be invoked by agents inside sandboxes; and the url-test utility in subscription clients frequently tests gstatic.com at fixed intervals, which is irrelevant to the sites you actually intend to visit. When requests fail, they do not necessarily re-test and switch nodes immediately.
The following introduces dsh-net-proxy (Maintainer: FIZMIE, Category: Networking Tool). It is a self-contained outbound proxy plugin for the DeepSeek Harness (DSH) desktop application. It bundles the mihomo core, supports pasting a Clash-format subscription link once, self-tests latency to automatically select the fastest node, and handles failover—all without requiring third-party proxy clients or modifying system proxy settings.
What is this¶
In one sentence: It routes agent traffic within the DSH process (web_fetch, model calls, git/npm subprocesses, etc.) through a toggleable local proxy chain.
The plugin does not sell, provide, or independently bypass any restrictions—you need to bring your own Clash-format subscription link; without a subscription, there are no available nodes.
- Repository: FIZMIE/dsh-net-proxy
- Community Directory: skillhub.cn Plugin Page
- License: MIT (see
package.jsonin the repository) - Current Package Version: 0.1.0; Runtime Requirement: Node
>=22.6
The DSH ecosystem follows the philosophy that “everything is a plugin”; the community directory is an independent site and has no official affiliation with DeepSeek or High-Flyer (Huanfang).
Core Features¶
The capabilities explicitly stated in the documentation are as follows:
- Start Bundled Proxy Core: The repository bundles the mihomo binary, so there is no need to install other proxy software. The core and geodata are committed within the repository (if updates are needed in the future, see
THIRD-PARTY-NOTICES.mdin the repo). - Subscription Import: Paste a Clash subscription link once; the plugin performs only minimal in-place scalar modifications to the listener/controller in the subscription document without rearranging the YAML structure.
- Self-Testing, Latency, and Routing: It concurrently tests
https://github.comagainst every node and uses the fastest one; it automatically switches nodes if one fails. You can pin a specific node in the UI or select Fastest (automatic). - Taking Over DSH Outbound Traffic: It switches routing via the Node global undici dispatcher (similar mechanism to
@deepseek-ai/dsh-http-proxy), allowing node changes without restarting the core process. - Default Off, On-Demand Enable: The application startup overhead is approximately 4 ms; it does not launch the core or download subscriptions. The previous “on” state is not automatically restored; you must enable it again in settings (or instruct the agent via AGENTS.md to turn it on when needed).
The README also documents a summary of real-world tests on a 23-node subscription (latency sorting, ~2s enablement, https://github.com returning 200 after failover, direct connection for loopback addresses, etc.). This serves as a behavioral reference, but actual performance depends on your specific subscription and environment.
Installation and Enablement¶
One-Click Handoff to a Command-Capable Agent¶
The top of the README provides a complete prompt: install the plugin, write to the profile’s package.json and cordis.patch.yml, use tools/ to verify mihomo and geodata, ask you for the subscription, and verify GitHub access. Copy this block to Claude Code, Codex, Cursor, or an agent within DSH to execute according to the instructions.
Install the DSH plugin at https://github.com/FIZMIE/dsh-net-proxy into my DeepSeek Harness.
Read its README, wire it into ~/.dsh/profiles/<profile>/package.json and cordis.patch.yml,
then use the tools in its tools/ directory to fetch the mihomo core and geodata.
Ask me for my Clash subscription link, import it, turn the proxy on, and
verify it works by fetching https://github.com.
(On Linux/macOS, the profile path is ~/.dsh/profiles/<profile>/; for Windows examples, see $env:USERPROFILE\.dsh\ in the README’s manual steps.)
Manual Installation (Windows Example, excerpted from README)¶
Clone the repository to a persistent directory (do not put it in the profile’s node_modules). Add a link: dependency in the corresponding profile’s package.json, add it to dsh.profile.bundles, create a junction to allow the loader to resolve the package name, register the bundle in cordis.patch.yml, and finally verify and restart DSH (new host plugins cannot be hot-mounted).
# 1. Clone somewhere permanent (not into the profile's node_modules)
git clone https://github.com/FIZMIE/dsh-net-proxy.git "$env:USERPROFILE\.dsh\plugins\dsh-net-proxy"
# 4. Check the pieces are in place
node "$env:USERPROFILE\.dsh\plugins\dsh-net-proxy\tools\verify-setup.mjs"
# 5. Restart DeepSeek Harness (a new host plugin cannot be hot-mounted)
Steps 2 and 3 require filling in dependencies, bundles, and id: dsh-net-proxy in $DSH_HOME\profiles\<profile>\package.json and cordis.patch.yml according to the README. For full field details, see GitHub README.
After installation, the plugin may append an explanation to $DSH_HOME/AGENTS.md so the agent knows how to enable the proxy; if the section already exists, it will not be overwritten. You can set "writeMemory": false in $DSH_HOME/.dsh-net-proxy/config.json to disable this behavior.
Typical Usage¶
Open DSH Settings → Network proxy.
- First Time: Paste the subscription link and click Update subscription.
- Subsequent Use: Click Enable proxy—it will start the core, sort nodes, and take over outbound traffic within approximately two seconds.
The node table displays the measured latency for each node. Clicking allows you to pin a node or select automatic fastest. Activity log allows you to view the plugin’s operation records.
To verify if it is effective: request https://github.com via the agent or locally after the proxy is enabled. The README suggests using this URL as a connectivity probe (consistent with the latency test target).
Use Cases and Notes¶
Who it is for: Developers who are already using Clash-format subscriptions and want their agents within DSH to stably access external resources like GitHub without relying on system proxies or running GUI clients.
Permissions and Security: The plugin runs with the permissions of the current DSH process and will start a local mihomo instance to handle your subscription URLs and node configurations. Before installation, you should read the source code and the MIT license, and only use subscription sources you trust.
Network and Configuration: If the subscription download fails, the plugin attempts to fetch it via a fallback path through the bundled core (see README “Design notes”); geodata requires a complete bundled set, otherwise the core may hang without error or fail to parse. Local loopback addresses (like DSH itself 127.0.0.1:19387) should remain direct connections to avoid proxy loops.
Platform Notes: package.json keywords include windows, electron; the manual installation example uses PowerShell. Other systems can refer to the equivalent practices for profile paths and link dependencies, and self-check using node tools/verify-setup.mjs.
Conclusion¶
dsh-net-proxy integrates mihomo, subscription import, and latency sorting and failover tailored for GitHub into a DSH plugin, solving integration issues such as “agents cannot see system proxies” and “subscription clients test the wrong endpoints.” Requiring a subscription, defaulting to off, and enabling with one click in settings is the usage method emphasized in the documentation.
- Directory Page: https://www.skillhub.cn/plugins/FIZMIE/dsh-net-proxy
- GitHub: https://github.com/FIZMIE/dsh-net-proxy