VinvAI 标志

VinvAI

组织
VinvAI

Tools for AI agents to test, fix and optimise your codebase

发布者VinvAI
代码仓库VinvAI
语言Python
复刻数
5
星标数
46
可用工具
0
传输类型stdio
分类
许可协议Apache-2.0
链接
  • 将工具接入 AI 工作流

    VinvAI 提供 MCP 功能,可供兼容的 AI 客户端和智能体使用。

  • 0 个可用工具

    浏览下方可调用的操作;如果服务器提供了名称和描述,也会一并显示。

  • 可直接复制的配置

    使用安装配置片段,在您首选的 MCP 客户端中配置此服务器。

  • 开源社区热度

    关联的代码仓库有 46 个星标和 5 个复刻。

License Version Downloads Tests Open issues 100% local

VinvAI

Tools for AI agents to test, fix and optimise your codebase.

Vinv connects runtime traces to the exact source that produced them, hands that evidence to the coding agent you already use, then re-runs the code to prove the fix actually works. It's not another coding agent — it's the evidence layer under the one you already use: your agent proposes, Vinv verifies.

Editor extensionone click — install in

MCP server16 tools — add to

See it in action · What it does · Under the hood · 2-min demo

One workspace context, built once — every agent reads the same .vinv/ store.


Why Vinv

84% of developers now use or plan to use AI coding tools — but more of them distrust the output (46%) than trust it (33%), and distrust nearly doubled in a year (Stack Overflow 2025, 49k developers).

The reason is familiar: the agent edits the wrong handler, invents return shapes, then grades its own homework while the server won't even start. Or it loops — test fails, agent edits the same function, test fails again — burning your context window on "let me verify."

Both failures share one root cause: the agent has never watched your code run. It argues from static text.

The industry automated writing code and left proving it entirely manual. Vinv automates the proving — and only then the finding and the fixing.

Install

Vinv works three ways — an editor extension, a CLI, or an MCP server for any agent. All three share the same local engines.

Editor extension

One click — install from vinv.ai, which opens the extension directly in your editor (VS Code, Cursor, Windsurf, VSCodium, Trae and Insiders). The listing lives on Open VSX and the VS Code Marketplace.

Or from your editor's CLI:

EditorCommand
VS Codecode --install-extension VinvAI.VinvAI
Cursorcursor --install-extension VinvAI.VinvAI
Windsurfwindsurf --install-extension VinvAI.VinvAI
VSCodiumcodium --install-extension VinvAI.VinvAI
Traetrae --install-extension VinvAI.VinvAI
VS Code Insiderscode-insiders --install-extension VinvAI.VinvAI

First run builds the engines — about 3 minutes, mostly compiling the Rust index; it also fetches a one-time ~100 MB local embedding model (uv and Rust required). First trace lands about a minute after that; everything after is seconds.

CLI (Python engines)

bash
pip install vinv          # every engine as a console script
# or run one with zero install:
uvx --from vinv exerciser campaign <repo> --budget 20

MCP server (any agent)

Give Claude Code, Cursor, or any MCP client Vinv's tools — one global config that finds your open workspace automatically via MCP roots.

Claude Code, Codex, Gemini CLI — installed once for every folder you open, not just the current one:

bash
claude mcp add --scope user vinv -- npx -y vinv-mcp
bash
codex mcp add vinv -- npx -y vinv-mcp
bash
gemini mcp add --scope user vinv npx -- -y vinv-mcp

Claude Code defaults to the current directory and Gemini CLI to the current project, so both take --scope user; Codex always writes to ~/.codex/config.toml and has no scope flag.

Other clients: add { "command": "npx", "args": ["-y", "vinv-mcp"] } under mcpServers.vinv. See vinv-mcp — 16 tools: semantic search, dead code, fault localization, runtime values/slices/coverage, and the verify/optimize loop.

bash
git clone https://github.com/VinvAI/VinvAI ~/.vinv/engines && cd ~/.vinv/engines && ./install.sh

Windows (PowerShell):

powershell
git clone https://github.com/VinvAI/VinvAI $HOME\.vinv\engines; cd $HOME\.vinv\engines; .\install.ps1

