Anthropic made a free Claude Code plugin that checks risky code as it’s being written. If you’re building with AI but can’t read code, this is your safety net. Here’s what it catches and how to turn it on.
So many people are vibe coding now, building real apps with AI without knowing how to read code. The scary part nobody mentions is that if you can’t read it, you have no idea whether what you’re shipping is safe.
Anthropic’s security-guidance plugin for Claude Code watches the code as Claude writes it, flags the dangerous patterns, and gets Claude to fix them in the same session. It’s free to install on every plan, and once it’s on, it just runs.
Run this once inside a Claude Code session in your terminal. When it asks for a scope, pick user so it loads in every project on your computer.
python3 --version in your terminal to check.You don’t need the technical names. Just know it covers the stuff that actually gets people hacked. It checks your code at three points, per Anthropic’s docs.
01
Every edit
An instant pattern check for risky code, like commands an attacker could hijack, unsafe HTML that lets someone inject scripts into your site, and dangerous Python like eval() and pickle. Each warning shows once per pattern per file in a session, so it won’t nag you.
02
End of every turn
A separate Claude reviews everything that changed for deeper problems, like someone seeing data that isn’t theirs or skipping a login check. If it finds something, Claude fixes it as a follow-up and you see both.
03
Every commit
When Claude commits or pushes code, a deeper review reads the surrounding files to confirm a finding is real before reporting it.
Anthropic says that across its internal rollout and benchmarks, PRs opened with the plugin got 30 to 40% fewer security-related review comments. (Help Net Security)
What It Costs
The per-edit check is a simple pattern match, so it’s free. The end-of-turn and commit reviews run on Opus by default and count toward your Claude usage like any other request. If you hit limits faster, that’s why.
Don’t just let it scroll by. Paste this so you learn what the risk was and ship the safer version.
The plugin only checks code Claude writes from now on. For an app you already have, paste this into Claude Code inside the project before you launch.
For a deeper scan of a whole project, Anthropic also has a separate Claude Security plugin. It needs a paid plan. Install it with /plugin install claude-security@claude-plugins-official and run /claude-security. Each scan counts toward your usage.
None of this replaces a real security review for anything handling money, passwords or sensitive customer data. For a hobby app or an MVP, it’s a big upgrade. For anything serious, it’s your first line of defense, not your only one.