According to Perceive Beating monitoring, Anthropic has launched the Claude Code terminal programming intelligent agent's exclusive security plug-in security-guidance, which supports real-time interception and automatic remediation of security vulnerabilities during code writing sessions. Internal benchmark tests and grayscale data from Anthropic show that, after enabling security review, the security fix suggestions for pull requests (PRs) have reduced by 30% to 40%, establishing the first line of resilience before manual code delivery review.
The security checks are triggered in three stages: file editing, session completion, and code submission. While editing files, local rules will dynamically match patterns of high-risk known vulnerabilities such as dynamic code execution (e.g., eval or child_process.exec), insecure deserialization (e.g., pickle), and DOM injection, without calling large models or incurring additional API costs. At session completion, a background model asynchronously compares the Git differences (Git Diff) in the workspace, intercepting logic vulnerabilities like authorization bypass, insecure direct object references, and weak encryption. When developers use command-line tools to execute git commit or git push for pushing commits, it triggers a deep intelligent agent review, automatically reading peripheral code context such as call chains and sanitizers to eliminate false positives.
Enterprises can write plain text security rules to .claude/claude-security-guidance.md or customize regex matches using .claude/security-patterns.yaml. These rules will be loaded together as additional context with the built-in whitelist. Running the plugin requires ensuring that the Claude Code CLI is version 2.1.144 or higher and that the local PATH includes Python 3.8 or higher. Upon initial activation, the system will automatically deploy a virtual environment and install the Agent SDK at the local ~/.claude/security/ path.
