AI Agent Hub
Back to plugins
🧰

dsh-safe-web-fetch

Web Tools Updated 2026.08.14

Run the following command in DeepSeek Harness:

dsh plugin install MostlyHarmlessxyz/dsh-safe-web-fetch

Paste the following prompt into your AI chat to install this plugin:

Run dsh plugin install MostlyHarmlessxyz/dsh-safe-web-fetch in DeepSeek Harness to install the package and register the safe-http provider; see the full source at https://github.com/MostlyHarmlessxyz/dsh-safe-web-fetch

About this plugin

DeepSeek Harness ships with a web_fetch tool, but calling it directly in production means trusting raw DNS answers, accepting arbitrary redirect targets, and receiving unbounded response bodies with no guardrails. dsh-safe-web-fetch plugs into DSH's existing ctx.web service and inserts a verification layer before any socket is opened, so the normal tool and profile system keeps working without introducing a second search API.

For every request the provider resolves and inspects the hostname's DNS records—covering IPv4, IPv4-mapped IPv6, and special-purpose ranges—then pins the connection to the verified address through an isolated Undici dispatcher. Redirects are re-validated and must stay on the same origin; cross-origin hops are rejected outright. Response size in bytes and decoded characters, redirect count, concurrency, and total timeout are all capped with sensible defaults that can be tuned through DSH configuration. Only text-like media types (text, HTML, JSON, XML) are returned, and the plugin never adds cookies, authorization headers, browser state, or request bodies.

It is built for developers and architects deploying DSH in production fetch pipelines who want an application-level safety check layered on top of network controls. The plugin is explicitly not an egress firewall, content scanner, or zero-trust gateway; those responsibilities belong at the infrastructure layer. Think of it as a pre-connection gatekeeper that makes the default web_fetch behaviour predictable and bounded.

Use Cases

  • Guarding production web-fetch pipelines against DNS spoofing and cross-origin redirects
  • Capping response size, concurrency, and timeout in multi-tenant SaaS proxy layers
  • Adding an application-level egress control to meet compliance and zero-trust requirements

Best For

  • Backend developers building production web tools on DeepSeek Harness
  • DevOps engineers responsible for platform network policy and egress controls
  • Security-focused architects concerned with application-layer hardening