六个射频计算工具:电平换算、链路预算与最大距离、级联噪声系数、香农容量、阻抗匹配。
安装
# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)
dsh plugin --profile web add github:bestGi/dsh-rf-toolkit
装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。GitHub 来源的插件还会在安装时执行构建脚本——pnpm 默认拦截,所以安装可能停在 ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED 或 ERR_PNPM_IGNORED_BUILDS;dsh 会打印出需要添加的确切键名,把它加进该 profile 的 pnpm-workspace.yaml 的 allowBuilds 下,重跑一次即可装上。放行构建本身就是一次信任判断:请只安装可信来源,并尽量锁定 commit(github:owner/repo#sha)。
README
该插件的 README 只有英文版本。
RF and link-budget calculators for DeepSeek Harness, exposed as six tools the agent can call.
Language models are unreliable at RF arithmetic: they mix up dB and linear units, forget the 30 dB between dBW and dBm, and rarely convert dBµV correctly. This plugin moves those calculations into tested code, so the model only has to choose the right tool and supply the numbers.
Tools
| Tool | Computes |
|---|---|
rf_convert_level |
dBm ↔ dBW ↔ W ↔ mW ↔ dBµV, with the reference impedance for voltage levels |
rf_link_budget |
EIRP, free-space path loss, received power, noise floor, SNR and link margin |
rf_max_range |
Maximum free-space range for a given EIRP and target received power |
rf_cascade_noise |
Cascaded noise figure (Friis), total gain and equivalent noise temperature |
rf_shannon_capacity |
Shannon capacity and spectral efficiency for a bandwidth and SNR |
rf_match |
VSWR ↔ return loss ↔ reflection coefficient ↔ mismatch loss |
Units are never guessed. Powers are dBm, gains and losses are dB, frequencies are Hz, distances are metres, and bandwidths are Hz.
Install
Plugin Manager (recommended)
Open DSH, go to the plugin manager, choose to install a local bundle, and pick
this directory. The manager installs the package and selects the bundle, which
applies cordis.patch.yml. The tools appear in the next session in that
profile.
Command line
dsh plugin --profile desktop add link:C:\path\to\dsh-rf-toolkit
This adds the dependency to the profile. The bundle still has to be selected:
add dsh-rf-toolkit to dsh.profile.bundles in
~/.dsh/profiles/<profile>/package.json, then restart DSH.
Example prompts
Convert -73 dBm to dBµV at 50 ohms.2.4 GHz link, 1 km, 20 dBm transmitter, 6 dBi antenna, 1 dB cable loss, 20 MHz bandwidth, 3 dB noise figure, -90 dBm sensitivity. What is the margin?A 20 MHz channel at 10 dB SNR: what is the Shannon limit?LNA 20 dB gain with 2 dB noise figure, then a mixer with 6 dB noise figure. What is the cascaded noise figure?
Formulas
- Path loss:
20·log10(4πdf / c), withc = 299 792 458 m/s. - EIRP:
P_tx + G_tx − L_cable. - Received power:
EIRP + G_rx − L_path − L_extra. - Thermal noise:
−173.98 dBm/Hz + 10·log10(B) + NF, fromk·T₀at 290 K. - Friis cascade:
F = F₁ + (F₂−1)/G₁ + (F₃−1)/(G₁G₂) + …. - Shannon:
C = B·log2(1 + SNR). - dBµV:
dBµV = dBm + 90 + 10·log10(R); at 50 Ω that is+106.99 dB. - VSWR:
(1+|Γ|)/(1−|Γ|); return loss−20·log10|Γ|; mismatch loss−10·log10(1−|Γ|²).
All results are closed-form ideal values. A real link also sees multipath, interference, antenna efficiency and cable loss that varies with frequency, so treat the numbers as a starting point, not a measurement.
Development
No dependencies and no build step:
node --test
Layout:
lib/— pure functions, one module per topic, covered bytest/.index.js— the sixdefineToolregistrations and their output rendering.cordis.patch.yml— the bundle patch that inserts the plugin row.
中文说明
这是一个 DSH 插件,把射频常用计算做成模型可调用的工具:电平换算、链路预算、
最大通信距离、级联噪声系数、香农容量、阻抗匹配。公式都在 lib/ 里,test/
覆盖了 26 个用例。安装后在插件管理器里启用,然后在对话里直接让它算即可。
License
MIT
链接
同类插件
Tencent/WeKnora#dsh-weknora★ 38796
把 WeKnora 知识库接入 dsh 的四个只读工具:列出知识库、混合检索原文片段、按顺序还原单篇文档,以及直接取用 WeKnora 自己带引用的 RAG 或 ReAct agent 回答(含可续聊的 session id)。
DayuanJiang/next-ai-draw-io#dsh-plugin★ 37348
dsh 的 draw.io 绘图插件:通过 next-ai-drawio MCP 服务器作图,点回复里的链接在右侧栏打开实时预览,可以手动修改图,AI 的每次修改都是可以恢复的版本。需 Node.js 18+,首次使用由 npx 下载 MCP 服务器。
yikart/AiToEarn#dsh-plugin-aitoearn★ 29024
帮你生成文案/图文/短视频,一键分发抖音、快手、小红书、公众号、bilibili、Facebook、TikTok 等海内外平台,覆盖自媒体运营从内容创作,内容发布到内容变现全链路。
superdesigndev/treg★ 10192
给 Agent 的工具目录:按「要做的事」检索约 2,600 个外部接口(SEO 与 SERP、外链、社交、人物与公司信息补全、广告库、抓取),查看参数与单次调用价格后直接调用,凭据由服务端注入。附带技能,MCP 行在未设置 TREG_TOKEN 前保持禁用。
T-Auto/dsh-ops★ 6129
为 Windows 的 DSH 提供 bash、PowerShell 7 及 Rust 高性能工具,减少 token 消耗。
Hithink-Tech-Org/Financial-API#hithink-finance★ 4796
在 DeepSeek Harness 中查询同花顺金融数据、在对话中查看图表,并保存可刷新的看板。
社区评论
评论公开保存在 GitHub Discussions。加载评论会连接 GitHub 和 Giscus;发表内容需要 GitHub 账号。