{"id":10339,"library":"verify-everything","title":"Verify Everything (vet)","description":"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.","status":"active","version":"0.2.10","language":"en","source_language":"en","source_url":"https://github.com/imbue-ai/vet","tags":["LLM","code review","AI","CLI","developer tools"],"install":[{"cmd":"pip install verify-everything","lang":"bash","label":"Install latest version"}],"dependencies":[],"imports":[],"quickstart":{"code":"# Ensure you have an Anthropic or OpenAI API key set as an environment variable\n# e.g., export ANTHROPIC_API_KEY=\"sk-...\"\n# Or pass it directly: --api-key $ANTHROPIC_API_KEY\n\n# Create a dummy file and make a change\n!echo \"print('Hello, world!')\" > test_file.py\n!git init --initial-branch=main\n!git add test_file.py\n!git commit -m \"Initial commit\"\n!echo \"print('Hello, updated world!')\" >> test_file.py\n\n# Run vet diff to get an LLM review of the unstaged changes\n# The default model is Claude Opus 4.7 as of v0.2.10\nimport os\nif os.environ.get('ANTHROPIC_API_KEY'):\n    print(\"Running vet diff (requires Anthropic API key)...\")\n    os.system(\"vet diff\")\nelse:\n    print(\"Skipping vet diff: ANTHROPIC_API_KEY not found. Please set it to run.\")\n\n# To review staged changes, use:\n# os.system(\"git add test_file.py\")\n# os.system(\"vet review --staged\")","lang":"bash","description":"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."},"warnings":[{"fix":"Upgrade your Python environment to 3.11 or higher. We recommend using a virtual environment (e.g., `python3.11 -m venv .venv`).","message":"The `vet` tool requires Python 3.11 or newer. Using older Python versions will lead to syntax errors or other compatibility issues.","severity":"gotcha","affected_versions":"<0.2.0"},{"fix":"Interact with `vet` exclusively through its CLI commands (e.g., `vet diff`, `vet review`). Do not attempt `from vet import ...` for core review functionality.","message":"Verify Everything (vet) is primarily a command-line interface (CLI) tool. It does not expose a public programmatic Python API for direct import and use by users. Its functionality is accessed through shell commands.","severity":"gotcha","affected_versions":"All versions"},{"fix":"Always specify your preferred model using the `--model` flag (e.g., `vet diff --model gpt-4`). Consult `vet list-models` for available options.","message":"The default LLM model used by `vet` has changed multiple times across versions. For example, v0.2.10 switched the default to Claude Opus 4.7. If you rely on a specific model, it's best to explicitly specify it.","severity":"breaking","affected_versions":"All versions"},{"fix":"Set the appropriate API key environment variable or include `--api-key YOUR_KEY` in your `vet` commands. Example: `export ANTHROPIC_API_KEY=\"sk-ant-...\"`.","message":"The `vet` tool requires an API key for the chosen LLM (e.g., Anthropic, OpenAI) to be available, either as an environment variable (e.g., `ANTHROPIC_API_KEY`, `OPENAI_API_KEY`) or passed directly via the `--api-key` argument. Without it, commands will fail.","severity":"gotcha","affected_versions":"All versions"}],"env_vars":null,"last_verified":"2026-04-17T00:00:00.000Z","next_check":"2026-07-16T00:00:00.000Z","problems":[{"fix":"Ensure `verify-everything` is installed (`pip install verify-everything`) and that your shell's PATH includes the directory where pip installs scripts (e.g., `~/.local/bin` or your virtual environment's `bin` directory).","cause":"The `vet` executable is not in your system's PATH, or the `verify-everything` package is not installed in the active Python environment.","error":"Command 'vet' not found"},{"fix":"Set the API key as an environment variable (e.g., `export ANTHROPIC_API_KEY=\"sk-...\"`) or pass it directly using the `--api-key` argument (e.g., `vet diff --api-key YOUR_KEY`).","cause":"You are attempting to run a `vet` command without providing the necessary LLM API key. This key is required to authenticate with the LLM service.","error":"Error: API key not provided. Please provide an API key..."},{"fix":"Upgrade your Python environment to version 3.11 or higher. We recommend creating a virtual environment with the correct Python version: `python3.11 -m venv .venv && source .venv/bin/activate && pip install verify-everything`.","cause":"You are running `vet` with a Python version older than 3.11. `vet` uses syntax features only available in Python 3.11 or newer.","error":"SyntaxError: 'annotations' is not defined (Python < 3.11)"}]}