rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:Jack-jiang421/dsh-smart-proxy
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
English | 中文
为 DeepSeek Harness 桌面版提供可切换的代理模式、连通性自检和 SSE 超时保护,专治
Transport Failed与 TLS 证书拦截。
国内网络环境下,DSH 桌面版经常出现以下症状:
Transport Failed,但浏览器/curl 访问同一域名正常;本插件把「代理选择 → 连通性验证 → 长连接保活」串成一条链路,并把当前网络状态暴露成 Agent 工具,出问题时能直接问出来。
system(跟随系统) / manual(手动指定) / direct(强制直连)smart-proxy.status / smart-proxy.switch-modedsh plugin --profile web add dsh-smart-proxy # Web / 插件中心
dsh plugin --profile desktop add dsh-smart-proxy # 桌面版
安装后重启 dsh web,在「设置 → 插件」中确认 smart-proxy 已启用。
本地开发时也可以直接从目录安装:
git clone https://github.com/Jack-jiang421/dsh-smart-proxy.git
dsh plugin add /absolute/path/to/dsh-smart-proxy
在 ~/.dsh/profiles/<profile>/cordis.patch.yml 中覆盖 smart-proxy 的配置:
- id: smart-proxy
config:
mode: manual
proxyUrl: "http://127.0.0.1:7890"
| 参数 | 类型 | 默认值 | 说明 |
|---|---|---|---|
mode |
string |
system |
代理模式:system / manual / direct |
proxyUrl |
string |
http://127.0.0.1:7890 |
manual 模式使用的代理地址 |
streamTimeout |
number |
600000 |
SSE 流式超时(毫秒) |
connectTimeout |
number |
30000 |
TCP 连接超时(毫秒) |
keepAlive |
boolean |
true |
启用 TCP Keep-Alive |
retryOnTransportError |
boolean |
true |
传输层错误自动重试 |
maxRetries |
number |
3 |
最大重试次数 |
ignoreTlsErrors |
boolean |
false |
忽略 TLS 证书错误(仅在自签/中间人环境开启) |
bypassDomains |
string[] |
["localhost", "127.0.0.1", "::1"] |
不走代理的域名 |
autoTest |
boolean |
true |
启动时自动测试连通性 |
ignoreTlsErrors会降低安全性,只在明确知道证书被拦截时临时开启。
插件注册了三个 Agent 工具,直接用自然语言触发即可:
| 说法 | 工具 |
|---|---|
| 「看一下当前代理状态,顺便测下连通性」 | smart-proxy.status |
| 「切换到直连模式」 | smart-proxy.switch-mode |
status 返回当前模式、代理地址、TLS 豁免状态、连通性结果与延迟;switch-mode 支持 direct / manual / system,可同时传入新的 proxyUrl。
mode 改为 direct,确认问题是否由代理引起;proxyUrl 端口与本机代理软件一致(Clash 常见 7890,V2Ray 常见 10809);api.deepseek.com 设为 DIRECT,排除规则误判;[dsh-smart-proxy] 获取完整诊断。>=0.2.0(engines.dsh)^4.0.1MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。