Files
deepseek-harness/packages/net
Yichen Jiang 545e2ad914 feat(net): route every outbound request through the configured proxy
Node's built-in fetch ignores HTTP_PROXY, so every harness request connected
directly regardless of what the user exported. Resolve one policy from the
launch environment and install it as undici's global dispatcher, then wire the
four surfaces a global dispatcher cannot reach: web_fetch's pinned transport,
the OTLP exporter's node:http agent, the E2B SDK's own proxy option, and the
environment a child process or worker thread is given.

Each outbound call site carries an egress test that drives its real code path
through a fake proxy; that measurement is what found the OTLP and E2B gaps.
2026-08-29 13:17:11 +08:00
..

description, kind
description kind
Package map for the network group: process-wide outbound transport policy that applies to every request the harness makes. package-group

net/ — outbound network transport

English | 中文

Summary

The net/ group owns transport-level decisions that apply to every outbound request the harness makes, regardless of which capability makes it. Today that is one decision — whether a request goes through an HTTP proxy — and one package that owns it. The group exists because such a decision belongs to no single capability: an LLM adapter, a web-search backend, an MCP transport, and a telemetry exporter all inherit it without knowing about each other, and putting it inside any of their groups would make the other three depend backwards. These packages are not capability seams: transport policy has one implementation and one answer per process, so there is nothing to swap.

Table of Contents


Packages

Package Role ctx key
http-proxy/ Resolves one outbound proxy policy and installs it as the process's global dispatcher none — installed by the launcher

  • Network proxy guide — the user-facing page: what to export, and why a browser is proxied when a terminal is not.

Dev Note

Working context for maintainers — click to expand

None.