Promise.inc
Open Source

AI Guard

v0.2.0

AST-based analyzer that detects AI-generated code patterns like excessive comments, generic variable names, and AI-typical phrases. Works as CLI or programmatic API.

Install

npm install @promise-inc/ai-guard

Features

AST-based analysis with ts-morph
5 built-in detection rules
CLI and programmatic API
Git staged files support
Configurable thresholds
TypeScript & JavaScript support