DeepSeek Harness 离线二维码(SVG/PNG/ASCII)与条码(Code128/EAN-13)生成器,无网络、无 shell。
安装
# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)
dsh plugin --profile web add github:hellosky983/dsh-qrcode
装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。GitHub 来源的插件还会在安装时执行构建脚本。请只安装可信来源,并尽量锁定 commit(github:owner/repo#sha)。
README
An offline QR code and barcode generator for DeepSeek Harness. Pure local computation — no network, no shell, no dependencies.
Overview
DeepSeek Harness sessions often run with restricted network access (no npm, no CDN, no online encoder APIs), so generating a scannable code from inside a session is not trivial. This plugin solves that: it provides qrcode and barcode model tools that encode and render entirely locally, with zero runtime dependencies. It is for agents and users who need QR codes (URLs, WiFi, vCard, tel, sms) or 1D barcodes (Code128, EAN-13) as SVG / PNG / ASCII output inside any DSH session — including fully offline or sandboxed ones.
Compatibility
- DSH version:
0.1.0-rc.6 - Mainline: verified against
deepseek-harnessmainline snapshots of 2026-08-14 - Last verified: 2026-08-14
Install / Uninstall
Install (from GitHub):
dsh plugin add github:hellosky983/dsh-qrcode
Or clone and install locally:
git clone https://github.com/hellosky983/dsh-qrcode.git
cd dsh-qrcode
dsh plugin add .
Upgrade: re-run the install command after git pull.
Disable temporarily: remove the plugin row from your profile composition, or run:
dsh plugin remove dsh-qrcode
Uninstall: remove the dsh-qrcode dependency and its bundle entry from the profile package.json, then pnpm install.
Quick start
Tell the agent:
把这个链接做成二维码: https://example.com
or call the tools directly:
qrcode text="https://example.com" format=svg
barcode text="ABC-123" symbology=code128 format=svg
qrcode returns SVG markup (save to a .svg file), PNG data URLs, or ASCII previews. barcode supports code128 and ean13.
Configuration
| Tool | Option | Default | Description |
|---|---|---|---|
qrcode |
text |
— (required) | Content to encode: URL, WIFI:..., vCard, tel/sms, or plain text |
qrcode |
format |
svg |
svg / ascii / png |
qrcode |
ecl |
M |
Error correction level L/M/Q/H |
qrcode |
scale / border / fg / bg / mask |
4 / 4 / #000 / #fff / auto | Rendering options |
barcode |
text |
— (required) | Content for Code128 (ASCII) or EAN-13 (12/13 digits) |
barcode |
symbology |
code128 |
code128 / ean13 |
No environment variables, no secrets.
Permissions & data
- Reads: nothing (pure function of the input arguments).
- Writes: nothing. Tools return text/SVG/PNG data in the result.
- Network: none. Encoding and rendering are fully local.
- Credentials: none.
Troubleshooting
- Tool not visible after install: restart dsh, or check that the bundle row appears in
dsh --dump-config. - "cannot get property tools without inject": the plugin requires
inject = ['tools']; reinstall from the latest commit which declares it. - PNG output is a data URL: the agent should prefer
format=svgand save the returned markup as a.svgfile when a file artifact is needed. - Logs: dsh profile logs under
~/.dsh/profiles/<name>/. - Rollback: revert to the previous plugin version by reinstalling the earlier git commit.
Development
git clone https://github.com/hellosky983/dsh-qrcode.git
cd dsh-qrcode
node --check index.js
The encoder was validated against zxing-cpp (96/96 test vectors, versions 1–40, all masks/EC levels) and cross-checked with segno for mask scoring. The suite lives in the commit history of this repository.
Contributions: open issues and pull requests on GitHub. Keep changes dependency-free (the encoder is self-contained). Report bugs with a minimal reproduction case.
License & security
MIT — see LICENSE. No secrets are shipped; report security issues privately via GitHub issue (repo is public) or email to the repository owner.
链接
同类插件
vectorize-io/hindsight#coding-agents★ 19981
Hindsight:会学习的 Agent 长期记忆系统,自动召回/保存、知识页、深度反思与按仓库隔离的记忆银行。
omdsh-dev/dsh-mnemon★ 27
由 Mnemon 驱动的 DeepSeek Harness(DSH)跨 Agent、本地优先的持久记忆插件。它可在支持 Mnemon 的 Agent 之间共享长期记忆,并提供运行时记忆、可检索项目档案、语义召回、知识图谱和 Sidebar UI。
LoserFox/distill★ 19
自动对话蒸馏:后台 subagent 反省 + 技能 create/update。
Tyan66666/billion-context-dsh★ 13
模型驱动的上下文压缩(Active Context Pruning):由模型决定何时压缩、压缩什么。
modusensus/dsh-mneme#dsh-mneme★ 12
跨会话记忆:SQLite + 可人工编辑的 Markdown 镜像,autoDream 后台自动巩固(去重/合并/冲突裁决),6 个记忆工具,完全离线语义检索(本地向量 / 精排 / 聚类)。
Aik358/dsh-auto-memory★ 11
DSH 自动记忆插件:三层记忆自动注入与检索、每轮对话自动沉淀、AI 时段问候与三级抽屉、智能检索、日历视图与设置页,支持继承其他 AI 工具的记忆。