rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:wertyq111/dsh-paste-preview
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
A DeepSeek Harness (dsh) web plugin that makes pasted images usable with text-only models, without losing the visual preview.
modlens_read_image can read it. Vision-capable models keep dsh's native image path.dsh plugin add dsh-paste-preview
Restart dsh afterwards.
modlens has its own paste-to-path feature that intercepts pastes first. Turn it off in your profile's cordis.patch.yml:
- id: modlens
config:
pasteToPath: false
This is not shipped in the plugin's own patch on purpose: a patch that targets a missing entry id makes dsh fail at startup for anyone without modlens.
The browser asks GET /dsh-paste-preview/verdict?model=<selector label>. The host answers takeover: true only when every model whose name or id appears in the label declares text-only input. modlens' own "(modlens vision)" wrappers are ignored so they cannot veto the model they wrap. Unknown or unresolvable models answer false, which keeps the native behaviour.
Session-aware composers (including DS Bot) use the session's modelSelection projection and pass the exact provider/model route to the host. The host resolves that route's real input modalities, so a hidden model selector and vision twins on other providers cannot change the decision. Older composers can still use the selector-label query. The attachment rail is absent for empty drafts and stays above the editor in DS Bot's wrapping layout.
| Route | Purpose |
|---|---|
GET /dsh-paste-preview/verdict |
Whether pastes for the current model should be rerouted |
GET /dsh-paste-preview/file |
Reads back a stored image attachment for thumbnails (sha256 id, png/jpg/webp/gif only, ≤ 32 MB) |
GET /dsh-paste-preview/debug |
Lists providers, models and their input modalities |
All routes go through dsh's connection.requestRejection check and answer 401 to unauthenticated requests. Stored files are read through the dsh attachment store, which re-verifies the name, size and digest.
pnpm install
pnpm test
MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。