DeepSeek Harness plugin

dsh-jwt

DSH plugin: decode and inspect JWT tokens (debug only, no signature verification).

Jump to install

Source facts

Repository
ZhijiangTang/dsh-jwt
Latest update
Aug 16, 2026
Category
Development & Runtime
GitHub stars
0
Format
plugin
Catalog evidence
Upstream dsh.bundle evidence
Evidence path
package.json#dsh.bundle
Checked against
0.1.0-rc.8
Upstream check date
2026-08-20

This evidence comes from the upstream catalog. This site has not installed, run, or security-reviewed the plugin.

Install

Start with a prompt that asks an agent to review the GitHub repository and source. Switch to the command if you want to install it yourself.

Copy this prompt into DSH, Codex, or another agent and ask it to review the GitHub repository and source first.

Do not install or run any commands yet. Read this plugin's GitHub repository, README, and relevant source code. Then answer the questions below clearly and directly so I can decide whether it fits my needs:

1. What is this plugin, and what problem does it solve?
2. Who is it for, and what are its typical use cases?
3. How is it used after installation? Include one minimal example.
4. What known limitations or privacy, security, compatibility, or maintenance risks does it have?
5. Give a clear recommendation: recommend, conditionally recommend, or do not recommend, with reasons.

Distinguish statements documented by the repository, inferences from source code, and unknowns. If evidence is insufficient, say so explicitly. Do not guess or simply repeat the README.

GitHub: https://github.com/ZhijiangTang/dsh-jwt
Plugin: dsh-jwt
Author: ZhijiangTang

Check the source files

Read the README and other files from this plugin directory before installing.

File explorer3 files
README.mdSource · read only

dsh-jwt

DeepSeek Harness(DSH)插件:JWT 解码查看工具。把 JWT 拆成 header / payload / 签名三段,base64url 解码 header 与 payload,并解读 exp / iat / nbf 时间声明(UTC 与本地时间、剩余/过期状态)。

⚠️ 不验签!不要据此做安全决策

jwt_decode 只解码、不验签:它不校验签名是否有效、密钥是否匹配,也不校验 iss / aud 等声明。

> 请勿依据本工具的输出做任何安全决策(身份认证、授权、信任来源等)。 > 需要可信的 JWT 校验时,请使用具备密钥校验能力的库,并完整验证签名、iss / aud、过期时间等全部声明。

安装

dsh plugin --profile <你的 profile> add file:./plugins/dsh-jwt

(发布到 npm 后可用 dsh plugin --profile <profile> add dsh-jwt

使用

注册工具 jwt_decode,参数:

参数类型必填说明
tokenstring要解码的 JWT(header.payload[.signature]

输出字段

字段类型说明
okboolean是否成功解析(header 与 payload 均为合法 JSON)
partsinteger. 切分得到的段数(2 或 3)
headerobject / null解码后的 JOSE header
payloadobject / null解码后的 payload(claims)
signaturePresentboolean是否存在签名段(仅存在性,不校验)
issuedAtobject?iat 声明:{ value(秒), iso(UTC), local(本地) }
notBeforeobject?nbf 声明:{ value, iso, local, active }
expiresAtobject?exp 声明:{ value, iso, local, expired, remainingSeconds }
expiredboolean?是否已过期(依据 exp
remainingSecondsnumber?距过期的剩余秒数(已过期时为负)
errorsstring[]解码/解析过程中的错误或提示(含失败阶段:header/payload 解码或 JSON 解析)

时间声明支持秒与毫秒时间戳:数值 > 1e12 时自动按毫秒识别并换算。解析失败时工具不抛异常,返回 ok: falseerrors 说明失败阶段。

License

MIT