loopgain

v0.6.5 safe
2.7
Low Risk

An open-source cost controller for AI agent loops. Stops a loop when it has actually converged and rolls back before it degrades — replacing the max_iterations guess with a real-time loop-gain (Aβ) monitor with five named threshold bands and best-so-far rollback.

📦 Package Quality Overall: Low (4.4/10)

✦ High Test Suite 9.0

Test suite present — 11 test file(s) found

  • Test runner config found: pyproject.toml
  • 11 test file(s) detected (e.g. test_classifier_lazy_features.py)
◈ Medium Documentation 5.0

Some documentation present

  • Detailed PyPI description (30302 chars)
○ Low Contributing Guide 2.0

No contributing guide or governance files found

  • No CONTRIBUTING, CODE_OF_CONDUCT, or governance files found
◈ Medium Type Annotations 5.0

Partial type annotation coverage

  • 74 type-annotated function signatures detected in source
○ Low Multiple Contributors 1.0

Could not retrieve contributor data from GitHub

  • GitHub API error: 401

🔬 Heuristic Checks

⚠ Outbound Network Calls score 7.5

Found 5 network call pattern(s)

  • ) class _NoRedirectHandler(urllib.request.HTTPRedirectHandler): """Refuse to follow redirects (def
  • r_301 _NO_REDIRECT_OPENER = urllib.request.build_opener(_NoRedirectHandler()) def _open_request(req:
  • r()) def _open_request(req: urllib.request.Request, timeout: float) -> Any: """Single seam for the
  • encode("utf-8") req = urllib.request.Request( endpoint, data=body,
  • x class _NoRedirectHandler(urllib.request.HTTPRedirectHandler): """Refuse to follow HTTP redirects
⚠ Code Obfuscation score 2.0

Found 1 obfuscation pattern(s)

  • LES)) monkeypatch.setitem(__import__("sys").modules, "_sandbox", sandbox) spec = importlib.util.spe
⚠ Shell / Subprocess Execution score 8.0

Found 4 shell execution pattern(s)

  • timeout) result = sandbox.subprocess.run( [sandbox._docker(), "container", "inspect", name],
  • , "import subprocess; subprocess.Popen(['sleep','30']); print('done')", {}, 10,
  • == "done" check = sandbox.subprocess.run( [ sandbox._docker(), "conta
  • "" ).strip() result = subprocess.run( [sys.executable, "-c", code], capture_outpu
⚠ Credential Harvesting score 2.5

Found 1 credential access pattern(s)

  • point", [ "file:///etc/passwd", "javascript:alert(1)", "ftp://example.com
✓ Typosquatting

No typosquatting candidates detected

✓ Registered Email Domain

Email domain looks legitimate: loopgain.ai>

✓ Suspicious Page Links

All external links appear legitimate

⚠ Git Repository History score 3.0

GitHub API error: 401

  • GitHub API error: 401
⚠ Maintainer History score 4.0

2 maintainer concern(s) found

  • Author name is missing or very short
  • Author "" appears to have only 1 package on PyPI (new or inactive account)
✓ Known CVE Vulnerabilities

No known vulnerabilities found in OSV database.

💡 AI App Starter Prompt

Use this prompt to build a project with loopgain
Build a simple Python application using the loopgain package to demonstrate its core features.

💬 Discussion Feed

Leave a comment

No discussion yet. Be the first to share your thoughts!