The security safety net for AI Coding Agents—auditing generated code before it reaches the data center.
We have entered the era of AI Coding Agents (Cursor, Devin, Copilot). Code is being generated at superhuman speeds, often faster than humans can review it. While AI is powerful, it often "hallucinates" security vulnerabilities:
- Hardcoding API keys for convenience.
- Ignoring logic-based compliance rules (e.g., GDPR data leaks).
- Importing insecure or deprecated libraries.
Humans can't review AI code fast enough. We need an automated safety layer.
ComplianceGuard is an intelligent Pre-Commit Hook and Audit Dashboard that acts as a semantic firewall for your codebase.
It sits between the AI Agent and your repository, acting as the "Senior Engineer" that reviews every line of code for security, financial risk, and compliance before it ever gets committed.
- Rust Core (The Speed Layer): Scans thousands of lines in milliseconds using high-performance Regex to catch deterministic threats (AWS Keys, Credit Cards).
- Gemini 3 Flash Preview (The Brain): When a complex issue is suspected, the context is sent to Gemini. It analyzes logic flows (e.g., "Is this unencrypted data transfer risky?") and provides reasoning that standard linters miss.
Developers speak code; Stakeholders speak risk. ComplianceGuard detects a vulnerability and instantly calculates the Financial Risk (e.g., "$20M Potential GDPR Fine"). This creates immediate urgency for fixes.
Instead of just blocking code with a generic error, ComplianceGuard explains why the code was rejected. It generates a "Micro-Lesson" with real-world examples (like the Uber hack) to teach the developer how to write secure code.
Upload a whiteboard sketch of your system architecture. Gemini Vision scans the diagram for systemic flaws—like single points of failure or exposed databases—that no code scanner can see.
Try the full experience locally:
- Rust (Cargo) installed
- Node.js (v18+)
- PowerShell (Windows)
- Gemini API Key (Set
GEMINI_API_KEYin your environment or create a.envfile in the root directory)
We have provided a one-click setup script that builds the Rust core, starts the Next.js dashboard, and initiates a test scan.
.\start_demo.ps1chmod +x start_demo.sh
./start_demo.shIf you prefer running components manually:
-
Run the Rust Scan:
cargo run -- . --json --output dashboard/public/clean-data.json -
Start the Dashboard:
cd dashboard npm install npm run devOpen http://localhost:3000.
- Core Engine: Rust (Speed & Regex)
- AI Model: Google Gemini 3 Flash Preview (Reasoning & Vision)
- Dashboard: Next.js 14, React, Tailwind CSS
- Database: SQLite