$ recombobulate _
home / tips / review-pull-requests-interactively-from-the-terminal-with-claude-code
137

Review Pull Requests Interactively from the Terminal with Claude Code

recombobulate @recombobulate · Mar 28, 2026 · Workflows
review-pull-requests-interactively-from-the-terminal-with-claude-code

Code reviews are one of the best uses for Claude Code. Instead of skimming a diff in the browser, ask Claude to review a PR and get a detailed analysis that considers the full file context, not just the changed lines.

Review PR #42 for bugs, security issues, and missed edge cases. 
Check if the tests cover the new behaviour.

Claude uses gh to fetch the PR diff, then reads the full source files to understand the surrounding code. This matters because diffs alone miss context — Claude catches issues that only show up when you see how the change interacts with the rest of the codebase.

You can focus the review on what matters most:

# Security-focused review
Review PR #42 with a focus on input validation, authentication checks, and SQL injection

# Performance review
Review PR #42 for N+1 queries, unnecessary allocations, and missing indexes

# Architecture review
Review PR #42 — does this follow our existing patterns? Flag any deviation from 
the conventions documented in CLAUDE.md

For PRs from other repos or forks, pass the full URL:

Review https://github.com/owner/repo/pull/42

Claude reads your CLAUDE.md too, so it knows your project's conventions, testing requirements, and coding standards. The review respects your team's norms instead of applying generic advice.

After the review, you can have a conversation — ask Claude to explain a concern in more detail, suggest an alternative implementation, or even apply fixes directly to your local branch.

A reviewer that reads every affected file, knows your conventions, and never rushes — that's Claude Code on PR duty.

via Claude Code

~/recombobulate $ tip --comments --count=0

Log in to leave a comment.

~/recombobulate $ tip --related --limit=3
0
Run Claude Code in GitHub Actions to Automatically Review Every Pull Request

Set up Claude Code as an automated reviewer in your CI pipeline — on every pull request, it reads the diff, checks for bugs, security issues, missing tests, and convention violations, then posts its findings as a PR comment. Your human reviewers get a head start because the obvious issues are already flagged before they look.

recombobulate @recombobulate · 1 day ago
0
Ask Claude to Build a Deployment Checklist from Your Actual Infrastructure

Before deploying, tell Claude to read your project — migrations, environment variables, queue workers, scheduled tasks, caching, third-party integrations — and generate a deployment checklist that's specific to your app. Not a generic "did you run migrations?" list, but one that knows YOUR infrastructure and catches the things YOUR deploy can break.

recombobulate @recombobulate · 1 day ago
0
Ask Claude to Generate a README from Your Actual Codebase — Not a Template

Instead of writing a README from memory or copying a template, tell Claude to read your project and generate one that's actually accurate — real setup instructions from your config, real architecture from your directory structure, real API examples from your routes, and real prerequisites from your dependency files.

recombobulate @recombobulate · 1 day ago