The loop, in one picture

Run → Test → Find → Prove. Point Vinv at a Python repo; it does the rest — no code changes, no API keys.

  • Run — brings every service up under tracing with zero edits, capturing timings, arguments, return values and call trees from the real run.
  • Test — drives real requests through every endpoint (valid, boundary, negative, authenticated) and banks each response as a regression case.
  • Find — surfaces what actually broke or slowed down — server errors, crashes, latency hotspots, dead code — each tied to the exact source line.
  • Prove — hands the evidence to the agent you already use, then verifies its fix against acceptance tests written before the fix that it never sees. A "faster" change that alters any output is auto-reverted.

Your agent is the only LLM — no new bill, no model picker, no provider keys. See the full walkthrough on vinv.ai/#under-the-hood.

See it in action

Not a lab benchmark — real findings, filed on real projects (scikit-learn, watermarks-remover, semantica, FastAPI, Typer, smolagents), every one with an upstream thread you can open. All of it driven by Cursor running Composer 2.5 with Vinv installed — not a frontier model. The evidence did the work, not the model. The full set with screenshots: vinv.ai/#catches.

Dead code — proven by what never ran

Static tools only prove "nothing references this." Vinv proves "no capture ever executed this," carries each untraced island with the live callers that still point at it, and lets your agent return the verdict — integrate, delete, or keep.

UpstreamWhat Vinv caughtStatus
scikit-learn#34790Unused _find_smallest_angle helper in _ridge.py, stranded after a refactor✅ merged — "thanks for the clean-up"
semantica#117613 unreferenced symbols across 9 files (289 deletions, 0 insertions)✅ merged — review restored 2 as deprecated
fastapi/typer#1937Unused OptionHelpExtra TypedDict in the vendored Click✅ maintainer-confirmed

semantica#1176 is the discipline in one thread: a maintainer flagged two symbols as importable downstream, Vinv restored them with deprecation warnings, and the same maintainer merged.

Optimization — a speedup that has to prove itself

Every call is timed and charged to the symbol that spent it. A candidate fix ships only if a paired-bootstrap 95% CI clears zero and the behavior suite replays byte-identical — faster-but-different is auto-reverted.

UpstreamWhat Vinv provedStatus
watermarks-remover#261Skip a discarded exiftool subprocess and redundant SynthID scoring in clean_image — output identical, regression-tested✅ merged
smolagents#2572Fast-path in sanitize_for_rich: 36.27 KB → 0.00 KB/call (~37,137× less), regression-tested over 2,014 inputs🔵 open, under review
semantica#1178Build the built-in algorithm catalog once, share it copy-on-write🔵 open, triaged

Bug report — bugs that only exist while something runs

Scanners read source and guess. Vinv drives the service and watches what comes back:

  • drive — every discovered endpoint, exercised with inputs nobody wrote.
  • judge — a 500 is not a finding on its own; the oracle names the status that should have come back.
  • hand over — ships as an evidence pack: repro command, caller chain, real argument values.

On fastapi/full-stack-fastapi-template (~44k★), the authenticated sweep filed discussion #2454 — four endpoints answering 500 to input that should be 4xx, one repro each — then another contributor reproduced all four against master, file-and-line: "checked against master — they're all real."

What Vinv gives your agent

One loop, grouped by what you came to fix. Each capability links to a live walkthrough on the site.

Understand the codebase → vinv.ai/#what-it-does

  • Semantic code search — ask by meaning, get ranked symbols with def bodies and line numbers, embedded by a local model.
  • Code Graph — a persistent map of every symbol and call edge, updated incrementally on save, with a live runtime overlay.
  • Runtime tracing — zero-edit tracing: timing, memory, args, returns, errors, per call, joined to source.
  • Ask Vinv — plain-English questions about your running system, every answer citing the exact trace spans and source lines, with a deterministic critic that blocks any claim the evidence can't back.

Find what actually broke → vinv.ai/#catches

  • Rank suspects — on any failure, symbols ranked by fault-localization score over real pass/fail requests, with the real error messages attached.
  • Behavior exerciser — Vinv doesn't wait for traffic: it drives every discovered endpoint itself, picks strategies with a Thompson-sampling bandit, and banks every response as a permanent regression case.

