SuperAPI AI Directory

Veris

Behavioral verification for TS/JS repos: builds a behavioral graph, clusters workflows, detects drift and generates adversarial probes with risk scores.

Open website

About this tool

Veris (Latin, meaning "truth") is a behavioral diff analysis tool for AI-written code, primarily aimed at TypeScript and JavaScript repositories. It is designed to answer two questions that a line-level diff cannot answer: which behaviors changed, and whether those changes were actually inspected. According to public research, about 65% of agent-written PRs have no coverage at all for their own changed lines. Veris never executes code—no tests, sandbox, or runtime. It reads, models, and tells the agent which behaviors are at risk and what evidence is available.

Main capabilities:

  • Behavioral diff analysis: builds a behavior graph, identifies behavioral changes and their blast radius, rather than merely listing changed lines.
  • Workflow clustering: classifies code into workflow labels through weighted keyword voting over directory names, imports, and symbol names.
  • Drift detection: detects behavioral drift across runs, tracking changes where the same name has had its internal logic rewritten.
  • Adversarial probing: provides a curated probe library covering real failure modes (such as idempotency and replay attacks), selected by domain, with risk scores.
  • Evidence chain: records use hash-chained append-only storage; a later pass does not overwrite an earlier failure, directly editing the database breaks the chain, and verifyEvidenceChain() can report the specific location.
  • Call graph resolution: every edge declares determinism, marked as resolved or ambiguous. Ambiguous calls do not get an edge drawn, avoiding guesses.
  • Reporting of uncertainty: Veris reports not only what it found, but also what it could not determine, and clearly marks it.

How to use:

  • As an MCP server: add a config block, restart the client, and enable 17 tools in Claude Code, Cursor, or any MCP-compatible agent.
  • Requires a git repository with real history. Veris diffs against the merge base of the base reference. If a merge base cannot be established, it fails and explains why. In CI, fetch-depth: 0 must be set.
  • On npm 12, running history requires an extra line of configuration: npm 12 does not run dependency install scripts by default, so better-sqlite3 will not fetch prebuilt bindings. You need to add an allowlist in package.json and run npm rebuild better-sqlite3. veris-core doctor reports the current mode.
  • Zero retentionMode: set VERIS_STATE_DISABLED=1.
  • Plugins are off by default; enable them with --allow-plugins, and the path and SHA-256 of each plugin are printed before running. No sandbox.

Applicable scenarios:

  • After an AI agent writes code, it needs to quickly understand behavioral changes and verification coverage.
  • Before code review, the agent proactively queries risky behaviors.
  • Integrate behavioral drift detection into CI processes.
  • Behavioral verification in a local development environment.

Limitations:

  • Supports only TypeScript and JavaScript; Python and Go are on the roadmap.
  • Workflows are labels, not paths: classification is based on keyword voting and does not traverse the call graph, so rate-limiting code that imports Redis may be classified under caching.
  • Coverage is not a guarantee: it measures the proportion of planned verification that is backed by evidence; it is not calibrated against real incidents and does not estimate the probability that the code is correct.
  • Risk is heuristic: used for ranking, not a defect predictor, with no real benchmark.
  • Probes are a manually written curated library, not generated from code.
  • Some calls cannot be resolved: dynamic dispatch and untyped JS cause the checker to fail; these produce no edges, and a count is shown in the output.
  • Upgrading from 2.x to 3.0 has breaking changes; refer to UPGRADING.md.