rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:q8atnight/dsh-squeeze
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
![]()
A plugin for DeepSeek Harness (DSH) that adds one tool, squeeze.
中文简介:
squeeze工具让 Agent 把长网页、多个网页、文本文件或 PDF 交给你选定的辅助模型阅读,只把答案带回对话,原文不占用上下文。注意:原文会发送给作答模型所属的提供方;开启回退(fallback)时,同一原文可能被发送给列表中另一提供方的模型。文件只通过 DSH 文件系统服务(ctx.fs)读取,被策略拒绝的路径一律拒绝(ACCESS DENIED)。
When an agent needs something from a long web page, a batch of pages, a big text file or a PDF, it calls squeeze
with a specific question. squeeze downloads or reads the material, hands it to a helper model you choose, and
returns only the answer. The material never enters the main conversation, so the agent's context stays small and
cheap.
Typical uses: pull figures out of a long report, find one section in a large log or code file, compare a few web pages, summarise a transcript.
The agent asks about a 17,000-character government PDF. Only this comes back into the chat (a few hundred characters instead of the whole document):
squeeze url: https://tax.gov.ae/…/Cabinet Decision No. 75 of 2023 and amendments - For Publishing.pdf
prompt: What penalty (AED) applies for failing to submit a corporate tax registration application on time?
Quote the item number.
Item 14 in the Table of Violations and Administrative Penalties: "Failure of the Taxable Person to submit a Tax
Registration application within the timeframe specified by the Authority …" — penalty AED 10,000.
(Footnote: added by Cabinet Decision No. 10 of 2024, effective 1 March 2024.)
squeeze: ok | model quick (Qwen Flash Next) | 6.9s | source 16,856 chars | thinking medium
(A real call from 3 Nov 2026, answered by a local model; the answer is shortened here.)
The status line tells the agent which model answered, how long it took and how big the source was. Failures say
what went wrong and what to do next (for example squeeze SOURCE PROBLEM: … this PDF has no text layer (probably a scan or photo) — it needs OCR).

quick, careful, …) and a one-line
note. The agent sees them in its tool description and picks a model by nickname.REQUEST PROBLEM, SOURCE PROBLEM,
TOO BIG, MODEL UNAVAILABLE, NO ANSWER, TIMED OUT, CANCELLED, ACCESS DENIED) and ends with the next step.pdftotext program (poppler; brew install poppler on a Mac) is installed. Scanned PDFs are refused with
advice to use OCR.Requires DSH 0.2.1-rc.5 or newer. For PDF support also install pdftotext (brew install poppler on a Mac).
From the GitHub release — ask the DSH agent:
Install the bundle
https://github.com/q8atnight/dsh-squeeze/releases/download/v2.1.0/dsh-squeeze-2.1.0.tgzwith the plugin manager.
(It uses plugin_manager → install_bundle with that address. You can also download the .tgz file and give the
agent its path instead.)
From a folder — clone or unpack this repository somewhere permanent (for example ~/.dsh/plugins/dsh-squeeze)
and ask the agent to install the bundle at that folder.
Then restart DSH if the plugin manager says a restart is needed, and open Plugins → squeeze → Configure to choose your models.
Without any model chosen, squeeze uses the DSH default chat model.
| Setting | Default | Meaning |
|---|---|---|
| Helper models | — | Default + up to 2 extra: model, nickname, thinking level, "when to use" note. The same model can be listed only once. |
| Fallback | off | Try the next model when one is down or too small. |
| Context fill (%) | 80 | Share of each model's context window the material may use. |
| Output budget (tokens) | 16,000 | Thinking + answer, capped at the model's own maximum. |
| Time limit per model call (s) | 600 | Longer calls are stopped and reported. |
| Time limit per page download (s) | 30 | |
| Web addresses per call | 20 | |
| Longest answer (characters) | 6,000 | Longer answers are cut at a line break and marked ANSWER CUT. |
| Minimum page length (characters) | 300 | Below this a single page is treated as "probably JavaScript-only or blocked". |
| Pages under the minimum length | hand over as-is | Or refuse with an error. |
Changes apply to the next tool call; open sessions see the new tool description from their next request.
Parameters: prompt (required), and one source — url, urls (list) or file (path; file_path is accepted
too) — plus model (a nickname) when more than one model is set up.
The result is the answer followed by a status line, for example:
squeeze: ok | model careful (GLM-5.3-Flash) | 41.2s | source 152,300 chars | thinking high
pdftotext). Convert Word or Excel files to text first; scans and
photos need OCR.TOO BIG (or falls back, if fallback is on).ctx.fs) — the same path resolution and the same
service as the built-in read tool — so whatever filesystem/sandbox policy your DSH setup mounts applies to squeeze
too. It never opens a model-supplied path with Node's own file functions.ACCESS DENIED, nothing is sent to any model, and there is
no fallback route. (test/unit.mjs has regression tests for this: denied at path resolution, denied at read time,
denied PDF, and no filesystem service at all.)dsh-fs-sandbox, 0.2.1) fences writes and edits only — "every mode permits reading" — so
in a default setup squeeze can read the same files the read tool can, no more.pdftotext only ever receives squeeze's own temporary copy of the bytes the filesystem service returned.index.js — the tool (host side)client.js — the settings pagecordis.patch.yml — switches the plugin on when the bundle is installedlocale/en.json, icon.svg — name, description and icon shown on the Plugins pageassets/, screenshots.json — README pictures and the screenshot list used by plugin storefrontstest/ — offline checks: ELECTRON_RUN_AS_NODE=1 "<DSH app binary>" --import ./test/hooks.mjs test/unit.mjsctx.fs) instead of Node's fs, so the
host's filesystem policy applies; denials are reported as ACCESS DENIED (regression tests added); README documents
where the source text is sent and that fallback may send it to another provider.pdftotext); sites with more than 16 KB of headers
are read; batch pages download in parallel; downloads without a size header are capped too; over-long answers
are cut at a line break with status ANSWER CUT (out-of-budget answers keep ANSWER INCOMPLETE); the queue is
per provider instead of global.MIT — see LICENSE.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: llm-tools、deepseek-harness。