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 在本地安全处理结构化数据与文本的用户。
インストール
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:ax2/dsh-deterministic-toolsドキュメント
README 全文を読む ↗配置
apply(ctx, config) 接受以下配置(全部可选,含默认值):
| 字段 | 默认 | 作用 |
|---|---|---|
maxInputBytes | 262144 | 结构化输入的硬上限(UTF-8 字节),超过即拒绝 |
maxOutputBytes | 262144 | 结果渲染的软上限,超过即截断或标记 |
maxMatches | 1000 | 查询/正则返回的匹配数上限 |
maxDiffEntries | 2000 | diff 报告的差异条数上限 |
maxPatternChars | 1000 | 正则表达式长度上限 |
regexInputBytes | 65536 | 正则堆栈上限(JS 回溯无法抢占,所以单独收紧) |
maxRecords | 20000 | CSV 解析/生成的记录数上限 |
toolPrefix | '' | 工具名前缀,例如 zidev → zidev__json_format |
only | [] | 只注册指定工具(空 = 全部) |