Skip to content
Projects

About

AI code reviewer for the command line: one model finds issues in your branch, a second one tries to refute each finding, and a scorer ranks what is left.

Developer Tools

How these counts are measured

Measured star growth

in 24h
0
in 7 days
Collecting history
in 15 days
Collecting history
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.md

Original

Kerpeten logo

Kerpeten

AI code review in your terminal, where a second model checks every finding.

npm ci license

What is it?

Kerpeten reviews the changes on your branch and tells you what is wrong with them.

  1. A reviewer model reads your change and looks for bugs.
  2. A judge model checks each finding against the code and tries to prove it wrong.
  3. You get only what survives, each with a score and a fix.

Fewer false alarms, because every finding is checked twice.

Why Kerpeten?

  • Checked findings. A finding the judge refutes gets a score of 0.
  • Read-only. The models can read your code. They cannot change files or run commands.
  • Any model. A local model (Ollama, LM Studio, llama.cpp, vLLM), any model on OpenRouter, Anthropic, OpenAI or your ChatGPT plan.
  • Your rules. Breaking a rule in AGENTS.md or CLAUDE.md is a finding too.
  • Comments on your PR. Works with GitHub pull requests and GitLab merge requests.

Quick start

npm install -g kerpeten     # also needs ripgrep (rg) on your PATH
cd your-repository
kerpeten init               # pick your models, writes .kerpeten.yml
export OPENROUTER_API_KEY="<your key>"   # or a local model, see Models
kerpeten review --dry-run   # review your branch, print the findings

That's it. Nothing is written anywhere with --dry-run.

What you get

- src/flows/partialRefund.ts:10 [bug] The handling fee is not rounded down to whole cents.
  verdict verified, priority P1, score 75
  For a request of 100 cents the flow returns 98.5 cents instead of 99.
  fix Round the handling fee down to whole cents before you take it from the refund.

Common commands

Command What it does
kerpeten init Sets up Kerpeten in your repository
kerpeten review --dry-run Reviews your branch and prints the findings
kerpeten review --mr 12 Reviews PR/MR #12 and posts comments on it
kerpeten review --mr 12 --full Reviews the whole PR again, not only new commits
kerpeten auth login Signs in with your ChatGPT plan

Posting comments uses the GitHub CLI (gh) or the GitLab CLI (glab).

Models

Provider You need
anthropic ANTHROPIC_API_KEY
openai OPENAI_API_KEY
openrouter OPENROUTER_API_KEY
chatgpt kerpeten auth login
A local model A server on your machine that speaks the OpenAI API, such as Ollama or LM Studio

A local model is set by hand in .kerpeten.yml. For Ollama:

models:
  reviewer: { provider: openai, model: qwen3-coder, base_url: "http://localhost:11434/v1", api_key_env: LOCAL_API_KEY }
  judge: { provider: openai, model: qwen3-coder, base_url: "http://localhost:11434/v1", api_key_env: LOCAL_API_KEY }
export LOCAL_API_KEY=local   # the server does not check it, but it must not be empty
export KERPETEN_TRUSTED_ENDPOINTS=LOCAL_API_KEY=http://localhost:11434/v1

The reviewer and the judge can use different models.

Platforms

Linux (x64, arm64) and macOS (Apple Silicon). Windows, Intel Macs and Alpine are not supported yet.

Status: Early stage. Kerpeten runs on your machine or in your CI pipeline.

Learn more

Full docs: kerpeten.sh/docs

  • Configuration: models, keys, language, limits, ignored files
  • Reviewing: how a review works, PR comments, later runs
  • CI: run Kerpeten in GitHub Actions or GitLab CI
  • ChatGPT plan: sign in and plan usage
  • Development: build and run from source

License

MIT, see LICENSE. Written by LibirSoft.

Explore related projects

Loading…