Use Cursor's AI chat to review pull requests, spot bugs, and understand unfamiliar code in your codebase.
Open the file you want to review in Cursor. For PR reviews, use 'git diff' output or open changed files directly.
Select the function, class, or block you want reviewed. Press Cmd+L (Mac) or Ctrl+L (Windows) to send it to the Chat panel with context attached.
Type: 'Review this code for security vulnerabilities, edge cases, and logic errors. List issues by severity.' Cursor responds with specific line-level feedback.
For code you didn't write, ask: 'Explain what this function does and what assumptions it makes.' This is especially useful for inherited codebases.
For each issue Cursor finds, ask: 'How would you fix this?' Then use Cmd+K to apply the suggestion inline without leaving the file.
Use Cursor's terminal integration to run your test suite immediately after applying changes. Type the test command in the Chat panel and Cursor will run it.
Free (2-week Pro trial)