rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:Douglas-Fly/dsh-qrcode
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Generate and decode QR codes inside DeepSeek Harness — two agent tools, no network, no API key, no native build.
Ask in chat; the agent calls the tools:
qr_generate writes a PNG (or SVG) into the workspace and returns the path.qr_decode reads the text back out of the PNG/JPEG.Both tools run locally. Nothing is uploaded anywhere.
Two conveniences ride on top of the tools:
autoDecode field of the qr-code row in the profile's cordis.patch.yml.| Tool | Arguments | Result |
|---|---|---|
qr_generate |
text (required), output_path?, format? (png/svg), size? (64–2048 px), margin? (0–16 modules), error_correction? (L/M/Q/H) |
Absolute path of the written image, plus file size, pixel size, QR version, module count and error-correction level |
qr_decode |
file_path (required; path or data:image/...;base64 URI) |
The decoded text, its byte length, and the image dimensions |
Defaults: PNG, 512 px, quiet zone of 2 modules, error correction M. Output goes to qr-<timestamp>.png in the session working directory unless output_path says otherwise.
L, largest version); an over-long input fails with the byte count and the fix, instead of writing a broken image.workspace-write it refuses a destination outside the workspace instead of writing around the sandbox; under read-only it refuses to write at all; under danger-full-access any path you name is allowed.From the plugin market inside DSH (Plugins → Discover), search for QR codes.
From npm into a profile:
dsh plugin add dsh-qrcode --profile <profile>
From a local directory: copy this folder somewhere, then Plugins → Add plugin and pick the directory (or plugin_manager install_bundle with its absolute path). The bundle inserts one row, qr-code.
The Host half registers two model tools, one agent/pre-step hook, one runtime-context contribution, and two authenticated routes under /api/qr-code/ that the browser half uses. The browser half adds the selection button and the plugin page's switch. Neither touches other plugins' DOM: the button reads the document selection and renders into the frame-wide overlay.
Image scanning costs nothing when it is off, does nothing for images that hold no QR code, and decodes each attachment once per session.
MIT. The QR encoder is implemented in this package — ISO/IEC 18004 byte mode: version selection, Reed-Solomon over GF(256), block interleaving, function patterns, the eight masks and the penalty rule that picks one. The test suite compares every symbol module for module against the reference qrcode implementation (dev dependency only) and reads each one back with an independent decoder.
Writing the image needs nothing beyond Node's zlib. Reading one uses jsqr for detection, plus pngjs and jpeg-js to unpack PNG/JPEG. Those three are the only runtime dependencies, and detection is the part that is genuinely hard to own.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。