dsh-http
DiscoveredGeneric HTTP/API client plugin for DeepSeek Harness (DSH): one http_request tool for any method, headers, JSON/text bodies, redirects, timeouts and truncation, over a zero-dependency Node fetch driver
dsh-http
A generic HTTP/API client plugin for DeepSeek Harness (DSH), built as a dynamic Cordis plugin. It gives the agent one http_request model tool for arbitrary HTTP calls — any method, custom headers, JSON or text bodies, timeouts, redirect policies, and response truncation.
No npm dependencies. Requests run in a tiny subprocess driver that uses Node's built-in fetch (Node ≥ 22), speaking a JSON-lines protocol on stdio.
What it does
| Piece | Where | Role |
|---|---|---|
http-driver.mjs | spawned subprocess | One request at a time over Node's global fetch; returns status, headers, body, byte count, elapsed time |
Host half (host-half.js) | DSH host process | Spawns/restarts the driver, registers the http_request tool |
DSH agent ──http_request──▶ host half ──stdio JSON──▶ http-driver.mjs ──fetch──▶ any HTTP(S) endpoint
Requirements
- DeepSeek Harness with the dynamic-Cordis extension (the
cordis_define/cordis_runtools) - Node.js ≥ 22 (global
fetch)
Install
-
Place this repo somewhere on the machine, e.g.
C:\dsh-http. -
In
host-half.js, set theDRIVERconstant to the absolute path ofhttp-driver.mjson your machine:const DRIVER = 'C:\\dsh-http\\http-driver.mjs' -
In your DSH session, define the plugin — paste the entire content of
host-half.jsintocode.host(there is no Client half, socode.clientis omitted and no approval is needed):cordis_define(plugin: { kind: "new", idPrefix: "http" }, name: "dsh-http", purpose: "Generic HTTP/API client: http_request tool", code: { host: <host-half.js> }) cordis_run(pluginId, packageId, mode: "run") -
Smoke-test the driver standalone any time:
node http-driver.mjs --selftest
Tool
| Tool | What it does |
|---|---|
http_request | Arbitrary HTTP call. Params: method (GET/POST/PUT/PATCH/DELETE/HEAD/OPTIONS), url, headers (object), json (serialized to body, sets Content-Type) or body (raw text), timeoutMs (default 30 s, max 120 s), maxBytes (response truncation, default 100 KB, max 2 MB), redirect (follow/manual/error). Returns {status, statusText, finalUrl, headers, body, bytes, truncated, elapsedMs} |
Privacy & safety
- Everything runs locally: requests are issued by a local Node process; no telemetry, no remote control, no persistence of responses.
- The agent can reach any URL, including localhost services — treat this like giving the agent a network client (standard SSRF caution for whatever the agent is allowed to do).
- Responses are text-only in this version; binary payloads are truncated as text and marked
truncated: true.
Known limitations
- One request at a time (serialized through the driver).
- No streaming, no multipart uploads, no cookies jar (stateless requests only).
- The dynamic host sandbox has no
process/env, so the driver path must be a literal inhost-half.js.
License
MIT
Comments
Loading…
Similar plugins
by Arcadia822
One-time ephemeral webhook plugin for DeepSeek Harness (dsh) sessions: mint a single-use callback URL, then wake the requesting agent session with the delivered payload.
★ 0
MIT
JavaScript
Sep 18, 2026
dsh plugin --profile web add dsh-tmp-hookby stuarthu
DeepSeek Harness (dsh) browser companion: Chrome side panel embedding the full dsh web UI + host plugins for page reading, HTTP capture, and browser control.
★ 9
↓ 382/wk
MIT
JavaScript
Aug 22, 2026
dsh plugin --profile web add dsh-chromeby ZSeven-W
DeepSeek Harness plugin for browser automation, headless first. Every agent gets its own throwaway Chrome/Edge/Chromium profile, short-lived semantic references instead of CSS selectors, scoped subtre
★ 1
MIT
JavaScript
Sep 24, 2026
dsh plugin --profile web add @zseven-w/dsh-browserby YUANMINGXUE
Local-browser web search & page fetch plugin for DeepSeek Harness (dsh): browser_search / browser_fetch over Chrome DevTools Protocol, no API key.
★ 0
MIT
JavaScript
Aug 26, 2026
dsh plugin --profile web add dsh-local-browser-searchHTTP/API debugging toolset: full-control HTTP requests (method/headers/body/auth), curl command parsing and one-step execution, in-session request history with side-by-side response comparison, pagina
★ 0
↓ 140/wk
dsh plugin --profile web add dsh-http-toolsby Decodo
DeepSeek Harness (dsh) plugin: Decodo as the provider behind the built-in web_fetch tool
★ 0
MIT
TypeScript
Oct 9, 2026
dsh plugin --profile web add @decodo/dsh-web-fetch