feat: Add `sentry review` command for AI-powered code review
@MathurAditya724 đang làm issue này rồi.
Từ ngày 3/2/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
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)
- Ngôn ngữ chính
- TypeScript
- Star
- 121
- Fork
- 14
- Merge trung bình
- 23 giờ 54 phút
- Pull request đã merge (30 ngày)
- 103
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của getsentry/cli
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 65/100
-
bug jared
-
jared
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 52/100
Tất cả issue của getsentry/cli
Issue tương tự
-
bug(cli): hapi doctor inline-media prints a fabricated B:\ helper-script path in packaged installs Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
Crush Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
catppuccin/catppuccin#3125 ·
-
Add a SECURITY.md Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
ElementsProject/cln-application#167 · 1 bình luận · 1 reaction ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Quantco/pnpm-licenses#17 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100