LucienLL/dsh-plugin-proxy

LucienLL★ 0JavaScript最后同步: 2026-08-21

在 GitHub 打开

Global proxy for DeepSeek Harness: route agent tools, model requests and web fetches through the Windows system proxy or a custom proxy with one persistent toggle and agent-visible status

README 摘要

dsh-plugin-proxy Global proxy for DeepSeek Harness: route agent tools, model requests and web fetches through the Windows system proxy or a custom proxy — with one persistent switch in the main UI, an editable settings card, and agent-visible proxy status so the model always knows whether traffic is proxied. Why Without a proxy, outbound network operations fail and the agent burns tokens retrying. With this plugin, the whole runtime goes through the proxy the moment you flip one switch — and because the agent is told the proxy state in its system prompt (and can query/toggle it with tools), it never silently routes an operation that must go direct through the proxy. What it does Concern Mechanism Model requests (chat completions, SSE streaming, web search/fetch providers) Swaps the undici global dispatcher to EnvHttpProxyAgent — every in-process fetch() (all LLM adapters use global fetch) is routed through the proxy. Agent subprocesses ( curl , git , npm , pwsh -spawned tools) Writes HTTP PROXY / HTTPS PROXY / ALL PROXY / NO PROXY into process.env , which the harness's child env inherits. Agent awareness A dynamic system-prompt section ( Proxy status: ON/OFF ) is re-rendered on eve…

在 GitHub 查看完整 README →
Agent/智能体cordisdeepseek-harnessdsh-pluginproxyundiciagent

分类