surshar / claude-code
Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.
Built by Anthropic · github.com/anthropics
Change default to output review to terminal only. Users must now pass --comment to post to GitHub PR. This is more convenient for local development where posting to PRs is usually not desired.
| @@ -26,25 +26,24 @@ | ||
| 26 | 26 | |
| 27 | 27 | **Usage:** |
| 28 | 28 | ```bash |
| 29 | -/code-review [--no-comment] | |
| 29 | +/code-review [--comment] | |
| 30 | 30 | ``` |
| 31 | 31 | |
| 32 | 32 | **Options:** |
| 33 | -- `--no-comment`: Skip posting the review to GitHub. Output the review to the terminal only. Useful for local review without creating PR comments. | |
| 33 | +- `--comment`: Post the review as a PR comment on GitHub. By default, the review is output to the terminal only. | |
| 34 | 34 | |
| 35 | 35 | **Example workflow:** |
| 36 | 36 | ```bash |
| 37 | -# On a PR branch, run: | |
| 37 | +# On a PR branch, run (outputs to terminal only): | |
| 38 | 38 | /code-review |
| 39 | 39 | |
| 40 | 40 | # Claude will: |
| 41 | 41 | # - Launch 4 review agents in parallel |
| 42 | 42 | # - Score each issue for confidence |
| 43 | -# - Post comment with issues ≥80 confidence | |
| 44 | -# - Skip posting if no high-confidence issues found | |
| 43 | +# - Output review with issues ≥80 confidence to terminal | |
| 45 | 44 | |
| 46 | -# For local-only review (no GitHub comment): | |
| 47 | -/code-review --no-comment | |
| 45 | +# To post review as a GitHub PR comment: | |
| 46 | +/code-review --comment | |
| 48 | 47 | ``` |
| 49 | 48 | |
| 50 | 49 | **Features:** |
| @@ -55,7 +54,7 @@ | ||
| 55 | 54 | - Historical context analysis via git blame |
| 56 | 55 | - Automatic skipping of closed, draft, or already-reviewed PRs |
| 57 | 56 | - Links directly to code with full SHA and line ranges |
| 58 | -- Optional `--no-comment` flag for local-only review without posting to GitHub | |
| 57 | +- Local-only output by default; use `--comment` flag to post to GitHub PR | |
| 59 | 58 | |
| 60 | 59 | **Review comment format:** |
| 61 | 60 | ```markdown |
| @@ -203,7 +202,7 @@ | ||
| 203 | 202 | - **Iterate on guidelines**: Update CLAUDE.md based on patterns |
| 204 | 203 | - **Review automatically**: Set up as part of PR workflow |
| 205 | 204 | - **Trust the filtering**: Threshold prevents noise |
| 206 | -- **Use `--no-comment` for local development**: Get review feedback without cluttering the PR | |
| 205 | +- **Use `--comment` for CI/CD**: Post review to PR when running in automated workflows | |
| 207 | 206 | |
| 208 | 207 | ## Configuration |
| 209 | 208 |
| @@ -6,7 +6,7 @@ | ||
| 6 | 6 | Provide a code review for the given pull request. |
| 7 | 7 | |
| 8 | 8 | **Arguments:** |
| 9 | -- `--no-comment`: Skip posting the review as a PR comment. Instead, output the review to the terminal only. This is useful when running locally and you don't want to post to GitHub. | |
| 9 | +- `--comment`: Post the review as a PR comment on GitHub. By default, the review is output to the terminal only. | |
| 10 | 10 | |
| 11 | 11 | To do this, follow these steps precisely: |
| 12 | 12 | |
| @@ -56,8 +56,8 @@ | ||
| 56 | 56 | 6. Filter out any issues that were not validated in step 5. This step will give us our list of high signal issues for our review. |
| 57 | 57 | |
| 58 | 58 | 7. Finally, output the review: |
| 59 | - - If `--no-comment` was passed as an argument, output the review directly to the terminal (do NOT post to GitHub) | |
| 60 | - - Otherwise, post the review as a comment on the pull request using `gh pr comment` | |
| 59 | + - If `--comment` was passed as an argument, post the review as a comment on the pull request using `gh pr comment` | |
| 60 | + - Otherwise, output the review directly to the terminal (do NOT post to GitHub) | |
| 61 | 61 | |
| 62 | 62 | When writing your review, follow these guidelines: |
| 63 | 63 | a. Keep your output brief |