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 Command | Description |
|---|
/codeant:review | Run an AI code review on your current changes |
/codeant:review-fix | Review code and automatically fix all issues |
/codeant:check-pr | Fetch unaddressed PR review comments and fix them |
/codeant:list-comments | List review comments on a PR |
/codeant:find-prs | List and explore pull requests in the repo |
Prerequisites
- Claude Code installed and working (installation guide)
- CodeAnt CLI installed and authenticated:
npm install -g codeant-cli
codeant login
- SCM token configured (required for PR features):
codeant set-token github <your-token>
# or: gitlab, bitbucket, azure
Installation
Plugin Marketplace (Recommended)
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:
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:
Claude Code will:
- Run
codeant review on your uncommitted changes
- Parse the findings (security issues, bugs, code quality)
- 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:
Claude Code will:
- Run
codeant review --uncommitted to identify issues
- Fix each issue starting with the highest severity
- Run the review again to verify all fixes
- Report what was found, what was fixed, and what remains
Changes are not committed automatically — you review and commit when ready.
This is the most powerful workflow. It fetches all unaddressed CodeAnt review comments on a PR and fixes them:
Or let it auto-detect the PR for your current branch:
The auto-fix flow:
- Detect PR — finds the open PR for your current branch (or uses the number you provide)
- Fetch comments — gets all unaddressed CodeAnt-generated review comments
- Show summary — presents issues grouped by file and severity
- 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
- Verify — runs
codeant review --uncommitted to confirm fixes
- 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.
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:
- Run the appropriate
codeant CLI commands (pr list, pr comments, review, etc.)
- Parse the JSON/terminal output
- 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.