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): Make local-only output the default behaviorBrowse files
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.
Claude authored on Dec 15, 2025 parent 5d95a9c · commit d76e1f538b16
2 changed files+11 -12compared with 5d95a9c
Mplugins/code-review/README.md
Mplugins/code-review/commands/code-review.md
@@ -26,25 +26,24 @@
2626
2727 **Usage:**
2828 ```bash
29-/code-review [--no-comment]
29+/code-review [--comment]
3030 ```
3131
3232 **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.
3434
3535 **Example workflow:**
3636 ```bash
37-# On a PR branch, run:
37+# On a PR branch, run (outputs to terminal only):
3838 /code-review
3939
4040 # Claude will:
4141 # - Launch 4 review agents in parallel
4242 # - 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
4544
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
4847 ```
4948
5049 **Features:**
@@ -55,7 +54,7 @@
5554 - Historical context analysis via git blame
5655 - Automatic skipping of closed, draft, or already-reviewed PRs
5756 - 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
5958
6059 **Review comment format:**
6160 ```markdown
@@ -203,7 +202,7 @@
203202 - **Iterate on guidelines**: Update CLAUDE.md based on patterns
204203 - **Review automatically**: Set up as part of PR workflow
205204 - **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
207206
208207 ## Configuration
209208
@@ -6,7 +6,7 @@
66 Provide a code review for the given pull request.
77
88 **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.
1010
1111 To do this, follow these steps precisely:
1212
@@ -56,8 +56,8 @@
5656 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.
5757
5858 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)
6161
6262 When writing your review, follow these guidelines:
6363 a. Keep your output brief