Video Walkthrough
What You Get
| Slash Command | Description |
|---|---|
/codeant:resolve-pr-comments | Fetch unresolved CodeAnt review comments on a PR and fix them |
/codeant:review-local | Run a CodeAnt code review on local changes and fix all issues |
Prerequisites
- Claude Code v2.0.73 or later — plugin support requires this minimum version (installation guide)
- CodeAnt CLI installed and authenticated — follow the CLI setup guide
Installation
Install the CodeAnt plugin from inside Claude Code:- Run
/pluginand select Manage plugins - Choose Add plugin and enter the plugin registry URL:
- Go to Install plugin, search for CodeAnt, and install it
- Restart Claude Code for the plugin to take effect
Usage
/codeant:resolve-pr-comments — Resolve PR Review Comments
Fetch all unresolved CodeAnt AI review comments on a pull request and fix them.
With a PR number:
- Get your current branch name
- Run
codeant pr list --source-branch "<branch>" --state opento find the matching PR - If multiple PRs match, ask you which one to use
- Fetch comments — runs
codeant pr comments --pr-number <N> --codeant-generated trueand filters to unresolved comments - Categorize — separates inline code comments (actionable) from general PR-level comments (manual review needed)
- Show summary — presents all unresolved comments grouped by file, with a count of actionable vs. manual-review items
- Validate each suggestion — before applying any fix:
- Checks the code at the referenced line still matches what the comment describes
- Extracts code suggestions from the comment body
- Verifies syntax, variable scope, imports, and that existing logic is not broken
- Apply safe fixes — applies only fixes that pass validation, skips anything that could break logic
- Report — lists what was fixed, what was skipped (and why), and what needs manual review
/codeant:review-local — Review and Fix Local Changes
Run a CodeAnt AI code review on your local changes and fix all issues found.
| You say | Flag used |
|---|---|
| ”staged” | --staged |
| ”uncommitted” / nothing specific | --uncommitted (default) |
| “last commit” | --last-commit |
| ”last 3 commits” | --last-n-commits 3 |
| ”unpushed” / “committed” | --committed |
| a branch name | --base <branch> |
| a commit hash | --base-commit <hash> |
| ”everything” / “all” | --all |
- Run review — executes
codeant review <scope-flag> - Present findings — shows issues grouped by file with category labels (Security, Code Quality, Performance, Maintainability)
- Validate each fix — checks that the fix won’t break return types, control flow, or error handling
- Apply safe fixes — minimal changes only, skips anything that could break existing logic
- Verify — re-runs the review to confirm fixes are clean
- Report — initial findings, fixes applied, fixes skipped (and why), and verification results
Example Workflows
Resolve PR Comments
Review → Fix → Ship
Updating the Plugin
To get the latest skills:Troubleshooting
“codeant: command not found” Ensure the CLI is installed globally:/reload-plugins to refresh without restarting Claude Code.