build-and-test

build-and-test is an agent for coding agents from antgroup/vsag. It costs 0 tokens per session (567 once invoked), scanned A, original, Apache-2.0.

Instructions for building and testing VSAG, a C++ vector-indexing library with Python and Node.js/TypeScript bindings.

In plain words
What is it for?
Use them to build the library, run tests, format and lint C++ code, check coverage, create release builds, or build language bindings.
Why use it?
They document the project’s required commands, tool versions, environments, and testing expectations so changes match its continuous-integration checks.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/antgroup/vsag/build-and-test
Clone the repo
git clone --depth 1 https://github.com/antgroup/vsag

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for build-and-test

README.md
[![agentmods](https://agentmods.dev/badge/agents/antgroup/vsag/build-and-test.svg)](https://agentmods.dev/agents/antgroup/vsag/build-and-test)
Your own site
<a href="https://agentmods.dev/agents/antgroup/vsag/build-and-test"><img src="https://agentmods.dev/badge/agents/antgroup/vsag/build-and-test.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 567 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.00567
Opus 5 $0.00000 $0.00283
Sonnet 5 $0.00000 $0.00113
Haiku 4.5 $0.00000 $0.00057

Measured today against content hash eae2c520d5f9, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

build-and-test scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

docs/agents/build-and-test.md · 67 lines

How it starts

The opening of the file, as written. The whole thing — 67 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Build And Test

Preferred commands

make debug
make test
make fmt
make lint
make fix-lint
make cov
make release
make pyvsag

Prefer these targets over invoking cmake directly so behavior matches CI.

Development environment

  • Recommended: use the published Docker development image (vsaglib/vsag:ubuntu).
  • Maintained CI images use the ci-x86-* and ci-aarch64-* tags and are published to both vsaglib/vsag on Docker Hub and ghcr.io/antgroup/vsag on GitHub Container Registry.
  • Supported local environments include Ubuntu 20.04+ and CentOS 7+.
  • Compiler baseline: GCC 9.4.0+ or Clang 13.0.0+.
  • Build baseline: CMake 3.18.0+.

See DEVELOPMENT.md for the full setup walkthrough.

Required tool versions

  • clang-format must be version 15 exactly.
  • clang-tidy must be version 15 exactly.

Do not assume newer versions are acceptable; the repository enforces these versions for consistent formatting and diagnostics. CI will fail otherwise.

Testing expectations

  • New features should include tests.
  • Bug fixes should include regression coverage.
  • Contributions are expected to maintain at least 90% code coverage on the C++ library code (sources under src/ and public headers under include/). make test builds and runs the unit + functional suite but does not enable coverage instrumentation. To produce the coverage report locally use the make cov flow (which configures the build with ENABLE_COVERAGE=ON) followed by running the test binaries and scripts/coverage/collect_cpp_coverage.sh; the equivalent CI coverage workflow enforces the 90% threshold. This threshold is based on the unit-test suite; functional tests under tests/ and Python code are not currently included in the coverage metric unless explicitly documented otherwise.

Read the full file on GitHub · 67 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today First seen · 67 lines · 0 tokens per session scan A eae2c520d5f9

Subscribe to this mod's changes

build-and-test is an agent published in the GitHub repository antgroup/vsag (507 stars, last pushed today), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 567 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.