Show HN: AST-guard – Fast, zero-cost structural checks for LLM code execution
Category: security
Tags: ast, llm-safety, code-execution
Score: 6.5/10 (Innovation: 7, Technical: 7, Documentation: 6, Utility: 6)
AST-guard is a deterministic, zero-cost structural analysis tool that sits between LLM code generation and execution, detecting structural hacks like hardcoding, forbidden calls, and complexity collapse via AST parsing. Its innovative combination of rule-based heuristics with pair/standalone modes fills a unique gap in AI safety tooling, and its multi-language support and CI integration make it practical for production pipelines.
Target audience: backend devs, devops, AI engineers
Repository: https://github.com/Nick-is-building/ast-guard · Python · MIT
View on Hacker News