ax2/dsh-deterministic-tools ↗★ 0

dsh-deterministic-tools

Deterministic, offline, bounded tools for DeepSeek Harness: JSON/YAML/CSV, text diff, regex, encodings, hashes, JWT/CIDR/color inspection. 适合需要让 Agent 在本地安全处理结构化数据与文本的用户。

Package
dsh-deterministic-tools
Compatibility
Unverified
Harness peer range
>=0.2.0-rc.1
Cordis peer range
>=4.0.0
Version
0.1.3
License
MIT
Last updated
Oct 12, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:ax2/dsh-deterministic-tools

配置

apply(ctx, config) 接受以下配置(全部可选,含默认值):

字段默认作用
maxInputBytes262144结构化输入的硬上限(UTF-8 字节),超过即拒绝
maxOutputBytes262144结果渲染的软上限,超过即截断或标记
maxMatches1000查询/正则返回的匹配数上限
maxDiffEntries2000diff 报告的差异条数上限
maxPatternChars1000正则表达式长度上限
regexInputBytes65536正则堆栈上限(JS 回溯无法抢占,所以单独收紧)
maxRecords20000CSV 解析/生成的记录数上限
toolPrefix''工具名前缀,例如 zidev → zidev__json_format
only[]只注册指定工具(空 = 全部)