Verify Everything (vet)

0.2.10 · active · verified Fri Apr 17

Verify Everything (vet) is an LLM-based code review command-line interface (CLI) tool that identifies issues tests and linters often miss. It leverages various LLMs to analyze code changes and provide feedback. The library is currently at version 0.2.10 and receives frequent updates, typically involving minor version bumps to add new features, support new models, and fix bugs.

Common errors

Warnings

Install

Quickstart

This quickstart demonstrates how to use the `vet diff` command to review unstaged changes. `vet` primarily operates as a CLI tool. It requires an API key for a supported LLM (e.g., Anthropic, OpenAI) to be set as an environment variable or passed via `--api-key`. As of v0.2.10, the default model is Claude Opus 4.7.

# Ensure you have an Anthropic or OpenAI API key set as an environment variable
# e.g., export ANTHROPIC_API_KEY="sk-..."
# Or pass it directly: --api-key $ANTHROPIC_API_KEY

# Create a dummy file and make a change
!echo "print('Hello, world!')" > test_file.py
!git init --initial-branch=main
!git add test_file.py
!git commit -m "Initial commit"
!echo "print('Hello, updated world!')" >> test_file.py

# Run vet diff to get an LLM review of the unstaged changes
# The default model is Claude Opus 4.7 as of v0.2.10
import os
if os.environ.get('ANTHROPIC_API_KEY'):
    print("Running vet diff (requires Anthropic API key)...")
    os.system("vet diff")
else:
    print("Skipping vet diff: ANTHROPIC_API_KEY not found. Please set it to run.")

# To review staged changes, use:
# os.system("git add test_file.py")
# os.system("vet review --staged")

view raw JSON →