deepsec Scanner
Runs the deepsec AI scanner on a repo, branch or uncommitted changes.
Install
npx skills add vercel-labs/deepsec --skill deepsec -g -a claude-code -y- Repository
- vercel-labs/deepsec8.3k
- Category
- Security
- Updated
- 1mo ago
- License
- Apache-2.0
- Context cost
- Lightabout 1,177 tokens
- Runs scripts
- No, instructions only
What it does
Run deepsec, an AI-powered cyber-security vulnerability scanner. Activates when the user invokes /deepsec, asks to run deepsec, or wants to scan their repo, branch, or uncommitted changes for vulnerabilities.
/deepsec, scan this repository with deepsec
deepsec is an AI-powered vulnerability scanner.
- Modern AI models are great at security code review.
- Most review solutions only run on pull requests.
- That means most legacy code was never reviewed, and your code from 6 months ago was reviewed by older models.
- Instead deepsec does security review on ALL of your existing code using scaled VM fanout.
- Vercel's deepsec is open source, runs in your own infrastructure, and supports strong agent sandboxing.
A fast regex scan flags candidate files, then AI agents investigate each
candidate in depth and record findings with severity ratings; findings can
later be revalidated, triaged, and exported. Everything it adds to a repository
lives in a single .deepsec/ workspace (config, installed package, per-project
data). Because processing runs real AI agents, it costs money in proportion
to how much code it investigates.
Follow this runbook when the user invokes /deepsec or asks for a scan.
1. Ask for scope first
Ask the user which scope to process, using a structured question tool if you have one (AskUserQuestion in Claude Code), otherwise plain text:
- Uncommitted changes, working tree + untracked files
- Diff to main, changes vs
origin/main(usemainif there is nooriginremote) - Entire codebase, warn that this is the expensive option: AI processing investigates every candidate file and can cost real money on a large repository
Ask before doing anything else so the rest of the flow can run unattended.
2. Detect onboarding state
From the repository root:
- No
.deepsec/deepsec.config.ts→ not onboarded. Do step 3 in full. .deepsec/exists but.deepsec/node_modules/deepsecis missing, or a previous setup was interrupted → re-run the init command from step 3; it resumes from checkpoints and repairs the install rather than starting over.- Otherwise → onboarded; skip to step 4.

