rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:Jestions-dev/dsh-download-server
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
English | 中文
DLS — DSH Download Server A persistent download queue for DeepSeek Harness.
Downloads should not live inside a session.
Settings → Plugins → Install a third-party plugin → Add plugin
Type dsh-dl-server@0.4.0, confirm, then restart DSH once.
dsh plugin add dsh-dl-server@0.4.0
Pin the version.
0.1.0declared@deepseek-ai/dsh-storage-domainas a regular dependency, so pnpm installed a second copy inside the plugin; the injected service then no longer matched the host and the plugin never mounted (every service stayedpending).0.1.1moves it topeerDependencies.pnpm also caches registry metadata — without an explicit version you may still resolve an older release.
dshmust be on your PATH. The desktop build ships one at…\DeepSeek Harness\resources\runtime\cli\bin\dsh.cmd; if you have never added it, use the UI path.
Requires DSH 0.2.1-rc.5 or newer.
aria2 is optional but strongly recommended — install it for 16-way segmented downloading. Without it the plugin falls back to a single-stream transfer: same features, roughly a tenth of the speed. The plugin warns at startup and reports the reason through download_status, so a slow first install is not a mystery.
| Platform | Install aria2 |
|---|---|
| Windows | winget install aria2.aria2 |
| Ubuntu / Debian | sudo apt install aria2 |
| Fedora | sudo dnf install aria2 |
| Arch | sudo pacman -S aria2 |
| macOS | brew install aria2 |
Most DSH downloaders are one tool function that blocks until the file lands. They make downloads fast; they don't solve three things:
DLS is the queue layer, not the transport layer.
Jobs live in DSH, not in a session.
A download started in one session is visible to every other session — progress, destination, everything. But only the session that started it can pause, resume, or cancel it.
| Tool | What it does |
|---|---|
download_enqueue |
Queue a job, return immediately with a job id |
download_status |
Inspect the queue or a single job (J#1042) |
download_wait |
Block until a job reaches a terminal state, with a timeout |
download_pause |
Pause, keeping the bytes already on disk |
download_resume |
Continue from the last checkpoint |
download_cancel |
Cancel, optionally dropping the partial file |
download_cleanup |
Drop records (the default scope leaves downloaded files alone) |
| Mirror expansion | GitHub Releases / HuggingFace / raw.githubusercontent / PyPI URLs gain a fallback mirror automatically. The original always stays first. |
| Mirror cooldown | Two consecutive failures on one host parks it for 10 minutes instead of retrying it on every job. |
| Size-aware concurrency | Under 1 MB skips aria2 entirely; 1–8 MB runs 4 connections; only 8 MB and up gets 16. |
| Session fairness | When two sessions queue at once they share the slots instead of one of them taking the whole queue. |
| Cumulative disk budget | Enqueue counts what already-queued jobs still need, so a batch cannot quietly fill the disk. |
| Failures are no longer silent | Checkpoint write errors are counted and surfaced in download_status under storage; an unwritable destination is refused before the transfer starts. |
| Queue de-duplication | One destination is never downloaded twice. A finished job is reused while its file is still on disk; a different source claiming the same path fails with dest-in-use. |
| Mirror self-verification | Before a mirror is used, it is HEADed once: the length must equal the origin's, and when the origin advertises an ETag the mirror's must match too. |
A mirror is a third party and serves whatever it likes. Length plus ETag catches a cached older build or an HTML error page; it does not catch a poisoned copy. Only
sha256proves content, which is why mirrors are a fallback and not a guarantee.
| Custom request headers | download_enqueue takes an optional headers object — Referer, Cookie, User-Agent, anything the host wants. Sent on the origin probe, on every mirror probe, on the aria2 download and on the single-stream fallback. |
| Validated at enqueue | Line breaks, control characters, illegal names, more than 32 headers, and transport-owned names (Range, Host, Content-Length, …) are rejected with header-invalid before any bytes move. |
| Redacted in output | Values may be session cookies. Job output lists names only ("requestHeaders": ["Referer"]); the values stay in the transfer layer and the local store. |
Why it matters: some URLs are correct and still refuse to download. Bilibili's media CDN answers 403 to any request without Referer: https://www.bilibili.com — no number of mirrors helps. This is the same reason curl -H exists.
download_enqueue urls=[...] dest=... headers={"Referer": "https://www.bilibili.com"}
Resume still works: headers are persisted with the job, so a download interrupted by a DSH restart sends them again.
You: download these two PDFs into D:\Papers and tell me when they're done
The agent calls download_enqueue twice and gets J#10 / J#11 back, then download_wait.
Because enqueue returns immediately, it can fire off ten downloads without waiting for any of them.
Same machine, same file:
| Setup | Throughput |
|---|---|
| TUNA mirror · single connection | 43.98 MB/s |
| TUNA mirror · 16 threads (another plugin) | 54.20 MB/s |
| TUNA mirror · DLS | 61.08 MB/s (saturates a 500 Mbps link) |
| HuggingFace · single-stream fallback | 1.00 MB/s |
| HuggingFace · DLS | 6.96 MB/s (7×) |
The last row is the point: on a per-connection-throttled host, segmentation beats bandwidth.
cleanup(scope="all") deletes files. The default allWithoutFiles only drops records.TMPDIR or the working directory.The roadmap names product stages (v1, v1.1, v1.2, v1.3, v2); npm versions follow semver. They do not map one-to-one — use this table:
| npm | Roadmap | Content | Status |
|---|---|---|---|
0.1.x |
v1 | queue + persistence + seven tools + aria2 transport | released |
0.2.x |
v1.1 | mirrors / mirror cooldown / size-aware concurrency / session fairness / disk budget / loud failures | released |
0.3.x |
v1.2 | queue de-duplication / mirror self-verification | released |
0.4.x |
v1.3 | custom request headers (Referer / Cookie / User-Agent) on every attempt, validated at enqueue, redacted in output |
released |
0.4.1 |
patch | missing aria2 is now a loud, actionable warning instead of a silent speed cliff; download_status reports the channel |
released |
1.0.0 |
v2 | shell interception / torrents / own segmented engine / content addressing | planned |
1.1.x |
v3 | user panel + callbacks into the agent | planned |
Why 0.x lasts until v2: 1.0.0 means "the tool names and config keys will not change incompatibly". Only v2 touches the transport and the tool set, so that is where 1.0 belongs.
You never have to do the conversion yourself — install the latest and you get the newest milestone.
MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。