AgenticCLI
▮ shipguardis the security scanner your coding agent runs before every commit.$ npm i -g @agenticcli/shipguard

──[ ▮ comparison ]──

Semgrep and ShipGuard for Next.js founders

Semgrep is a broad code scanner for security teams. ShipGuard is a narrow check your coding agent runs on every change.

Short answer: Pick Semgrep when you need breadth: 30+ languages, your own rules, dependency scanning and a platform for a security team. Pick ShipGuard when you are a small team shipping a Next.js app with a coding agent and want one local yes-or-no on secrets, auth, payments, migrations and deploy settings. Many teams run both. What ShipGuard is.

What Semgrep does well

Read from its own docs on 24 Nov 2026.

  • It is a static analysis tool that searches code for bugs and enforces secure guardrails, and supports 30+ languages. [1]
  • Rules look like the code you already write, so you can write your own. [1]
  • It runs in an IDE, as a pre-commit check and in CI. By default it analyzes code on your machine or build environment and does not upload it. [1]
  • Its README says the Community Edition analyzes within a single function or file, and recommends the Semgrep AppSec Platform for security work (SAST, dependency scanning, secrets). [1]
  • The platform adds cross-file and cross-function analysis, a dependency scanner, secrets scanning and an AI assistant for triage. Its README says it includes free and paid tiers. [1]
  • The engine is licensed LGPL-2.1. [1]

Semgrep and ShipGuard, side by side

ShipGuardSemgrep
Best for[3][1]Founders shipping with a coding agentDevelopers and security teams
CLI and agent fit[3][1]✓ No dashboard to open. One command returns a JSON verdict, and with --strict a failing exit code. Works with Claude Code, Codex and Cursor✓ A command-line tool, plus an MCP server and a Claude Code plugin so a coding agent can run it
Where it runs[3][1]✓ Your machine. Your code never leaves it✓ Your machine or CI. Code stays there by default
Licence and install[3][1]Open source CLI (Apache-2.0). One line to run, no account for the general rulesLGPL-2.1 (engine). Installs with pipx, uv, Homebrew or Docker. Login is optional
How you buy[4][2]✓ Self-serve, no sales call. One account covers any number of your machines and agents~ The free edition is a sign-up. Teams and enterprise plans go through Semgrep (contact us)
Pricing model and metering[4][2]✓ One flat price, no seats. Only rulebook scans are counted: 1,000 a month on Pro. General-rule scans are free and never counted~ Priced per contributor, with AI credits per developer each month
Languages[1][3]~ Tuned for Next.js and Supabase apps✓ 30+ languages
What it checks[1][3]Five areas: secrets, auth, database, payments, deployment✓ Broad code patterns, plus dependency and secrets scanning on the platform
Your own rules[1]~ A policy file picks what blocks✓ Write rules that look like code
Dependency scanning[1][3]✗ Not part of ShipGuard✓ Semgrep Supply Chain
Verdict for an agent[3]✓ JSON recommendation plus exit code~ Findings list; you set the policy

When Semgrep is the better pick

  • You work in more than one language, or you need broad injection and data-flow checks. Both ShipGuard plans include injection rules. In our benchmark, only the full rulebook (Pro) flagged the SQL query built from strings (case C3). [1]
  • You want to write and share your own rules. [1]
  • You need dependency scanning, cross-file analysis or a dashboard to triage findings across a team. [1]

When ShipGuard is the better pick

  • You ship a Next.js app with Claude Code, Codex or Cursor and want one command: npx @agenticcli/shipguard scan --changed --strict --json. [3]
  • You want the checks AI-written apps tend to miss, by name: routes without login, unsigned payment webhooks, destructive migrations, open CORS, secrets in NEXT_PUBLIC_ variables. [3]
  • You want no account, no dashboard and no per-seat price: the general rules are free and the full rulebook is one flat price. [3]
  • You want the same answer for the same code: ShipGuard's checks are pattern rules with no AI model in the loop. [3]

Where ShipGuard stops

  • ShipGuard is not a general code scanner. It has five check areas and no rule language of your own beyond the policy file.
  • It has no dependency scanner. Use Semgrep Supply Chain, npm audit or a similar tool for that.
  • It reads the files on disk, not past commits.
  • It blocks only with --strict. Without that flag it reports and exits 0.

Run Semgrep and ShipGuard together

Semgrep for breadth on the pull request, ShipGuard as the gate on every change your agent makes.

Semgrep's README documents semgrep ci for a project; semgrep login is optional. ShipGuard runs the same way locally and in CI. [1][3]

Commands to run
semgrep ci
npx @agenticcli/shipguard scan --changed --strict --json # local runs, hooks, agent loops
npx --yes @agenticcli/shipguard scan --json --strict # CI: full scan of the checkout

ShipGuard's hook, from its own repo. Add the Semgrep hook from the Semgrep docs if you want it before the commit too. [3][5]

.pre-commit-config.yaml (ShipGuard)
repos:
- repo: https://github.com/agenticcli/shipguard
rev: main # pin to a commit or tag you trust
hooks:
- id: shipguard
  1. Keep Semgrep as it is. Nothing to remove.
  2. Add ShipGuard as the per-commit check your agent runs, and as a CI step with --strict.
  3. Read the ShipGuard recommendation field for the verdict, and keep Semgrep's findings for your own triage.
Snippets are copied from each tool's own docs. Check the version you pin against that tool's release page before you rely on it.
We ran it. In our test on 25 November 2026, Semgrep CE 1.187.0 flagged 7 of the 18 planted defects in the jobs it covers and raised 0 false alarms on a clean repo. See the full answer key, the false alarms and the commands →

Semgrep and ShipGuard: common questions

  1. Is ShipGuard a Semgrep alternative?

    Not a full one. Semgrep covers 30+ languages, custom rules and dependency scanning. ShipGuard covers five check areas for web apps and gives your agent a yes-or-no. If those five areas are your main risk, ShipGuard may be all you need; otherwise run both.

  2. Does ShipGuard have a rule language like Semgrep?

    No. ShipGuard has a policy file that decides which findings block, warn or are ignored. Writing your own detection rules is Semgrep's strength.

  3. Do both tools keep my code on my machine?

    Yes by default. Semgrep's README says code is not uploaded by default, and ShipGuard analyzes your files locally. Rules come down; code never goes up.

  4. Which one fits a one-person SaaS with a coding agent?

    Start with ShipGuard for the per-commit check: no account for the general rules and a JSON verdict your agent can read. Add Semgrep when you want broader code patterns, more languages or dependency scanning.

More comparisons and real scan output

Sources

Facts about other tools were read on 24 Nov 2026. Facts about ShipGuard come from our own README and docs.

  1. Semgrep README
  2. Semgrep pricing page
  3. ShipGuard README (our own)
  4. ShipGuard pricing page (our own)
  5. pre-commit framework

────────[ ▮ ShipGuard ]────────

Try the check on your own project

One command, no account for the general rules. Your code stays on your machine.

$npx @agenticcli/shipguard scan