feat: Add `sentry review` command for AI-powered code review
@MathurAditya724 ci sta già lavorando.
Dal 3/2/2026.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
Summary
Add a sentry review command that uses Sentry's Seer AI to review code for bugs, logic errors, and issues that could cause production failures.
Why Before the PR?
The key insight: catch problems before you push, not after.
When you create a PR:
- CI pipelines spin up (costs time and resources)
- Teammates get notified
- Failed checks create noise and delay
With sentry review, you can run a quick AI-powered check locally and fix issues before creating the PR. Ship cleaner code on the first push.
Command Design
# Review current branch changes (vs main)
sentry review
# Review specific PR
sentry review --pr 123
# Review a file or directory
sentry review src/handlers/
# Review staged changes only
sentry review --staged
What It Catches
- Logic errors - Bugs and flawed control flow
- Error-prone patterns - Code likely to cause production failures
- Performance issues - Regressions or inefficient code
- Security concerns - Potential vulnerabilities
Key Differentiator
Unlike generic linters, Seer combines:
- Error context - Historical production errors from Sentry
- Performance data - Real issues your app has experienced
- Code analysis - Static examination of changes
This surfaces issues that will actually cause production problems, not pedantic style nits.
Technical Details
- Use Seer API endpoint for code review
- Integrate with GitHub PR context when available
- Output actionable suggestions with file:line references
- Support both interactive and CI modes
References
- Product page: https://sentry.io/product/seer/ai-code-review/
- Similar to existing Seer commands (
sentry issue explain,sentry issue plan)
- Lingua principale
- TypeScript
- Stelle
- 121
- Fork
- 14
- Merge medio
- 23h 54m
- PR unite (30g)
- 103
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di getsentry/cli
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 65/100
-
bug jared
-
jared
Difficoltà 4/5 3-5 giorni Idoneità per principianti 52/100
Tutte le issue di getsentry/cli
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
bug v2
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
modelcontextprotocol/inspector#2458 · 1 commento ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 75/100
railmapgen/rmp-gallery#4068 ·
-
Mend: dependency security vulnerability status: needs triage 🕵️♀️
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
carbon-design-system/ibm-products#9907 ·