Korekt CLI

AI-powered code review from your terminal.

Installation

npm install -g korekt-cli

Setup

kk config --key YOUR_API_KEY

Local Workflow

Review Your Changes

kk review main              # Review commits against main
kk stg                      # Review staged changes
kk diff                     # Review unstaged changes

Choose AI Model

kk review -m                        # Interactive model picker
kk review -m gemini-3-flash-preview # Direct selection

Available models (ranked by recommendation):

  1. gemini-3-flash-preview - Most efficient, recommended for daily use
  2. gemini-3-pro-preview - Best quality for complex reviews
  3. gemini-2.5-pro - High quality alternative
  4. gemini-2.5-flash - Legacy, avoid

Ignore Files

kk review main --ignore "*.lock" "dist/*"

CI/CD Integration

Post to Pull Request

kk review --comment         # Auto-posts findings to PR

Works with GitHub Actions, Azure Pipelines, and Bitbucket Pipelines.

Post to Ticket

kk review --post-ticket     # Posts findings to linked Jira/Azure ticket

Ticket IDs are automatically extracted from branch names and commit messages.

JSON Output

kk review main --json       # Machine-readable output

Environment Variables

export KOREKT_API_KEY="your-api-key"

Alternative to kk config --key. Config file takes precedence.

Help

kk --help
kk review --help

License

MIT - See LICENSE for details.