Tag
A developer describes a common bug in PreToolUse guardrails for coding agents: the guardrail flattens all tool arguments into a single string and classifies them uniformly, causing false positives when an agent merely mentions a forbidden topic. The fix is to consider both the string and the tool's actual effect.