Catalog PyPI
PACKAGE EXPLORERView in registry

agentguardp

PyPI

AgentGuard — AI Code Security Scanner + Auto-Fixer

ai-agentauto-fixcode-reviewllmsastsecurity
Versions collected1
Direct dependencies4From release 0.8.1
Last observed20 Oct, 22:06 UTC

README

Version 0.8.1 documentation

AgentGuard

The first productized security tool powered by GLM-5.2.

Scan → GLM-5.2 verifies → GLM-5.2 fixes → self-validates. One command.

PyPI License: MIT Python 3.10+ Powered by GLM-5.2


Why AgentGuard

SAST tools flood you with false positives and leave you to fix everything by hand. AgentGuard is different:

Rules find suspects. GLM-5.2 confirms, fixes, and verifies.

BanditSemgrepAgentGuard
Python rules100+Multi-lang36 + Bandit 100+
JavaScript/TS-Multi-lang14 rules
FP filtering--GLM-5.2 review
Auto-fix--GLM-5.2 AI fix (bring your own API key)
Self-validation--Re-scan after fix
PricingFreeFree/$40Free + Pro $29/mo

GLM-5.2 Security Benchmark

ModelF1 ScoreCost per finding
Claude Code32-37%~$1.02
GLM-5.239%$0.17

GLM-5.2 outperforms Claude Code in security vulnerability detection at 1/6 the cost. AgentGuard is the first tool to productize this capability.


Quick Start

# Install
pip install agentguardp

# Scan a project (Python + JavaScript)
agentguard scan ./my-project

# Full pipeline: scan → GLM-5.2 verify → fix → validate
agentguard pipeline ./src --mode dry-run

# JSON output for CI/CD
agentguard scan ./src --format json -o report.json

# SARIF for GitHub Code Scanning
agentguard scan ./src --format sarif -o report.sarif

14-day Pro trial included. Full GLM-5.2 AI fix (bring your own API key) activates automatically.


Live Demo

$ agentguard pipeline ./vulnerable.py --mode dry-run

[1/4] Scanning...
      Engine: AgentGuard 36 rules + GLM-5.2
      6 findings (4 critical, 1 high, 1 medium)

[2/4] GLM-5.2 reviewing 6 findings...
      CONFIRMED: 6  REJECTED: 0  ERR: 0

[3/4] Fixing 6 findings (mode=dry-run)...
      Fixed: 4  Manual: 2  Files: 1

--- a/vulnerable.py
+++ b/vulnerable.py
@@ -9,7 +9,7 @@
 def run_user_command(user_input):
-    os.system(user_input)
+    subprocess.run(["echo", user_input], check=True)

@@ -15,7 +15,7 @@
 def get_user(username):
-    query = "SELECT * FROM users WHERE name = '" + username + "'"
+    query = "SELECT * FROM users WHERE name = ?"
  cursor.execute(query, (username,))

@@ -21,7 +21,7 @@
 def load_data(data):
-    return pickle.loads(data)
+    return json.loads(data)

@@ -29,7 +29,7 @@
 def calculate(expression):
-    return eval(expression)
+    return ast.literal_eval(expression)

[4/4] Self-validating 1 fixed files...
      OK: vulnerable.py - no new issues introduced

Fixed: 4  |  Manual: 2  |  Files: 1  |  Mode: dry-run

GLM-5.2 didn't just find the SQL injection — it rewrote the query to parameterized form. Bandit can't do this. Semgrep can't do this.


How It Works

agentguard pipeline ./src
    │
    ├── 1. SCAN — 36 Python rules + 14 JS rules + Bandit 100+ (local, instant)
    │
    ├── 2. VERIFY — GLM-5.2 reviews each finding (cloud, ~2s/finding)
    │              Filters false positives, confirms real threats
    │
    ├── 3. FIX — Regex fixes (instant) + GLM-5.2 AI fix (bring your own API key)es (context-aware)
    │            SQL injection → parameterized queries
    │            Hardcoded passwords → environment variables
    │            eval() → ast.literal_eval()
    │
    └── 4. VALIDATE — Re-scan fixed code, confirm no new issues

Rules find suspects. GLM-5.2 confirms, fixes, and verifies.


Languages

LanguageRulesAuto-fix
Python36 built-in + Bandit 100+Regex + GLM-5.2 cloud
JavaScript/TypeScript14 built-inRegex + GLM-5.2 cloud

Supported vulnerabilities: eval/exec, command injection, SQL injection, XSS, path traversal, hardcoded secrets, weak crypto (MD5/SHA1), SSRF, SSL bypass, prototype pollution, pickle deserialization, prompt injection, and more.


Pricing

PlanPriceFeatures
Free$020 rules + regex fix (offline)
Pro Trial$0 (14 days)Full Pro, auto-activated on install
Pro$29/mo or $149/yrAll rules + Bandit + GLM-5.2 AI fix (bring your own API key)

Upgrade at agentguard.com


GitHub Actions

Add AgentGuard to your CI/CD in 5 lines:

- uses: difcn2026/agentguard@main
  with:
    path: .
    format: sarif

SARIF output integrates directly with GitHub Code Scanning.


Install

pip install agentguardp

Windows Desktop App: Download from GitHub Releases

SmartScreen warning? Click More info → Run anyway. Normal for unsigned apps.



License

MIT — Copyright (c) 2026 XHLS Team


Rules find suspects. GLM-5.2 confirms, fixes, and verifies.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.8.17 Jul 20264

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
difcn2026/agentguardp

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 22:06 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:0429d66e4fde80c9d21af37b1e08d29ade375bd808b0f9daf0a92507c72d3ba0