@abhinav26104/agent-guard-cli
v0.1.1
Published
A deterministic safety gate for AI-generated code changes
Downloads
74
Maintainers
Readme
@abhinav26104/agent-guard-cli
Deterministic safety and quality checks for AI-generated code changes.
npx @abhinav26104/agent-guard-cli --help
npx @abhinav26104/agent-guard-cli --staged
npx @abhinav26104/agent-guard-cli --json --no-runThe npm package is @abhinav26104/agent-guard-cli; its installed command is agent-guard.
agent-guard
agent-guard --staged
agent-guard --json --no-runThe tool reviews the Git diff for possible secrets, protected files, dependency changes, missing test changes, debug markers, and failed project commands. It never modifies files and redacts detected secret values.
Optional agent-guard.json:
{
"protectedFiles": [".github/workflows/**", "infra/**"],
"requiredCommands": ["npm run typecheck", "npm test"],
"blockOn": ["secret", "validation"]
}Exit codes are 0 for pass/warnings, 1 for blocking findings, and 2 for configuration or execution errors.
Licensed under the MIT License.
