默认使用 Anthropic 模型,需先设置 ANTHROPIC_API_KEY;--history-loader 会以当前用户身份执行指定 shell 命令,使用前需审查;自定义模型需在 .vet/models.json 或 ~/.config/vet/models.json 中配置,或用 --update-models 拉取注册表
vet
imbue-aiAGPL-3.0活跃维护用 AI Agent 自动审查代码,帮你从海量改动里挑出真正值得关注的问题,省去逐行翻 diff 的功夫。
Find issues worth your attention.
pip install verify-everything
vet "Implement X without breaking Y"README 未说明,仅要求能运行 Python 并访问所配置的推理服务
用 LLM 校验代码改动与编码代理行为,找出真正值得关注的问题
用 AI Agent 自动审查代码,帮你从海量改动里挑出真正值得关注的问题,省去逐行翻 diff 的功夫。
核心能力
- 同时审查代理对话的目标偏离与代码改动的正确性
- 支持终端、代理技能和 CI 三种运行方式
- 自带模型,兼容任意 OpenAI 兼容端点与自带 API Key
- 可用 --agentic 复用 Claude Code、Codex、OpenCode 订阅
- 按退出码区分无问题、运行错误与发现问题,支持 text/json/github 输出
容易踩的坑
- v0.2.16最新正式版2026-09-14 · 2026-09-14 16:00 UTC
What's Changed
- Bump version to 0.2.15 by @andrewlaack in https://github.com/imbue-ai/vet/pull/207
- Handle untracked directory symlinks safely by @andrewlaack in https://github.com/imbue-ai/vet/pull/217
- Add latest OpenAI models by @andrewlaack in https://github.com/imbue-ai/vet/pull/218
Full Changelog: https://github.com/imbue-ai/vet/compare/v0.2.15...v0.2.16
- v0.2.152026-06-10 · 2026-06-10 04:04 UTC
查看更新说明
What's Changed
- v0.2.14 by @andrewlaack in https://github.com/imbue-ai/vet/pull/204
- Add claude-fable-5 support by @andrewlaack in https://github.com/imbue-ai/vet/pull/206
Full Changelog: https://github.com/imbue-ai/vet/compare/v0.2.14...v0.2.15
- v0.2.142026-05-28 · 2026-05-28 19:12 UTC
查看更新说明
What's Changed
- v0.2.13 by @andrewlaack in https://github.com/imbue-ai/vet/pull/202
- Add claude-opus-4-8 support by @andrewlaack in https://github.com/imbue-ai/vet/pull/203
Full Changelog: https://github.com/imbue-ai/vet/compare/v0.2.13...v0.2.14
- v0.2.132026-05-26 · 2026-05-26 17:57 UTC
查看更新说明
What's Changed
- v0.2.12 by @andrewlaack in https://github.com/imbue-ai/vet/pull/200
- Add gemini-3.5-flash model by @andrewlaack in https://github.com/imbue-ai/vet/pull/201
Full Changelog: https://github.com/imbue-ai/vet/compare/v0.2.12...v0.2.13
- v0.2.122026-05-13 · 2026-05-13 23:01 UTC
查看更新说明
What's Changed
- v0.2.11 by @andrewlaack in https://github.com/imbue-ai/vet/pull/198
- Fix fallback diff parser to merge hunks with base content by @andrewlaack in https://github.com/imbue-ai/vet/pull/199
Full Changelog: https://github.com/imbue-ai/vet/compare/v0.2.11...v0.2.12
用户点评
登录用户的真实使用记录,可按版本和硬件筛选还没有人点评。第一个说出真实体验的人最有价值。
Why Vet
- Reviews intent and code: checks agent conversations for goal adherence and code changes for correctness.
- Runs anywhere: from the terminal, as an agent skill, or in CI.
- Bring-your-own-model: works with any provider using your own API keys.
- Works with existing subscriptions: supports Anthropic and OpenAI subscriptions using
--agentic. - Free and open source: no account, fees, or data collection. Requests go directly to your inference provider. Licensed under the AGPL-3.0.
Using Vet with Coding Agents
Vet includes an agent skill. When installed, agents will proactively run vet after code changes to find issues with the new code and mismatches between the user's request and the agent's actions.
Install the skill
curl -fsSL https://raw.githubusercontent.com/imbue-ai/vet/main/install-skill.sh | bash
You will be prompted to choose between:
- Project level: installs into
.agents/skills/vet/,.opencode/skills/vet/,.claude/skills/vet/, and.codex/skills/vet/at the repo root (run from your repo directory) - User level: installs into
~/.agents/,~/.opencode/,~/.claude/, and~/.codex/skill directories, discovered globally by all agents
Demo