Clean up dead code → vinv.ai/#what-it-does

  • Dead-code sections — untraced islands split into "no references" vs "reached from live code but never taken," each with the live callers that still point at it and a keep-or-cut verdict with reasoning.

Recover latency → vinv.ai/#what-it-does

  • Recoverable time — latency hotspots ranked by the milliseconds you'd actually get back, each dispatched as a predicted-then-proven optimization instead of a guess.

Trust the fix → vinv.ai/#under-the-hood

  • Verified fixes — replayed start, live port, acceptance tests the agent never sees. One click reverts everything an episode touched.
  • Journey — one walkthrough of everything verified: every service, then every endpoint's call tree, latency flamegraph, and exact inputs → outputs, with a form to add your own test inputs that the engine replays forever.
  • Auto-Pilot — one click drives discover → set up → trace → exercise → fix → verify, until green or budget; when new trace errors land, the fix episode is already dispatched by the time you see the red ring in the graph.
  • Findings — issue clusters, optimization episodes with paired-bootstrap confidence intervals, regression diffs by kind, and a machine-readable findings.json your agent can consume directly.

Honest scope: Python first — services and APIs. Other languages get the index, graph and grounded Q&A, but no runtime evidence yet. TypeScript and Go are next.

Agent alone vs Agent + Vinv

Agent aloneAgent + Vinv
Finding codegreps and guesses filesranked symbols with line numbers, by meaning
"Done"claims it, grades its own homeworkreplayed start, live port, unseen acceptance tests
Memoryforgets every sessionpersistent index + graph, updated on save
Runtimecan't see itreal traces, values, flamegraphs per call
Debuggingreads source, speculatesfault-ranked suspects with real error messages
Dead codecan't tell used from unusednever-executed islands with live callers and a verdict
Bad fixyou diff and prayone-click revert of everything the episode touched
API testingwrites tests it then grades itselfexercises every endpoint, banks each response as an unseen regression case
Perf claims"should be faster now"paired-bootstrap 95% CI must exclude zero, behavior byte-identical, or auto-revert
Costburns tokens re-exploringevidence pack composed once, locally; the bandit learns which composition pays

Why agents can't reward-hack under Vinv

Vinv ties every runtime trace to the exact code that produced it and hands your agent a context graph built from that join — so the agent argues from evidence, not vibes. And when it claims victory, Vinv doesn't take its word:

  • Acceptance tests are authored before the fix, stored outside the workspace under an opaque token, and must fail deterministically twice on the broken code — a test that passes pre-fix is thrown away.
  • A "faster" fix that changes any observable output is auto-reverted — the behavior suite must replay byte-identical and the speedup's paired-bootstrap 95% CI must exclude zero.
  • Deliberate 4xx rejections aren't "errors" to fix — the defect classifier knows a service saying no correctly from a service breaking, so the agent is never handed a fake goal it can only game.
  • When two attempts stop making progress, a Nash-bargaining stall judge continues only if both an explorer stance and an auditor stance strictly prefer it to asking you.

The Test stage isn't one tester — it's a set of oracles, each hunting a different class of defect, all writing into the same findings and fix-dispatch path.

OracleWhat it findsFinding kinds
HTTP exerciserDrives every endpoint itself — schema-valid, boundary, negative, values mined from real traces, multi-step authserver-error · crash · invariant-violation
Differential oracleCompares a handler or evaluator against a reference — for a parser, CPython itself; disagreement is the bug reportdifferential-mismatch
Fault injectionAdversarial-but-legal shapes at a dependency boundary, plus every chunk-split point on a streamfault-crash · fault-divergence
Concurrency oracleDeterministic interleavings and timeout injection — shared state that corrupts under parallel calls, lock orderings that deadlockconcurrency-divergence · concurrency-hang
Environment oracleA dependency-resolution matrix, and upstream symbols whose signature moved under yousignature-drift
Golden I/O baselinesA "faster" change that quietly dropped a field or changed a status classbaseline-degraded
Dead codeUntraced islands with the live callers that still reference themdead sections
Runtime analysisLatency hotspots, memory-leak suspects (Theil–Sen), duplicate recomputation worth caching, throughput ceiling (USL fit)hotspots · leaks · cache candidates · throughput-ceiling

The dispatcher is a bandit. exerciser campaign allocates one budget across every armed oracle by Thompson sampling over (target × technique × oracle). Cost is measured (wall-clock normalized to probe-equivalents plus subprocesses spawned), and credit is paid once per defect signature so a deterministic oracle can't re-earn credit for the same bug. Posteriors persist in campaign.json — which technique pays on your repo is learned.

Unverified code runs behind a containment ladder: a kernel-enforced OS sandbox (sandbox-exec / bwrap / unshare) where the host offers one, otherwise a process shim — always with a disposable repo copy, redirected HOME/TMPDIR, blocked network and subprocess spawning. The tier is decided by a probe that verifies a write outside the root really failed, never by a binary being on PATH. Postgres, Redis and S3 are substituted inside the jail so code that needs them runs instead of failing to connect.

Proven on itself

Vinv's release gate is Vinv — these numbers come from running the loop on this repository:

MetricResult
Index4,036 symbols
Searchfile hit@10 0.90 · symbol MRR 0.51 · p50 81ms
Crash recoveryindexer, embedder, and traced service all kill-tested mid-run
Self-found waste83% duplicate compute found → now cached
Retrieval tuningoff-policy evaluation (doubly-robust, BCa bootstrap) over 800 logged decisions promoted top-k 10 (+0.173, 95% CI [+0.081, +0.317]) and blocked both other candidates
Test suite2,376 tests — 1,575 Python · 801 extension

The full learning walk — reward, propensity, gating math, with file:line for every claim — is docs/learning.md. The test ontology is docs/testing-ontology.md.

Works with your agent

One command (Register Vinv MCP in Agent Tools) writes the servers into every agent it detects:

AgentFix dispatchMCP tools
Claude Code✅✅ auto
Cursor (CLI + chat)✅✅ auto
Codex CLI✅✅ auto
Gemini CLI✅✅ manual
Copilot Chat (VS Code)✅✅ auto
Windsurf Cascade✅✅ auto

Registration is idempotent and never commits secrets. The servers (vinv-index, vinv-runtime, vinv-exercise) launch over stdio via the editor's own runtime.

  • Claude Code — ~/.claude.json, project-local scope. Verify: claude mcp list.
  • Cursor — <repo>/.cursor/mcp.json. Verify: Settings → MCP shows them green.
  • Codex CLI — ~/.codex/config.toml under [mcp_servers.vinv-index] / [mcp_servers.vinv-runtime].
  • Copilot Chat — native VS Code MCP provider (auto), .vscode/mcp.json on older builds.
  • Windsurf Cascade — ~/.codeium/windsurf/mcp_config.json.
  • Gemini CLI — dispatch works out of the box; for MCP tools, add the same stdio servers to ~/.gemini/settings.json.

Your agent is also Vinv's only LLM — every analysis step routes through the coding-agent CLI you already pay for.

vinv-index — your code and the session:

ToolReturns
vinv_queryRanked symbols with paths + a decision id — any by-meaning search, before grep
vinv_feedbackack — reward −1..1 after acting on results; trains retrieval
vinv_session10 actions in one tool — read: trajectory · status · issues · hotspots · memory_trends · cache_candidates; act: fix · run_sweep · set_goal · set_budget

vinv-runtime — the captured runs (read-only, provenance-stamped):

ToolReturns
rank_suspectsFault-ranked symbols over pass/fail requests, real errors attached
values_ofObserved argument/return types, null-rates, ranges
sliceObserved caller chain from request root, values at each frame
coverage_ofWhat ran, how often, ok/error, timing
callers_of / blast_radius / why_did_this_runObserved callers · transitive impact · entry-point paths

vinv-exercise — your agent exercises your service and reports the run back; Vinv grades what came back.

The engines

pip install vinv ships every engine as a console script — or use any one standalone:

