The `/code-review-local` slash command invokes the `bitwarden-code-reviewer` agent to perform comprehensive code reviews of **GitHub pull requests or local git changes**, writing the review findings to **local files** instead of posting them to GitHub. This enables offline review workflows, preview capabilities before posting, pre-commit validation, and integration with custom review processes.
Performs comprehensive code reviews of GitHub PRs or local git changes, writing findings to local files instead of posting to GitHub. Use this to preview reviews before posting, work offline, or validate changes before committing.
/plugin marketplace add bitwarden/ai-plugins/plugin install bitwarden-code-review@bitwarden-marketplacecode-review-local//code-review-local - Local Code Review CommandThe /code-review-local slash command invokes the bitwarden-code-reviewer agent to perform comprehensive code reviews of GitHub pull requests or local git changes, writing the review findings to local files instead of posting them to GitHub. This enables offline review workflows, preview capabilities before posting, pre-commit validation, and integration with custom review processes.
/code-review-local [PR#] | [PR URL]
[PR#] (optional): Pull request number (e.g., 123)[PR URL] (optional): Full GitHub PR URL (e.g., https://github.com/bitwarden/clients/pull/123)# Review by PR number
/code-review-local 123
# Review by full URL
/code-review-local https://github.com/bitwarden/mobile/pull/4567
# Interactive mode - choose to review local changes when prompted
/code-review-local
# When asked for PR number, indicate you want to review local changes instead
# The agent will analyze:
# - Uncommitted changes (git diff)
# - Committed changes on current branch vs base branch
The command generates two markdown files in your current working directory:
review-summary.mdContains the overall summary comment (via Skill(posting-review-summary)).
Format for PRs with issues:
**Overall Assessment:** REQUEST CHANGES
[1-2 neutral sentences describing what was reviewed]
<details>
<summary>Code Review Details</summary>
- ❌ **CRITICAL**: [One-line description]
- `filename.ts:42`
- ⚠️ **IMPORTANT**: [One-line description]
- `filename.ts:87`
</details>
See inline comments for details.
Format for clean PRs:
**Overall Assessment:** APPROVE
[One neutral sentence describing what was reviewed]
review-inline-comments.mdContains all inline review comments with file and line references that would be posted with gh pr review --comment.
Format:
## [file-path]:[line-number]
[Emoji] **[SEVERITY]**: [One-line description]
<details>
<summary>Details and fix</summary>
[Full details, code examples, rationale]
</details>
---
Note: If no inline comments are needed (clean PR), this file will be empty.
The agent uses Bitwarden's standard emoji classification system:
gh pr view and related commandsgit status, git diff, and git logReview the generated files before manually posting to GitHub:
/code-review-local 123
# Review the generated files
cat review-summary.md
cat review-inline-comments.md
# Manually post if satisfied
gh pr comment 123 --body-file review-summary.md
gh pr review 123 --comment --body "$(cat review-inline-comments.md)"
Perform code reviews without immediate GitHub access:
# Review while offline or in restricted environment
/code-review-local 456
# Later, post the reviews when ready
Integrate with custom tooling or approval processes:
# Generate review
/code-review-local 789
# Process with custom scripts
python process_review.py review-summary.md review-inline-comments.md
Review your local changes before committing or creating a PR:
# Review uncommitted changes before commit
/code-review-local
# Choose "local changes" when prompted
# Review findings in the generated files
# Fix any issues identified
# Commit when clean
Use the output to understand code review best practices:
# Generate review to learn from the agent's analysis
/code-review-local 101
# Study the findings and reasoning
claude-sonnet-4-5 model for balanced performance and qualitybitwarden-code-reviewer specialized agentgh CLI (requires authentication)gh) installed and authenticatedbitwarden-code-review plugin installedgh CLI is authenticated: gh auth statusgh auth login