promptfix

v1.2.0 safe
3.8
Low Risk

Coding-agent prompt rewriter — right-click to optimize

📦 Package Quality Overall: Low (4.8/10)

✦ High Test Suite 9.0

Test suite present — 18 test file(s) found

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

Some documentation present

  • Detailed PyPI description (18063 chars)
○ Low Contributing Guide 4.0

No contributing guide or governance files found

  • Development Status classifier >= Beta
◈ Medium Type Annotations 5.0

Partial type annotation coverage

  • 136 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)

  • health" try: with urllib.request.urlopen(url, timeout=2) as resp: # noqa: S310 i
  • ue=False) with patch("urllib.request.urlopen", return_value=mock_resp): result = _che
  • : 52849}} with patch("urllib.request.urlopen", side_effect=OSError("connection refused")):
  • mock_prov, patch("urllib.request.urlopen", side_effect=OSError()), patch.dict(os.
  • as mprov, patch("urllib.request.urlopen", side_effect=OSError()), ): mp.
⚠ Code Obfuscation score 6.0

Found 3 obfuscation pattern(s)

  • return_value=__import__("pathlib").Path(tmpdir) / "h.jsonl"): # Must not raise
  • with ( __import__("unittest.mock", fromlist=["patch"]).patch( "promptfix.history._history_
  • latform == "win32" or __import__("importlib.util", fromlist=["find_spec"]).find_spec("pynput") is None, reason="pynput not ins
⚠ Shell / Subprocess Execution score 8.0

Found 4 shell execution pattern(s)

  • try: return subprocess.check_output(["pbpaste"], timeout=3).decode("utf-8", errors="replace")
  • def] try: subprocess.run(["pbcopy"], input=text.encode("utf-8"), timeout=3, check=Tru
  • try: return subprocess.check_output(cmd, timeout=3).decode("utf-8", errors="replace")
  • try: subprocess.run(cmd, input=text.encode("utf-8"), timeout=3, check=True)
⚠ Credential Harvesting score 5.0

Found 2 credential access pattern(s)

  • sert not add_snippet("../../../etc/passwd", "bad") assert not add_snippet("name with spaces",
  • p = client.get("/threads/../../etc/passwd") assert resp.status_code in (400, 404) @patch
✓ Typosquatting

No typosquatting candidates detected

✓ Registered Email Domain

No author email provided

⚠ Suspicious Page Links score 2.0

Found 1 suspicious link(s) on the package page

  • Non-HTTPS external link: http://127.0.0.1:52849/config/reload
⚠ Git Repository History score 3.0

GitHub API error: 401

  • GitHub API error: 401
⚠ Maintainer History score 6.0

3 maintainer concern(s) found

  • Only one version has ever been released — brand new package
  • 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 promptfix
Build a simple Python application using the promptfix package to demonstrate its core features.

💬 Discussion Feed

Leave a comment

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