Borrowing it
Nothing to install: this file belongs to antgroup/vsag. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/antgroup/vsag/main/AGENTS.mdgit clone --depth 1 https://github.com/antgroup/vsagWrote 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.
[](https://agentmods.dev/instructions/antgroup/vsag/agents-md)<a href="https://agentmods.dev/instructions/antgroup/vsag/agents-md"><img src="https://agentmods.dev/badge/instructions/antgroup/vsag/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/instructions/antgroup/vsag/agents-md"><img src="https://agentmods.dev/badge/instructions/antgroup/vsag/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.01525 | $0.01525 |
| Opus 5.5 | $0.00610 | $0.00610 |
| Sonnet 5.5 | $0.00305 | $0.00305 |
| Haiku 4.5 | $0.00153 | $0.00153 |
Grade A, and why
vsag AGENTS.md 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 5d ago.
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.
How it starts
The opening of the file, as written. The whole thing — 113 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md
Read me first. This file is the entry point for AI coding agents working on VSAG. It is intentionally short. The bullets under Hard Constraints must hold for every change; the Documentation Index points at the detailed rules for each topic.
Project Overview
VSAG is a high-performance vector indexing library for similarity search,
written primarily in C++ with Python bindings provided by pyvsag and
Node.js/TypeScript bindings provided by vsag.
Hard Constraints (must hold every change)
- Tool versions are fixed:
clang-formatandclang-tidymust be version 20 exactly. Newer versions are not acceptable; CI enforces this. - Formatting: C++ source and header files use 4-space indentation and a
100-character line limit; Markdown and other non-C++ text files have no line
width limit. Use the
.cpp(not.cc) suffix, and ensure every committed text file ends with a trailing newline. - Layout: public APIs live in
include/vsag/; implementation lives insrc/; keep code in thevsagnamespace unless the file clearly requires otherwise. - Prefer
uint64_toversize_tin code changes to avoid macOS compile issues. - Do not modify
extern/unless the task explicitly requires third-party dependency changes. - Tests: new features need tests; bug fixes need regression coverage; the
C++ library (
src/+include/) must maintain ≥ 90 % unit-test coverage. - Before submitting a PR: run the applicable checks removed from PR CI locally (or in an authorized remote development environment), record results, and follow the pre-submission validation requirements.
- Commits: use Conventional Commits (
feat:,fix:,docs:,chore:, …) and DCO sign-off. AI agents must NOT add their ownSigned-off-by:— only humans can certify the DCO. AI agents must also NOT invokegit commit -s, because-sappendsSigned-off-by:at the end of the message (with a blank line separating it from earlier trailers) and breaks the required ordering. Instead, write both trailers directly in the commit message body: derive the human identity fromgit config user.name/user.email, placeSigned-off-by:first, and follow it immediately (no blank line) withAssisted-by: <AgentName>:<ModelVersion>(e.g.Assisted-by: OpenCode:claude-opus-4.7). For[skip ci], place it at the start of the subject line. - PR pushes: when preparing a pull request, prefer pushing the working
branch to the contributor's fork rather than directly to the main
antgroup/vsagrepository. Push to the main repository only when explicitly required or authorized. - Pull requests need two labels: one
kind/*(kind/bug,kind/feature,kind/improvement,kind/documentation) and oneversion/*(e.g.version/1.0). Mergify enforces both. kind/bug/kind/featurePRs must link an issue in the description using a GitHub auto-closing keyword (Fixes: #N,Closes: #N,Resolves: #N; cross-repo or full issue URL also OK).kind/improvementandkind/documentationPRs are exempt. Enforced by thePR Issue Link CheckAction and a Mergify protection.- Issues do NOT carry
Signed-off-by:— DCO only applies to commits.
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.
- 5d ago Changed · +3 lines · +61 tokens per session 873e5cfd37a1
- 11d ago Changed · +1 lines · +28 tokens per session 788f17ffed98
- 2mo ago First seen · 109 lines · 1,436 tokens per session scan A c79d4d2fc7a3
vsag AGENTS.md is an instructions file published in the GitHub repository antgroup/vsag (516 stars, last pushed today), licensed Apache-2.0. It adds 1,525 tokens to every session, about $0.0061 per session on Opus 5.5. 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.
vsag AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| vsag AGENTS.mdantgroup/vsag | Instructions file | 516 | today | Apache-2.0 | A | 1,525 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | today | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | today | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |