Preface¶
When asking models in DeepSeek Harness (DSH) to calculate dBm, dBµV, link margin, or cascaded noise figure, common issues include unit mixing, missing the 30 dB conversion between dBW and dBm, and incorrect reference impedance for voltage levels. Hand-writing formulas or asking the model to “mental math” is slow and unreliable. This article introduces the plugin dsh-rf-toolkit by maintainer bestGi: it places closed-form formulas from RF and link budget calculations into tested code, exposing them to the agent via six callable DSH tools. The model simply needs to select the correct tool and input the values. The community directory SkillHub classifies it as “Model Reasoning”; source code and documentation are available on GitHub.
What is this¶
dsh-rf-toolkit is a plugin for DeepSeek Harness (npm package name dsh-rf-toolkit, version 0.1.2 in current materials, MIT License). It does not train models; instead, it solidifies calculations for level conversion, free-space link budget, maximum distance, Friis cascaded noise, Shannon capacity, VSWR, and match loss within lib/, registering them as tools via index.js. The test/ directory covers 26 test cases. The plugin has no additional dependencies and no build steps, requires Node.js >= 20, and works with DSH >=0.2.1-rc.2.
Six Tools and Unit Conventions¶
After installing and enabling the bundle, the agent can call the tools in the table below (names match the README):
| Tool | Function |
|---|---|
rf_convert_level |
dBm ↔ dBW ↔ W ↔ mW ↔ dBµV; reference impedance required for voltage levels |
rf_link_budget |
EIRP, Free-space path loss, Received power, Noise floor, SNR, Link margin |
rf_max_range |
Free-space maximum distance given EIRP and target received power |
rf_cascade_noise |
Cascaded noise figure (Friis), Total gain, Equivalent noise temperature |
rf_shannon_capacity |
Shannon capacity and spectral efficiency given bandwidth and SNR |
rf_match |
VSWR ↔ Return loss ↔ Reflection coefficient ↔ Mismatch loss |
The documentation specifies: Units are not guessed by the model. Power is in dBm, gain and loss in dB, frequency in Hz, distance in meters, and bandwidth in Hz. Results are ideal closed-form solutions; actual links involve multipath, interference, antenna efficiency, and frequency-dependent cable loss, so values should serve as a starting point rather than a replacement for measurements.
Installation and Activation¶
DSH plugins run with the permissions of the current DSH process; please review the repository source code and license (MIT) before installing.
Plugin Manager (Recommended)¶
- Open DSH and go to the Plugin Manager.
- Choose to install a local bundle and select the directory containing dsh-rf-toolkit.
- The manager will install the package and select the bundle, thereby applying
cordis.patch.yml; the tools will be visible in the next session of that profile.
Command Line¶
Add the local path to profile dependencies (example is for Windows PowerShell; replace the path with the actual directory on your machine):
dsh plugin --profile desktop add link:C:\path\to\dsh-rf-toolkit
This writes the dependency to the profile; you still need to add dsh-rf-toolkit to dsh.profile.bundles in ~/.dsh/profiles/<profile>/package.json, then restart DSH to select the bundle.
Typical Usage¶
You can describe parameters in natural language within the conversation. Examples from the README are as follows (you can reproduce them by changing the values):
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?
The agent should call the corresponding tools rather than deriving in text; the formula implementations match the “Formulas” section in the README. For example, path loss 20·log10(4πdf / c) (c = 299 792 458 m/s), thermal noise floor −173.98 dBm/Hz + 10·log10(B) + NF (290 K), and the difference between dBµV and dBm at 50 Ω is approximately +106.99 dB.
Use Cases and Notes¶
Suitable for rough RF link calculations, educational verification, and drafting plans within DSH: WLAN/cellular distance and margin estimation, receiver front-end cascaded NF, channel capacity limits, VSWR and return loss conversion. Not suitable for replacing EM simulation, actual calibration, or planning tools with complex propagation models.
Developers can run node --test in the cloned or downloaded directory to run tests; the layout consists of pure functions in lib/, registration and output rendering in index.js, and plugin insertion lines in cordis.patch.yml. The community directory SkillHub has no official affiliation with DeepSeek / High-Flyer. Installation sources depend on the bundle and profile you select.
Conclusion¶
dsh-rf-toolkit encapsulates error-prone RF arithmetic into testable code, handing it over to the agent via six DSH tools with unified unit conventions. For further information on classification and entry points, see the SkillHub directory page. For installation and formula details, refer to the GitHub repository README.