-
Notifications
You must be signed in to change notification settings - Fork 1
02 Quick Start
github-actions[bot] edited this page Jun 4, 2026
·
4 revisions
Run your first AI code review in three steps.
Download the latest binary for your platform:
# Linux (x86_64)
curl -sSfL https://github.com/nsrosenqvist/nitpik/releases/latest/download/nitpik-x86_64-unknown-linux-gnu.tar.gz | sudo tar xz -C /usr/local/binSee Installation for macOS, Docker, and other options.
Set two environment variables — a provider name and the corresponding API key:
export NITPIK_PROVIDER=anthropic
export ANTHROPIC_API_KEY=sk-ant-...nitpik supports Anthropic, OpenAI, Gemini, Cohere, DeepSeek, xAI, Groq, Perplexity, and any OpenAI-compatible endpoint. See LLM Providers for the full list.
From your repository, diff against a branch and review:
nitpik review --diff-base mainnitpik diffs your current branch against main, picks a reviewer profile, and prints findings:
nitpik · Free for personal & open-source use. Commercial use requires a license.
✔ w/handler.rs done
✖ error in handler.rs:21
Backend crashes due to unhandled file I/O and parsing errors — The
`load_users` function uses `unwrap()` for file reading and parsing,
and accesses array elements without bounds checking.
→ Implement robust error handling (e.g., using `Result` and propagating
errors) instead of `unwrap()`. Add bounds checking for array access.
⚠ warning in handler.rs:36
N+1 query in `get_users_by_ids` — Calling `get_user` in a loop for
each ID results in an N+1 query pattern, leading to significant
performance degradation for large ID lists.
→ Consider implementing a batch fetch mechanism that retrieves all
users in a single operation.
───────────────────────────────────
2 findings: 1 errors, 1 warnings, 0 infos
Each finding includes:
-
Severity —
error(confirmed bug),warning(likely problem), orinfo(suggestion) - Location — file and line number
- Title — one-line summary
- Message — detailed explanation
- Suggestion — recommended fix
-
Run multiple reviewers — add
--profile security,performanceto get specialist perspectives. See Reviewer Profiles. - Set up CI — output findings as GitHub annotations, GitLab Code Quality, or Bitbucket Code Insights. See CI/CD Integration.
-
Enable secret scanning — add
--scan-secretsto detect and redact secrets before they reach the LLM. See Secret Scanning. -
Explore agentic mode — add
--agentto let the LLM read files and search your codebase for deeper analysis. See Agentic Mode. -
Create team config — drop a
.nitpik.tomlin your repo root. See Configuration.
- Installation — all install methods
- LLM Providers — provider setup details
- Diff Inputs — all the ways to feed code to nitpik
Getting Started
Using nitpik
- Diff Inputs
- Reviewer Profiles
- Custom Profiles
- Agentic Mode
- Output Formats
- Editor & Agent Integrations
How It Works
Security & Privacy
Deployment
Reference