Back to browse
GitHub Repository

Pre-Execution Gate for AI-Generated Code. Deterministic static analysis layer between LLM code generation and execution.

0 starsPython

AST-guard – Fast, zero-cost structural checks for LLM code execution

by thinking-nick·Jun 8, 2026·1 point·0 comments

AI Analysis

●●●BangerBig BrainWizardry

Deterministic AST analysis catches AI code bypasses that LLM reviewers miss, verified on 77k+ samples.

Strengths
  • AST-based deterministic checks can't be talked into compliance like LLM reviewers
  • External dataset validation (MALT, School of Reward Hacks) shows real rigor
  • Sub-10ms zero-cost gating enables production deployment without latency tax
Weaknesses
  • Detection rates vary widely (34.5-95%) depending on attack category
  • Python 3.11+ requirement limits deployment in legacy environments
Category
Target Audience

AI safety engineers, teams running LLM-generated code in production

Similar To

TRACE · EvilGenie · RewardHackWatch

Similar Projects