spacehub

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

feat(code-review): Add --no-comment option for local-only reviewBrowse files
Add ability to run /code-review without posting to GitHub PR.
When --no-comment is passed, the review is output to the terminal
only. This is useful when running locally and users don't want to
clutter PRs with automated comments.
Claude authored on Dec 15, 2025 parent eb87245 · commit 5d95a9c67d4e
2 changed files+17 -3compared with eb87245
Mplugins/code-review/README.md
Mplugins/code-review/commands/code-review.md
@@ -26,9 +26,12 @@
2626
2727 **Usage:**
2828 ```bash
29-/code-review
29+/code-review [--no-comment]
3030 ```
3131
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.
34+
3235 **Example workflow:**
3336 ```bash
3437 # On a PR branch, run:
@@ -39,6 +42,9 @@
3942 # - Score each issue for confidence
4043 # - Post comment with issues ≥80 confidence
4144 # - Skip posting if no high-confidence issues found
45+
46+# For local-only review (no GitHub comment):
47+/code-review --no-comment
4248 ```
4349
4450 **Features:**
@@ -49,6 +55,7 @@
4955 - Historical context analysis via git blame
5056 - Automatic skipping of closed, draft, or already-reviewed PRs
5157 - Links directly to code with full SHA and line ranges
58+- Optional `--no-comment` flag for local-only review without posting to GitHub
5259
5360 **Review comment format:**
5461 ```markdown
@@ -196,6 +203,7 @@
196203 - **Iterate on guidelines**: Update CLAUDE.md based on patterns
197204 - **Review automatically**: Set up as part of PR workflow
198205 - **Trust the filtering**: Threshold prevents noise
206+- **Use `--no-comment` for local development**: Get review feedback without cluttering the PR
199207
200208 ## Configuration
201209
@@ -5,6 +5,9 @@
55
66 Provide a code review for the given pull request.
77
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.
10+
811 To do this, follow these steps precisely:
912
1013 1. Launch a haiku agent to check if any of the following are true:
@@ -52,8 +55,11 @@
5255
5356 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.
5457
55-7. Finally, comment on the pull request.
56- When writing your comment, follow these guidelines:
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`
61+
62+ When writing your review, follow these guidelines:
5763 a. Keep your output brief
5864 b. Avoid emojis
5965 c. Link and cite relevant code, files, and URLs for each issue