Semgrep vs CodeQL for local developer review.

Compare Semgrep and CodeQL when the practical need is local feedback, agent repair context, SARIF evidence, and a fast PR security gate.

radar scan . --quick

Where Radar fits

Semgrep and CodeQL solve important AppSec problems, but many developers still need a local merge-readiness scanner before the PR exists.

  • Local CLI review
  • MCP agent handoff
  • Git hooks
  • GitHub Actions SARIF

Evidence to inspect

Use “Semgrep vs CodeQL for local developer review.” as the scope for this decision: verify the input, finding detail, workflow handoff, and product boundary before you install or buy.

CriterionEvidence to inspectBoundary
Input scopeSelected files, configuration, scan mode, and enabled rules.Only included paths and configured checks are evaluated.
Finding detailFile, line, rule ID, severity, explanation, and repair direction.Illustrative output is not a result from your repository.
Workflow handoffLocal result, report format, agent context, and optional CI signal.Enable exports or CI only when the workflow needs them.
Decision fitUse the same criteria on a real repository before choosing a plan or tool.No universal winner or guaranteed outcome is claimed.

Run Code Radar locally

Use Radar around deeper tools

Use deeper semantic analysis where it belongs, then use Radar for daily local checks, generated-code review, and concise pull-request enforcement.

radar scan . --quick
radar scan . --format sarif --fail-on high

Primary sources

Validate the workflow on your own code.

Apply this page’s evidence to one real repository. For “Semgrep vs CodeQL for local developer review.”, confirm which finding is produced, whether the proposed next step is reproducible, and where local scanning, reports, agents, or CI should stop or expand.