Skip to main content
subagent official · Anthropic

claude-security — Claude Code subagent: what it does, install

Scans a repository or its changes, then can turn verified findings into targeted patch files. It runs only as the main agent of a session.

Install into Claude Code · Plugin marketplace All methods and platforms ↓
/plugin install claude-security@claude-plugins-official
Open on GitHub

What claude-security does

claude-security scans an entire repository, a scoped part of it, a branch or pull request diff, or a single commit. It can then create targeted patch files for findings that pass verification. The changes are not committed, pushed, or opened as a pull request.

The orchestrator runs the claude-security:scan workflow with research and verification agents. For remediation, it uses a patch generator, a verifier, and a fresh researcher for each finding. A scan asks for confirmation of its time or token cost unless the user has already accepted that cost. If Workflow is unavailable, the scan stops. Run it as the main session agent with claude --agent claude-security:claude-security; do not dispatch it as a subagent.

What it helps with

  • scan a repository for security findings
  • review changes in a branch or pull request
  • inspect a single commit for vulnerabilities
  • generate patches for verified findings
  • validate proposed fixes with separate agents

Example prompts for the agent

  • Run claude-security as the main agent with claude --agent claude-security:claude-security and scan the whole repository.
  • Start claude-security with claude --agent claude-security:claude-security, review this branch’s changes, and prepare patches for findings that pass verification.

How to install claude-security

1Plugin marketplace

/plugin install claude-security@claude-plugins-official

2Manually: put the files in place

.claude/agents/claude-security.md

For all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention

Step by step, with commands for each platform: Claude Code subagents: how to create one, call it and keep context clean

Questions about claude-security

How do I install claude-security in Claude Code?

Run /plugin install claude-security@claude-plugins-official, then use .claude/agents/claude-security.md.

What does claude-security do?

It scans repositories, changes, or commits and can create targeted patch files from its findings. Each patch is checked by separate agents.

Can I dispatch claude-security as a subagent?

No. It is designed to run as the main agent of a session through claude --agent claude-security:claude-security; it cannot scan when dispatched as a subagent.

Similar subagents

All subagents for Security →

From the same set123

The whole set →
scan-researcher A read-only security auditing subagent for Claude Code. Traces vulnerabilities from untrusted inputs to risky sinks across repository files without executing project code. ★ 44,635repo stars scan-redactor This Claude Security subagent replaces secret values in completed scan reports with [REDACTED]. Scan jobs dispatch it automatically; it is not for direct invocation. ★ 44,635repo stars scan-inventory Internal cartographer subagent for the Claude Security scan workflow. It partitions repository directories into discrete review targets and tracks intentionally skipped paths. ★ 44,635repo stars explore Read-only codebase explorer for Claude Code. Locates files, traces execution flows, and finds symbol callers without modifying code. ★ 44,635repo stars revise-claude-md Reviews your active session to extract practical codebase learnings and updates CLAUDE.md or .claude.local.md. Helpful after discovering new CLI flags or test quirks. ★ 44,635repo stars agent-sdk-verifier-ts Verifies @anthropic-ai/claude-agent-sdk applications before release. It detects type errors, misconfigured TypeScript settings, and exposed credentials. ★ 44,635repo stars agent-sdk-verifier-py Checks a Python Agent SDK application for configuration issues, SDK usage, security gaps, and readiness for testing or deployment. ★ 44,635repo stars typescript-lsp Adds TypeScript and JavaScript language server support to Claude Code. It provides definition lookups, reference finding, and error diagnostics across project files. ★ 44,635repo stars

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor