╔═╗ ╦ ╦ ╔═╗ ╦═╗ ╔╦╗ ╦ ╔═╗ ╔╗╔ ║ ╦ ║ ║ ╠═╣ ╠╦╝ ║║ ║ ╠═╣ ║║║ ╚═╝ ╚═╝ ╩ ╩ ╩╚═ ═╩╝ ╩ ╩ ╩ ╝╚╝
Stop AI slop before
it hits your codebase.
Deterministic checks that catch disasters. No AI required to run.
Works with Claude, GPT, Copilot, Cursor — any AI coding tool.
Also available via curl -fsSL https://raw.githubusercontent.com/forrest-aleq/guardian/main/install.sh | sh
Built for creators, not just coders
AI brought you back to building. Guardian keeps you shipping.
I used to code
You coded in the 80s or 90s. Now you're building again with Claude. Guardian catches what you might miss.
I don't know code
You're a founder or creator shipping with AI. When something breaks, Guardian tells you what to paste into Claude to fix it.
I move too fast
You're shipping features daily. Guardian is your safety net—42ms to catch what code review would miss.
of AI coding failures are preventable
with traditional, deterministic checks
Real stories. Real prevention.
“Claude deleted my entire home directory”
Prevented by: dangerous-cmds
“$3,600 bill from a stuck API loop”
Prevented by: runaway detection
“Shipped test@example.com to 10,000 users”
Prevented by: mock-data
SQL injection
f-strings in database queries
cursor.execute(f"SELECT * FROM users WHERE id = {id}")Destructive commands
rm -rf, DROP TABLE without safeguards
os.system(f"rm -rf {path}")Hardcoded secrets
API keys and passwords in source
api_key = "sk-live-abc123def456"Don't know how to fix it?
Guardian writes the prompt for you. Copy. Paste. Fixed.
Step 1: Run guardian prompt
Step 2: Paste into Claude
No more guessing. No more “how do I ask Claude to fix this?”
Guardian explains the problem and tells the AI exactly how to fix it.
Works with your stack
Single binary. Zero dependencies.
Written in Go. Downloads in seconds, runs instantly. Pre-commit hooks catch issues before they land.
What Guardian catches
Fast, deterministic checks. No AI, no cloud.
Security
sql-injectionf-strings in SQL queriessecret-patternsHardcoded API keys, passwordsban-evaleval(), exec() usagedangerous-cmdsrm -rf, DROP TABLE, DELETE FROMsubprocess-shellshell=True in subprocessmutable-defaultdef foo(items=[])Code Quality
file-sizeFiles over 500 linesfunc-sizeFunctions over 50 linesmock-datatest@example.com, placeholder valuesban-exceptBare except: blocksban-printprint() / console.log() statementstodo-markersTODO, FIXME, HACK commentsBring your own AI key
Core checks run locally with zero dependencies. Optional AI features use your Gemini API key for smart config generation.
Your key, your control
Gemini API. ~$0.001 per use.
Smart config generation
Analyzes your codebase, suggests rules.
No account required for core features. AI is opt-in.
Ship with confidence
Never ask “did Claude break something?” again.
Also available via curl -fsSL https://raw.githubusercontent.com/forrest-aleq/guardian/main/install.sh | sh
Pre-commit integration
Guardian creates a .pre-commit-config.yaml that runs checks on every commit. Issues are caught before they reach your repository.
You own the checks
Guardian copies check scripts to your project. They're just Python files in .guardian/. Read them. Edit them. Add your own patterns.
No magic. No vendor lock-in. Open source.