coding-standards

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

Agent "coding-standards" from antgroup/vsag, covering coding standards, formatting, code layout, what to optimize for and common code patterns.

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/coding-standards
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 coding-standards

README.md
[![agentmods](https://agentmods.dev/badge/agents/antgroup/vsag/coding-standards.svg)](https://agentmods.dev/agents/antgroup/vsag/coding-standards)
Your own site
<a href="https://agentmods.dev/agents/antgroup/vsag/coding-standards"><img src="https://agentmods.dev/badge/agents/antgroup/vsag/coding-standards.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 466 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.00466
Opus 5 $0.00000 $0.00233
Sonnet 5 $0.00000 $0.00093
Haiku 4.5 $0.00000 $0.00047

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

Security

Grade A, and why

coding-standards 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/coding-standards.md · 56 lines

How it starts

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

Coding Standards

Follow the Google C++ Style Guide with the project-specific rules below.

Formatting

  • Use 4-space indentation in C++ source and header files.
  • Use .cpp instead of .cc
  • Keep C++ source and header files within a 100-character line limit.
  • Do not impose the C++ line limit on Markdown or other non-C++ text files.
  • Ensure committed text files end with a trailing newline

Code layout

  • Keep public APIs in include/vsag/.
  • Keep implementation in src/.
  • Place tests near the code they validate when appropriate.
  • Add or update Doxygen comments for public APIs.
  • Keep code in the vsag namespace unless the file clearly requires otherwise.

What to optimize for

  • Preserve API compatibility unless a breaking change is explicitly intended.
  • Keep performance in mind for hot paths, memory layout, and parallel code.
  • Follow existing project structure and naming before introducing new patterns.
  • Prefer minimal, targeted changes over broad refactors.

Common code patterns

  • Builder-style chained APIs are common.
  • std::shared_ptr<T> is used widely in public interfaces.
  • Prefer existing error-handling/result patterns used in the surrounding code.
  • Prefer uint64_t over size_t in code changes to avoid potential macOS compile issues.

Things to avoid

  • Avoid changing files under extern/ unless the task explicitly requires third-party dependency changes.
  • Be careful with performance-sensitive code and cross-platform behavior.
  • If changing build logic or dependencies, document the rationale clearly.

Read the full file on GitHub · 56 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 · 56 lines · 0 tokens per session scan A 5095cc1e1608

Subscribe to this mod's changes

coding-standards 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 466 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.