reactive-resume
reactive-resume
A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:WosLovesLife/dsh-plugin-proxy-toggle
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
DeepSeek Harness 桌面插件的出站代理开关
侧边栏一键切换 · Google 204 连通测试 · 系统层只读提示 · 不改 Clash、不改系统设置
中文 | English
一个装进 DeepSeek Harness 桌面版(DSH Desktop)的小插件:在侧边栏底部加一个代理开关,一键让 Harness 的出站流量在“启动时的网络策略”和“本地 HTTP 代理”之间切换。它只改 Harness 自己的进程内路由,不修改 Clash 配置、不打开 macOS 系统代理、不动 TUN。
fetch(web_fetch、模型请求、HTTP MCP),以及之后启动的子进程(bash 里的 curl、git、pnpm 等)。utun 在接管流量时会明确提醒“关闭开关不等于真直连”。需要 DeepSeek Harness Desktop(Electron)。安装任选一种:
https://github.com/WosLovesLife/dsh-plugin-proxy-toggleplugin_manager 的 install_bundle 安装同一地址或本地 clone 路径。dsh plugin add https://github.com/WosLovesLife/dsh-plugin-proxy-toggle安装后刷新页面(⌘R / Ctrl+R),侧边栏底部应出现地球图标按钮。
http://127.0.0.1:7897(Clash 的 Mixed 端口)。开启代理、修改地址或点「立即测试」时,插件会通过刚装上的代理请求:
GET https://www.google.com/generate_204
10 秒超时、失败重试一次、不带 cookie 与凭据,user-agent: dsh-proxy-toggle/1.0。Google 在国内直连不通,所以拿到 204 才能证明请求确实走了代理,而不是悄悄回落直连。代价是这个端点不返回出口 IP 与地区,页面只显示“可连通 · 204 · 延迟”。
测试失败时,开关保持开启并标红,同时显示底层错误(例如 connect ECONNREFUSED 127.0.0.1:7898),不会静默切回直连。
关闭会撤销插件装的代理层,恢复到启动时的 dispatcher 与代理环境变量。也就是说:
~/.dsh/.env 里写了代理,关闭后 Harness 仍会使用它;设置页会如实标注这两点,不会把“关闭”说成“真直连”。
process.resourcesPath/app.asar/dsh/node_modules 加载宿主自带的 dsh-http-proxy 与 undici,以保证与启动器共享同一份策略与 dispatcher。因此源码运行或 npm CLI 安装的 DSH 不在支持范围内,换了 DSH 版本也可能因内部路径变化而失效。scutil / netstat 是 macOS 专用,缺失时只是不显示该项。google.com;不发送 cookie、凭据或 Harness 数据。scutil --proxy、netstat -rn),不上传。socks5:// 会被传输层拒绝。git clone https://github.com/WosLovesLife/dsh-plugin-proxy-toggle
node scripts/check-manifest.mjs
代码结构:
index.js:Host 半体。用 installProxyFromEnvironment 在启动器策略之上叠一层代理,写入/恢复代理环境变量,注册 /plugin/proxy-toggle/{state,action} 两个本地端点,并做 Google 探针与系统层读取。client.js:Client 半体。注册侧边栏按钮与设置页,通过本地端点读取同一份状态,5 秒轮询。cordis.patch.yml:插入 proxy-toggle 这一行;开关与地址是这一行的 volatile 配置字段,因此改动即时生效且可持久化。A small DeepSeek Harness Desktop plugin that puts a proxy switch in the sidebar and a settings page behind it. It changes only the Harness process's own outbound path: every fetch (web fetch, model requests, HTTP MCP) and the proxy environment inherited by newly spawned children. It never edits Clash, the macOS system proxy, or TUN.
Requires DeepSeek Harness Desktop (Electron). Install the bundle from the sidebar Plugins page, or tell the agent to run plugin_manager install_bundle with:
https://github.com/WosLovesLife/dsh-plugin-proxy-toggle
With the CLI available: dsh plugin add https://github.com/WosLovesLife/dsh-plugin-proxy-toggle. Refresh the page afterwards.
When the switch turns on, the address changes, or "Test now" is pressed, the plugin sends GET https://www.google.com/generate_204 through the installed proxy (10 s timeout, one retry, no cookies, fixed user agent). Google is unreachable on a direct connection in mainland China, so a 204 proves the request really used the proxy. A failure keeps the switch on and shows the transport error instead of silently reverting.
Tested with DSH Desktop 0.2.2-rc.1 on macOS. The Host half loads dsh-http-proxy and undici from app.asar so it shares the launcher's policy and dispatcher; source checkouts and npm CLI installs are unsupported, and other DSH versions may move these internal paths.
The plugin contacts google.com only while the proxy is on or a test is requested. System proxy and route state is read locally, never uploaded. The two local HTTP routes accept owner connections only and never modify system or Clash settings.
MIT © 2026 WosLovesLife
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: proxy。