EngineCommandWhat it does
exerciserexerciser campaign <repo> --budget NStart here. Coverage-guided API exerciser + oracle swarm; banks a permanent regression suite and reports which technique paid.
tracelenstracelens run -- <cmd>Zero-edit runtime tracer — timings, arguments, return values, call trees.
indexindex query <repo> · index deadcode <repo>Rust semantic code index — search by meaning, plus a source-only dead-code report.
identificationidentification consolidate <repo>Joins traces to source — API surface + call-graph map.
bringupbringup list/start <repo>Brings services up under tracing.
handbookhandbook generate <repo>Renders the codebase-discovery task your agent runs. Prompt-only.
goalgoal create <context>Distills a working context into one standing goal. Prompt-only.
embeddervinv-embedder serveLocal embedding sidecar (granite-embedding-small) — no cloud keys.
contracts(library)lens_contracts — the shared data contract every engine reads and writes.
CommandWhat it does
exerciser campaign <repo> [--base-url URL] [--budget N]Start here. One budget across every armed oracle by Thompson sampling
exerciser plan <repo> [--base-url URL]Per-endpoint input plan (schema + observed + semantic layers)
exerciser run <repo> --base-url URLExecute the plan against the live traced service, coverage-guided
exerciser functions <repo> [--require-tier os-sandbox]Drive entry points and exported functions in process, contained
exerciser differential <repo> [--target M:f --reference cpython-exec]Compare a function against a reference implementation
exerciser faults <repo> [--auto-target M:f]Legal-but-adversarial shapes at a dependency boundary
exerciser concurrency <repo> --target M:fDeterministic schedules + timeout injection
exerciser environment <repo>Dependency-resolution matrix + upstream signature drift
exerciser containmentWhich containment tier this host can actually provide, and why
exerciser throughput-sweep <repo> --base-url URLConcurrency sweep + USL fit → throughput-ceiling opportunities
exerciser regress <repo> --base-url URLReplay the accumulated behavior suite, report diffs by kind
exerciser scorecard <repo>Per-service scorecard: coverage before→after, invariants, issues, latency

Requires identification consolidate first for apis.json, and — for real coverage — a service running under tracelens.

FAQ

Privacy

  • Everything on your machine — per-repo state in .vinv/ (auto-gitignored), per-machine in ~/.vinv/. No account, no API keys, no telemetry — none.
  • One outbound request, and you can read it: a GET of a static JSON file at notices.vinv.ai on activation, for broken-release and security notices only. No query string, no identifiers, nothing uploaded; at most once per 12 hours; disable with vinv.notices.enabled.
  • The only download is the embedding model (Hugging Face, once, ~100 MB); everything else builds from this repo.
  • Traces store bounded summaries, not raw values; sensitive parameter names (password, token, api_key, …) are redacted, never captured.
  • The only LLM Vinv talks to is the coding-agent CLI you configured, through its own auth.

Contributing & license

See CONTRIBUTING.md — uv sync, cargo build in index/, npm install && npm run check in extension/, keep tests/e2e/planted_bug_golden/run.py green. Good first issues are labeled. By taking part you agree to our Code of Conduct; to report a vulnerability, see SECURITY.md. Apache License 2.0 © 2026 VinvAI.

Your agent says it's done. Vinv says prove it.

If Vinv caught something your agent missed — leave a review on Open VSX and ⭐ star this repo.

vinv.ai · What it catches · Open VSX · LinkedIn · support@vinv.ai

将 VinvAI MCP 与多个 AI 模型配合使用

TypingMind 在工作区级别连接 MCP 工具,因此连接 VinvAI 后,您就可以在 TypingMind 中搭配不同的 AI 模型使用,无需为每个模型单独设置。 此 MCP 通过您设备上的 TypingMind MCP 连接器在本地运行。

本地连接器设置指南

如果 MCP 服务器需要访问您电脑上的本地文件、应用或私有资源,请选择此方式。

1

打开 MCP 设置