Project Level
From the root of your git repo:
for dir in .agents .opencode .claude .codex; do
mkdir -p "$dir/skills/vet/scripts"
for file in SKILL.md scripts/export_opencode_session.py scripts/export_codex_session.py scripts/export_claude_code_session.py; do
curl -fsSL "https://raw.githubusercontent.com/imbue-ai/vet/main/skills/vet/$file" \
-o "$dir/skills/vet/$file"
done
done
User Level
for dir in ~/.agents ~/.opencode ~/.claude ~/.codex; do
mkdir -p "$dir/skills/vet/scripts"
for file in SKILL.md scripts/export_opencode_session.py scripts/export_codex_session.py scripts/export_claude_code_session.py; do
curl -fsSL "https://raw.githubusercontent.com/imbue-ai/vet/main/skills/vet/$file" \
-o "$dir/skills/vet/$file"
done
done
Security note
The --history-loader option executes the specified shell command as the current user to load the conversation history. It is important to review history loader commands and shared config presets before use.
Install the CLI
pip install verify-everything
Or with pipx:
pipx install verify-everything
Or with uv:
uv tool install verify-everything
Usage
Run Vet in the current repo:
vet "Implement X without breaking Y"
Compare against a base ref/commit:
vet "Refactor storage layer" --base-commit main
Use Claude Code, Codex, or OpenCode instead of LLM APIs (--agent-harness: claude, codex, opencode):
vet "Implement X without breaking Y" --agentic --agent-harness claude
GitHub PRs (Actions)
Vet reviews pull requests using a reusable GitHub Action.
Create .github/workflows/vet.yml:
name: Vet
permissions:
contents: read
pull-requests: write
on:
pull_request:
types: [opened, edited, synchronize, reopened]
jobs:
vet:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
env:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- uses: imbue-ai/vet@main
with:
agentic: false
The action handles Python setup, vet installation, merge base computation, and posting the review to the PR. ANTHROPIC_API_KEY must be set as a repository secret when using Anthropic models (the default). See action.yml for all available inputs.
How it works
Vet snapshots the repo and diff, optionally adds a goal and agent conversation, runs LLM checks, then filters/deduplicates findings into a final list of issues.
Output & exit codes
- Exit code
0: no issues found - Exit code
1: unexpected runtime error - Exit code
2: invalid usage/configuration error - Exit code
10: issues found
Output formats:
textjsongithub
Configuration
Model configuration
Vet supports custom model definitions using OpenAI-compatible endpoints via JSON config files searched in:
$XDG_CONFIG_HOME/vet/models.json(or~/.config/vet/models.json).vet/models.jsonat your repo root
Example models.json
{
"providers": {
"openrouter": {
"name": "OpenRouter",
"api_type": "openai_compatible",
"base_url": "https://openrouter.ai/api/v1",
"api_key_env": "OPENROUTER_API_KEY",
"models": {
"gpt-5.2": {
"model_id": "openai/gpt-5.2",
"context_window": 400000,
"max_output_tokens": 128000,
"supports_temperature": true
},
"kimi-k2": {
"model_id": "moonshotai/kimi-k2",
"context_window": 131072,
"max_output_tokens": 32768,
"supports_temperature": true
}
}
}
}
}
Then:
vet "Harden error handling" --model gpt-5.2
Model registry
Vet maintains a remote model registry with community-contributed model definitions. To fetch the latest definitions without upgrading vet:
vet --update-models
This downloads model definitions from the registry and caches them locally at ~/.cache/vet/remote_models.json. Once cached, registry models appear in vet --list-models and can be used with --model like any other model.
Model resolution priority (highest to lowest):
- User config (
.vet/models.jsonor~/.config/vet/models.json) - Builtin models (Anthropic, OpenAI, Gemini)
- Registry models (cached via
--update-models)
See registry/CONTRIBUTING.md for information about contributing model definitions to the registry.
Configuration profiles (TOML)
Vet supports named profiles so teams can standardize CI usage without long CLI invocations.
Profiles set defaults like model choice, enabled issue codes, output format, and thresholds.
See the example in this project.
Custom issue guides
You can customize the guide text for the issue codes via guides.toml. Guide files are loaded from:
$XDG_CONFIG_HOME/vet/guides.toml(or~/.config/vet/guides.toml).vet/guides.tomlat your repo root
Example guides.toml
[logic_error]
suffix = """
- Check for integer overflow in arithmetic operations
"""
[insecure_code]
replace = """
- Check for SQL injection: flag any string concatenation or f-string formatting used to build SQL queries rather than parameterized queries
- Check for XSS: flag user-supplied data rendered into HTML templates without proper escaping or sanitization
- Check for path traversal: flag file operations where user input flows into file paths without validation against directory traversal (e.g. ../)
- Check for insecure cryptography: flag use of deprecated or weak algorithms (e.g. MD5, SHA1 for security purposes, DES, RC4)
- Check for hardcoded credentials: flag passwords, API keys, or tokens embedded directly in source code
"""
Section keys must be valid issue codes (vet --list-issue-codes). Each section supports three optional fields: prefix (prepends to built-in guide), suffix (appends to built-in guide), and replace (fully replaces the built-in guide). prefix and suffix can be used together, but replace is mutually exclusive with the other two. Guide text should be formatted as a list.
Community
New to Vet? Read the launch post for an intro and 2-minute demo.
Join the Imbue Discord for discussion, questions, and support. For bug reports and feature requests, please use GitHub Issues.
License
This project is licensed under the GNU Affero General Public License v3.0 (AGPL-3.0-only).