DEV Community

Ryan6872
Ryan6872

Posted on

Stop Guessing Code Complexity: Why Your Team Needs a Health Score"

As developers, we often rely on gut feeling to judge code quality.
"This function looks too long."
"That logic seems risky."
But gut feelings don't scale. And they certainly don't catch subtle security vulnerabilities like eval() usage or dangerous imports buried in PRs.
Today, we're releasing Prometheus Toolkit v2, a major upgrade to our text and code analysis engine.
It goes beyond simple syntax checking to provide a deep, structural MRI of your Python code.

🚀 Key Features in v2.0

1. Cyclomatic Complexity Metrics

We've implemented a full AST walker that calculates McCabe's Cyclomatic Complexity.

  • Score < 5: Good. Maintainable.
  • Score > 10: Warning. Refactor needed.
  • Score > 20: Danger. Testing nightmare. ### 2. Automated Security Scanner 🛡️ Stop shipping vulnerabilities. The new core analyzer automatically flags:
  • Code Injection Risks: Usage of eval(), exec().
  • Dangerous Imports: Unsanitized usage of os, sys, subprocess.
  • Hardcoded Secrets: (Coming soon) ### 3. Maintainability Index We combine complexity, lines of code, and Halstead volume into a single 0-100 Health Score.
  • 90+: Excellent
  • Under 50: Technical Debt Alert ## 💻 Try it Live (No Install Required) You can test the new scanner directly in your browser without installing anything: 👉 Live Demo: Prometheus Toolkit Scanner ## 🤖 For AI Agents (MCP Support) If you use Claude or other AI agents, Prometheus v2 is fully MCP-compatible. Install it locally to give your AI the ability to "audit" your code before you commit.
# Clone and run locally
git clone https://github.com/Ryan6872/AISELF
cd AISELF/mcp-server
uv run server.py
Enter fullscreen mode Exit fullscreen mode

🔗 API Access

Build your own tools using our high-performance API hosted on Vercel Edge Network.

Get your Free API Key on RapidAPI.

Built with ❤️ by the AISELF Team.

Top comments (0)