在 TypingMind 中,依次前往“设置”、“高级设置”和“模型上下文协议”,然后选择“设置连接器”。

  1. 在您的浏览器中打开 TypingMind。
  2. 点击“设置”图标。
  3. 进入“高级设置”。
  4. 打开“模型上下文协议”部分。
  5. 点击“设置连接器”,然后选择“此设备”。
TypingMind MCP 连接器设置界面,已选择“此设备”
2

运行连接器命令

选择“此设备”,从 TypingMind 复制命令并在终端中运行。使用 MCP 时,请保持该进程运行。

  1. 复制 TypingMind 显示的设置命令。
  2. 在 macOS 上打开“终端”,或在 Windows 上打开 Windows Terminal。
  3. 粘贴并运行命令。
  4. 如果终端询问您是否继续,请确认安装软件包。
  5. 使用 MCP 工具时,请勿关闭终端窗口或停止其中的连接器进程。
3

将 VinvAI 添加为服务器

当连接器状态为“就绪”时,点击“编辑服务器”,然后粘贴 MCP 服务器配置。

  1. 等待连接器状态显示为“就绪”。
  2. 点击“编辑服务器”。
  3. 粘贴 VinvAI MCP 服务器配置。
  4. 保存服务器列表。
  5. 如需确认连接器是否仍处于就绪状态,请刷新。
TypingMind MCP 设置界面,显示正在运行的服务器和“编辑服务器”按钮
{
  "mcpServers": {
    "vinvai": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

在不同模型中使用同一连接

保存服务器列表,打开“插件”,启用 VinvAI MCP 工具,然后在 TypingMind 中选择任意受支持的 AI 模型,即可在聊天中使用这些工具,或将其分配给智能体。

  1. 在 TypingMind 中打开“插件”页面。
  2. 启用 VinvAI MCP 工具。
  3. 开始聊天并选择您想使用的 AI 模型。
  4. 在聊天中使用 MCP 工具,或将其分配给 AI 智能体。
  5. 根据需要随时切换到其他 AI 模型,无需重新连接 MCP。
在 TypingMind 聊天中使用已启用的 MCP 工具和选定的 AI 模型
您能使用 VinvAI 帮我完成这项任务吗?
VinvAI
当然,我看过了。
以下是我使用 VinvAI 得到的结果。

常见问题

VinvAI MCP 服务器有什么用途?

VinvAI 是一个 MCP 服务器,可让兼容的 AI 客户端连接外部工具并获取上下文。在 TypingMind 中,只需添加一次此 MCP 服务器,即可在您的 AI 工作区中使用其工具。

可以在 TypingMind 中让多个 AI 模型使用 VinvAI MCP 吗?

可以。TypingMind 在工作区层面连接 MCP 工具,因此您无需为每个模型单独配置 MCP 服务器,就能在 Claude、ChatGPT、Gemini 或您在 TypingMind 中配置的其他 AI 模型中使用 VinvAI。

为什么在 TypingMind 中使用 VinvAI MCP?

TypingMind 将多个 AI 模型、提示词、插件、AI 智能体、API 密钥和 MCP 工具整合到同一个工作区中,是最出色的大语言模型聊天前端之一。连接 VinvAI 后,您可以在偏好的不同模型中使用其 MCP 工具,同时在 TypingMind 中井然有序地管理聊天工作流程。

如何将 VinvAI MCP 连接到 TypingMind?

VinvAI 通过 TypingMind 本地 MCP 连接器运行。当 MCP 服务器需要访问您计算机上的本地文件、桌面应用、命令行工具或私有资源时,这种方式最合适。

VinvAI MCP 在 TypingMind 中提供哪些工具?

VinvAI 提供 MCP 功能,您可以在 TypingMind 的插件页面启用这些功能,然后在聊天中使用,或将其分配给 AI 智能体。

使用 VinvAI MCP 需要向 TypingMind 提供我的 API 密钥吗?

不需要。TypingMind 采用本地优先的设计,让您自行选择模型提供商,并自行管理 API 密钥、提示词和 MCP 配置。如果 VinvAI 需要身份验证,请在创建连接时,为该 MCP 服务器添加所需的请求头、OAuth 设置或本地配置。

相关 MCP 服务器

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