Skip to main content
Integrate CodeAnt AI directly into Claude Code to resolve PR review comments and review local changes — all without leaving your terminal.

Video Walkthrough

What You Get

Slash CommandDescription
/codeant:resolve-pr-commentsFetch unresolved CodeAnt review comments on a PR and fix them
/codeant:review-localRun a CodeAnt code review on local changes and fix all issues

Prerequisites

  1. Claude Code v2.0.73 or later — plugin support requires this minimum version (installation guide)
  2. CodeAnt CLI installed and authenticated — follow the CLI setup guide

Installation

Install the CodeAnt plugin from inside Claude Code:
  1. Run /plugin and select Manage plugins
  2. Choose Add plugin and enter the plugin registry URL:
    https://github.com/CodeAnt-AI/skills
    
  3. Go to Install plugin, search for CodeAnt, and install it
  4. 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:
> /codeant:resolve-pr-comments 42
Auto-detect from current branch:
> /codeant:resolve-pr-comments
When auto-detecting, Claude Code will:
  1. Get your current branch name
  2. Run codeant pr list --source-branch "<branch>" --state open to find the matching PR
  3. If multiple PRs match, ask you which one to use
The fix flow:
  1. Fetch comments — runs codeant pr comments --pr-number <N> --codeant-generated true and filters to unresolved comments
  2. Categorize — separates inline code comments (actionable) from general PR-level comments (manual review needed)
  3. Show summary — presents all unresolved comments grouped by file, with a count of actionable vs. manual-review items
  4. 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
  5. Apply safe fixes — applies only fixes that pass validation, skips anything that could break logic
  6. Report — lists what was fixed, what was skipped (and why), and what needs manual review
Changes are not committed automatically — you review the diffs and commit when ready.

/codeant:review-local — Review and Fix Local Changes

Run a CodeAnt AI code review on your local changes and fix all issues found.
> /codeant:review-local
You can specify the review scope:
> /codeant:review-local staged files only
> /codeant:review-local last commit
> /codeant:review-local against the develop branch
The skill selects the right flag based on your request:
You sayFlag 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
The fix flow:
  1. Run review — executes codeant review <scope-flag>
  2. Present findings — shows issues grouped by file with category labels (Security, Code Quality, Performance, Maintainability)
  3. Validate each fix — checks that the fix won’t break return types, control flow, or error handling
  4. Apply safe fixes — minimal changes only, skips anything that could break existing logic
  5. Verify — re-runs the review to confirm fixes are clean
  6. Report — initial findings, fixes applied, fixes skipped (and why), and verification results
Changes are not committed automatically — you review the diffs and commit when ready.

Example Workflows

Resolve PR Comments

> /codeant:resolve-pr-comments

Found PR #42: "Add payment processing" (feature/payments → main)

6 unresolved CodeAnt comments:
  Actionable (4):
    src/auth.ts:34 — SQL injection in login query (has code suggestion)
    src/auth.ts:78 — Missing rate limiting (no suggestion)
    src/api/users.ts:12 — Unvalidated input (has code suggestion)
    src/api/users.ts:45 — Magic number should be a constant (no suggestion)
  Manual review needed (2):
    PR-level comment about error handling strategy
    PR-level comment about test coverage

Shall I proceed to fix the 4 actionable comments?

> yes

✓ Fixed src/auth.ts:34 — parameterized the SQL query
✓ Fixed src/auth.ts:78 — added rate limiting middleware
✗ Skipped src/api/users.ts:12 — suggestion changes return type, may break callers
✓ Fixed src/api/users.ts:45 — extracted magic number to constant

Changes ready for review. Run `git diff` to inspect.

Review → Fix → Ship

> Implement the user authentication endpoint

(Claude implements the feature)

> /codeant:review-local

Found 3 issues:
  Security: Missing input sanitization (src/auth.ts:15)
  Code Quality: Unused variable (src/auth.ts:8)
  Code Quality: Missing error handling (src/auth.ts:42)

All 3 fixes applied. Verification passed — no remaining issues.

> git add -A && git commit -m "Add auth endpoint"

Updating the Plugin

To get the latest skills:
/plugin marketplace update CodeAnt-AI/skills

Troubleshooting

“codeant: command not found” Ensure the CLI is installed globally:
npm install -g codeant-cli
codeant --version
“Not authenticated” or “Could not detect remote”
codeant login                           # CodeAnt API auth
codeant set-token github <your-token>   # SCM auth for PR features
“Could not detect repo name” Ensure you’re in a git repository with a remote:
git remote get-url origin
Plugin not appearing after install Run /reload-plugins to refresh without restarting Claude Code.