← Back to list

dsh-tool-regex

DeepSeek Harness Tools & Capabilities Low risk

Test/extract/safe-replace/statically explain regexes without executing code.

正则测试/提取/安全替换/静态解释(不执行代码)。

How to install

DeepSeek Harness dsh plugin add github:omdsh-dev/dsh-tool-regex

About

dsh-tool-regex English DSH 正则工具插件 —— 测试匹配、提取捕获组、安全替换、**静态解释正则含义(不执行任何代码)**。零依赖、纯函数。 动机 模型经常需要验证用户给的 pattern、从日志/文本中提取字段、做文本替换。"心算"正则结果错误率极高,且无法给用户展示可验证的过程。现有替代是起 bash 进程跑 node -e 或 python——进程开销 + 模型现写脚本的正确性风险。内置 grep 只能做**文件域**搜索,无法对任意文本测试/提取/替换/解释。 本插件提供确定性正则工具,其中 explain 是差异化能力:静态解析 pattern 结构并给出人读解释,**不执行匹配**,天然免疫 ReDoS。 安全模型(ReDoS 多层防线) JS 正则的灾难性回溯是真实威胁(如 (a+)+$ 配合超长输入)。防线: 1. **worker 硬超时**:test/find/replace 在**可终止的 worker 线程**内同步执行,1,000ms 预算到期 worker.terminate() 并返回 regex: execution timed out——灾难性回溯不再能阻塞宿主进程(工具管道的 timeoutMs 对同步阻塞体是协作式,仅靠它不够;worker 内会再次执行全部上限校验) 2. **输入长度上限**:64,000 字节(U…

Recommendation signals

46 Tool quality · Based on stars, downloads, maintenance, security and docs
– User interest · Adjusted by in-site views, install copies and download clicks
46 Overall
0views
0unique visitors
0install copies
0download clicks
0outbound clicks

Meta

License
MIT
Language
TypeScript
GitHub stars
3
mo. downloads
–
Last push
2026-09-10
Created
2026-08-07

Links

GitHub ↗ Report issue ↗

Basic safety check

Findings
curated 收录但无 npm 包/安装命令
Sources
curated:awesome-dsh-plugin.com, curated:awesome-dsh-plugin/awesome-dsh-plugin
Topics
dsh, dsh-plugin, redos-protection, regex

Related plugins

MCP Server
Score93

fastmcp

punkpeye/fastmcp

A TypeScript framework for building MCP servers.

☆ 3.3K ↓ 2.0M Tools & Capabilities ↗
MCP Server
Score91

mobile-mcp

mobile-next/mobile-mcp

Model Context Protocol Server for Mobile Automation and Scraping (iOS, Android, Emulators, Simulators and Real Devices)

☆ 6.8K ↓ 102.4K Tools & Capabilities ↗
MCP Server
Score88

davinci-resolve-mcp

samuelgursky/davinci-resolve-mcp

MCP server integration for DaVinci Resolve Studio

☆ 3.1K ↓ 72.0K Tools & Capabilities ↗
MCP Server
Score83

ssh-mcp

tufantunc/ssh-mcp

MCP server exposing SSH control for Linux servers via Model Context Protocol.

☆ 762 ↓ 42.0K Tools & Capabilities ↗