ReDetox

XlogicX/ReDetox
★ 0 stars Python AI/LLM Updated today
An MCP server that helps a calling LLM produce regexes that are concise, **correct**, and **performant**. It supplies the formal ground truth the model lacks: it generates adversarial input, measures time-blowup (NFA backtracking) and memory-blowup (RE2 DFA), checks correctness, and returns a structured verdict the model iterates against.
View on GitHub → Try with Claude — $10 free →

Quick Install

Copy the config for your editor. Some servers may need additional setup — check the README.

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "redetox": {
      "command": "uvx",
      "args": [
        "redetox"
      ]
    }
  }
}

Or install with pip: pip install redetox

README Excerpt

An MCP server that helps a calling LLM produce regexes that are concise, **correct**, and **performant**. It supplies the formal ground truth the model lacks: it generates adversarial input, measures time-blowup (NFA backtracking) and memory-blowup (RE2 DFA), checks correctness, and returns a structured verdict

Tools (3)

equivalence_modejavapcre2