QuotaCheap Playbook
Cursor Agent Review và Bugbot: đưa AI vào code review mà không biến PR thành noise
Tìm hiểu Cursor Agent Review và Bugbot theo docs chính thức: automatic reviews, slash command, Source Control, PR comments, CI statuses, effort levels và c…
Agent Review giúp soi local changes, Bugbot review PR update và có thể trigger thủ công. Dùng đúng, AI review là lớp bắt lỗi thêm; dùng sai, nó chỉ tạo comment spam.
Hướng dẫn Cursor Agent Review và Bugbot theo docs chính thức: automatic review, slash command, source control review, PR update reviews, manual triggers, CI statuses, effort levels, existing comments context và workflow human-in-the-loop.
AI code review có hai kết quả rất khác nhau.
Một là bắt được bug thật trước khi merge.
Hai là tạo một đống comment chung chung khiến team tắt luôn bot.
Cursor có hai lớp liên quan đến review: Agent Review và Bugbot.
Dùng đúng, chúng tăng coverage review.
Dùng sai, chúng biến PR thành noise.
Theo Cursor Docs, Agent Review có thể chạy sau mỗi commit nếu enabled, chạy bằng slash command /agent review, hoặc từ Source Control tab để so sánh local changes với main branch.
Bugbot chạy review tự động trên PR update, có thể trigger thủ công bằng comment cursor review hoặc bugbot run, đọc existing PR comments để tránh duplicate suggestions và build on prior feedback.
Bài này tập trung vào workflow: AI review nên nằm ở đâu, nên trigger khi nào, đọc output ra sao và làm sao giữ developer trust.
Agent Review là gì?
Agent Review là review trong Cursor workflow.
Docs mô tả ba cách chạy: Automatic: khi enabled trong settings, chạy sau mỗi commit.
Slash command: gõ /agent review trong agent window input.
Source Control tab: review local changes against main branch, bắt vấn đề trên toàn bộ change set chứ không chỉ edit mới nhất.
Điểm đáng chú ý là Source Control review.
Nhiều bug không nằm trong một file đơn lẻ.
Chúng nằm ở interaction giữa nhiều thay đổi.
Review against main giúp agent nhìn diff theo branch context.
Dùng Agent Review khi: Bạn vừa để Agent sửa nhiều file.
Bạn chuẩn bị commit.
Bạn muốn review local diff trước khi mở PR.
Bạn muốn bắt bug logic, missing test hoặc regression obvious.
Không nên xem Agent Review là approval.
Nó là reviewer phụ.