Skip to main content
Integrate CodeAnt AI directly into Claude Code to run AI-powered code reviews, auto-fix PR comments, explore pull requests, and detect issues — all without leaving your terminal.

What You Get

Slash CommandDescription
/codeant:reviewRun an AI code review on your current changes
/codeant:review-fixReview code and automatically fix all issues
/codeant:check-prFetch unaddressed PR review comments and fix them
/codeant:list-commentsList review comments on a PR
/codeant:find-prsList and explore pull requests in the repo

Prerequisites

  1. Claude Code installed and working (installation guide)
  2. CodeAnt CLI installed and authenticated:
npm install -g codeant-cli
codeant login
  1. SCM token configured (required for PR features):
codeant set-token github <your-token>
# or: gitlab, bitbucket, azure

Installation

Add the CodeAnt marketplace and install the plugin — two commands inside Claude Code:
/plugin marketplace add CodeAnt-AI/skills
/plugin install codeant
That’s it. All five commands are now available. To verify:
/plugin
This opens the plugin manager where you can see CodeAnt listed under the Installed tab.

Manual Installation (Alternative)

If you prefer not to use the plugin system, copy the skill files directly. Project-level (shared with your team via git):
mkdir -p .claude/commands
git clone https://github.com/CodeAnt-AI/skills.git /tmp/codeant-skills
cp /tmp/codeant-skills/skills/*/SKILL.md .claude/commands/
# Rename files to match skill names
cd .claude/commands
for f in SKILL.md; do :; done  # all copied as SKILL.md — rename them:
cd /tmp/codeant-skills/skills && for d in */; do cp "$d/SKILL.md" /path/to/your/project/.claude/commands/"${d%/}.md"; done
rm -rf /tmp/codeant-skills
Or simply copy each skill individually:
mkdir -p .claude/commands
git clone https://github.com/CodeAnt-AI/skills.git /tmp/codeant-skills
cp /tmp/codeant-skills/skills/review/SKILL.md .claude/commands/review.md
cp /tmp/codeant-skills/skills/review-fix/SKILL.md .claude/commands/review-fix.md
cp /tmp/codeant-skills/skills/check-pr/SKILL.md .claude/commands/check-pr.md
cp /tmp/codeant-skills/skills/list-comments/SKILL.md .claude/commands/list-comments.md
cp /tmp/codeant-skills/skills/find-prs/SKILL.md .claude/commands/find-prs.md
rm -rf /tmp/codeant-skills
With manual installation, commands use /review, /check-pr, etc. (no codeant: namespace prefix).

Usage

/codeant:review — AI Code Review

Run an AI-powered review on your current changes:
> /codeant:review
Claude Code will:
  1. Run codeant review on your uncommitted changes
  2. Parse the findings (security issues, bugs, code quality)
  3. Present them organized by severity (CRITICAL → MAJOR → MINOR)
You can give context for what to review:
> /codeant:review staged files only
> /codeant:review the last commit
> /codeant:review against the develop branch
The skill intelligently selects the right flags (--staged, --last-commit, --base develop) based on your request.

/codeant:review-fix — Review + Auto-Fix

Run a full review-fix cycle that automatically resolves issues:
> /codeant:review-fix
Claude Code will:
  1. Run codeant review --uncommitted to identify issues
  2. Fix each issue starting with the highest severity
  3. Run the review again to verify all fixes
  4. Report what was found, what was fixed, and what remains
Changes are not committed automatically — you review and commit when ready.

/codeant:check-pr — PR Comment Auto-Fix

This is the most powerful workflow. It fetches all unaddressed CodeAnt review comments on a PR and fixes them:
> /codeant:check-pr 42
Or let it auto-detect the PR for your current branch:
> /codeant:check-pr
The auto-fix flow:
  1. Detect PR — finds the open PR for your current branch (or uses the number you provide)
  2. Fetch comments — gets all unaddressed CodeAnt-generated review comments
  3. Show summary — presents issues grouped by file and severity
  4. Apply fixes — for each comment:
    • If a suggestedCode fix is available, applies it directly
    • If not, reads the file context and implements an appropriate fix
  5. Verify — runs codeant review --uncommitted to confirm fixes
  6. Report — lists what was fixed, what remains, and why
This creates a tight feedback loop: CodeAnt reviews your PR → you run /codeant:check-pr → issues get fixed → you push → CodeAnt marks comments as addressed.

/codeant:list-comments — Browse PR Comments

List and filter review comments on a PR:
> /codeant:list-comments 42
> /codeant:list-comments
Shows comments grouped by file with severity, line range, and whether a suggested fix is available. Useful for understanding what feedback exists before deciding to fix.

/codeant:find-prs — Explore Pull Requests

List and explore PRs in the repository:
> /codeant:find-prs
> /codeant:find-prs my open PRs
> /codeant:find-prs closed PRs from last week
Returns a table of PRs with number, title, author, branches, and state. You can then drill into any PR’s comments or details.

Example Workflows

Full PR Auto-Fix Loop

> /codeant:check-pr

Found 5 unaddressed comments on PR #42:

  src/auth.ts (2 issues)
    CRITICAL: SQL injection in login query (line 34) — fix available
    MAJOR: Missing rate limiting (line 78) — no suggestion

  src/api/users.ts (3 issues)
    MAJOR: Unvalidated input (line 12) — fix available
    MINOR: Unused import (line 3) — fix available
    MINOR: Magic number (line 45) — no suggestion

Fixing all issues...

✓ Fixed 3 issues with suggested code
✓ Implemented fixes for 2 issues without suggestions
✓ Verification review passed — no new issues

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

Implement → Review → Fix

> Implement the payment processing endpoint

(Claude implements the feature)

> /codeant:review-fix

(CodeAnt reviews, Claude fixes issues, CodeAnt verifies)

All clear — ready to commit.

Explore and Fix

> /codeant:find-prs my open PRs

PR #42: "Add payment processing" (feature/payments → main)
PR #38: "Fix auth timeout" (fix/auth-timeout → main)

> /codeant:list-comments 42

3 unaddressed comments...

> /codeant:check-pr 42

Fixing all 3 issues...

How It Works

When you run a slash command, Claude Code loads the skill definition and follows its instructions to:
  1. Run the appropriate codeant CLI commands (pr list, pr comments, review, etc.)
  2. Parse the JSON/terminal output
  3. Take action (present findings, apply fixes, verify)
The CodeAnt CLI communicates with your SCM platform (GitHub, GitLab, Bitbucket, Azure DevOps) to fetch PR data, and with the CodeAnt API for AI-powered code analysis.

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
Review takes too long Narrow the scope:
> /codeant:review staged files only
> /codeant:review --include 'src/**/*.ts'
Plugin not appearing after install Run /reload-plugins to refresh without restarting Claude Code.