Developer workflow
What is Local CLI / Pre-Commit?
Running the same analysis locally from the command line or a git hook, without waiting for CI.
A CLI closes the feedback loop from minutes to seconds and makes the tool scriptable, useful for pre-commit hooks, custom pipelines and debugging why CI disagrees with your machine.
It also matters for confidentiality: a CLI that analyses fully locally never sends source code anywhere, which is sometimes the only way a tool passes review in a regulated environment.
Top 20 Local CLI / Pre-Commit tools
Every tool in the directory documented as supporting Local CLI / Pre-Commit, 16 fully, 4 partially, with what its own documentation says.
Support is not the same as parity, since some implementations are narrower in scope, gated to a higher plan tier, or maintained only for existing customers. The note under each tool is what its own documentation describes.
- 1CodacyQuality Platform
Codacy Analysis CLI runs static analysis fully locally, no API round-trip; pre-commit hook not confirmed.
- 2
codex-security install-hook adds a pre-commit scan blocking high-severity findings.
- 3Checkmarx OneCode Security Platform
Checkmarx One CLI ('cx') plus VS Code extension pre-commit scans; SCA Resolver runs resolution on-prem.
- 4Claude CodeAgent Coding Tool
/code-review and /security-review run in the terminal; /claude-security local scan needs a paid plan.
- 5CodeAnt AIPR Review
CLI for local and CI review, with git hooks support for pre-commit scanning
- 6CodeRabbitPR Review
cr CLI reviews committed, staged, unstaged and untracked local changes; 3 reviews/hour on Free
- 7
CLI runs local analysis, goal supervision and batch analysis with script-friendly output
- 8CorgeaCode Security Platform
corgea setup-hooks; offline deps commands need no network
- 9
/review-bugbot reviews branch or uncommitted changes pre-push; patch-ID dedup skips the later PR review.
- 10GitHub Advanced SecurityCode Security PlatformFree on public repos; add-on: Code Security for private/internal
CodeQL CLI creates and analyses databases locally or in any CI; push protection blocks at push time
- 11GreptilePR Review
greptile review runs full-fidelity local branch review in ~60s; exit codes usable in hooks
- 12
Open-source CLI runs qlty check and qlty fmt locally, wired as pre-commit and pre-push git hooks
- 13SemgrepCode Security Platform
`semgrep scan`/`semgrep ci` CLI plus a pre-commit framework hook; org-wide hook settings need Platform.
- 14SnykCode Security Platform
Snyk CLI runs local pre-commit and CI/CD scans across code, deps, container, IaC, secrets.
- 15SonarQubeQuality Platform
SonarQube CLI analyses local changes and staged files and runs 'sonar analyze secrets'.
- 16
Veracode CLI and Pipeline Scan JAR/Docker run locally; --allow-dirty re-verifies uncommitted changes
- 17
Offline local SAST scanning possible; no CLI or pre-commit hook documented
- 18
CLI queries results and uploads coverage; analysis runs on DeepSource infrastructure, no local pre-commit scan documented.
- 19
Gemini CLI runs agentic tasks in the terminal; no pre-commit hook or local review command documented.
- 20
Pre-PR review of uncommitted changes runs in the IDE plugin; no standalone CLI documented
What to look for
- Whether analysis is genuinely local or a thin client for a cloud API
- Parity between CLI results and server results
- Pre-commit framework integration
- Whether the CLI is available on the free tier
Related terms
FAQ
What is Local CLI / Pre-Commit?
Running the same analysis locally from the command line or a git hook, without waiting for CI.
How many tools support Local CLI / Pre-Commit?
20 of the 20 tools tracked in this directory support Local CLI / Pre-Commit, 16 fully and 4 partially, including Codacy, ChatGPT / Codex, Checkmarx One, Claude Code, CodeAnt AI. Support is not the same as parity, since some implementations are narrower in scope, gated to a higher plan tier, or maintained only for existing customers. The note under each tool is what its own documentation describes.
What should you look for in Local CLI / Pre-Commit?
Whether analysis is genuinely local or a thin client for a cloud API. Parity between CLI results and server results. Pre-commit framework integration. Whether the CLI is available on the free tier.