jean3690/dsh-devtoolbox
dsh-devtoolbox
dsh-devtoolbox is a community DeepSeek Harness plugin. Read the repository README before installing.
Install
npx @deepseek-ai/dsh plugin --profile web add link:/path/to/dsh-devtoolboxRestart `dsh web` after install. Bundle APIs can change during the developer preview.
README badge
[](https://dshhub.dev/plugins/dsh-devtoolbox)Paste this into your README. The star count updates with every catalog sync.
From the README
Excerpt from jean3690/dsh-devtoolbox, cleaned of badges and images.
dsh-devtoolbox
DSH 本地工具箱插件:侧边栏独立页面 + /toolbox 命令 + 配置驱动的 agent 确定性工具。
约 52 个本地小工具(文本 / 编码 / 数据 / 安全 / 提取 / 转换 / 参考 / 效率 / 网络),
参考 devtoolbox.online 设计,数据不出本机(唯一例外:http_request 按需联网)。
你能得到什么
| 界面 | 能力 |
|---|---|
| 侧边栏「工具箱」入口 | 点击进入中心列全屏工具箱:分类导航 + 搜索 + 工具卡片网格 |
| 工具页 | 动态参数表单 → 本地运行 → 结果(文本 / JSON / 表格),一键复制、下载、保存到项目 |
/toolbox 命令 | /toolbox 列出全部工具;/toolbox run <id> key=value … 直接执行(模型可读、可日志重建) |
| agent 工具 | 配置驱动:agentTools 决定哪些 toolbox_* 工具对模型可见(默认一个都不暴露);userTools 让你用 JS 表达式自定义自己的工具 |
| 文件工具 | toolbox_file_hash / toolbox_file_encode(GBK⇄UTF-8)——需要时在配置中启用 |
工具清单(52 个,除 http_request 外全部本地运行)
| 分类 | 工具 id |
|---|---|
| 文本 | text_stats text_remove_blank text_dedup case_change case_convert fullwidth cn_convert regex text_ops line_convert escape sort_lines |
| 编码 | base64 url html_entity unicode_escape radix timestamp data_url qrcode |
| 数据 | json_format json_csv csv_fix text_diff json_path json_to_yaml |
| 安全 | md5 sha uuid password random_num crc32 crypto_encrypt |
| 提取 | phone email url_extract ip_extract id_card |
| 转换 | money color unit_convert time_convert |
| 参考 | http_codes ports mime ascii |
| 效率 | picker |
| 网络 | http_request(GET/POST/PUT/PATCH/DELETE/HEAD/OPTIONS,自定义头/体/超时/截断;浏览器端受 CORS 限制,命令与 agent 端完整可用)curl_parse(curl 命令 → http_request 参数)url_parse(URL 分解)jwt(解码 + HS* 签名校验)hmac(HMAC 签名) |
宿主文件工具:file_hash file_encode(agent 可暴露,见配置)。
快速上手
dsh plugin --profile web add link:/path/to/dsh-devtoolbox
重启 web 面板(bundle 列表在启动时快照),侧边栏出现「工具箱」入口:
/toolbox
/toolbox run md5 text=hello
/toolbox agent
配置(cordis.patch.yml)
- insert:
- id: dsh-devtoolbox
name: dsh-devtoolbox
config:
# 暴露给模型的内置工具;'*' = 全部,[] = 不暴露(默认)
agentTools: ['json_format', 'base64', 'md5']
# 用户自定义工具(JS 表达式;agentTools 含其 name 或 '*' 时注册为 toolbox_<name>)
# userTools:
# - name: shout
# description: 把文本转成大写并加感叹号
# args:
# text: { type: 'string', required: true, description: '输入文本' }
# run: !!js |
# ((args) => ({ text: String(args.text).toUpperCase() + '!' }))
# 浏览器「保存到项目」RPC(写入 <profile>/toolbox-saves,可改 saveDir)
saveEnabled: true
# saveDir: toolbox-saves
可暴露的内置工具(/toolbox agent 可查看):text_stats cn_convert case_convert fullwidth base64 url html_entity unicode_escape radix timestamp json_format json_csv csv_fix text_diff json_path json_to_yaml md5 sha uuid password random_num crc32 crypto_encrypt phone email url_extract ip_extract id_card money color unit_convert time_convert http_codes ports mime ascii text_ops text_remove_blank text_dedup case_change regex line_convert escape sort_lines data_url qrcode http_request curl_parse url_parse jwt hmac + 宿主文件工具 file_hash file_encode。
架构
…

