vet: Instructions file for Codex

AGENTS.md

vet AGENTS.md is an instructions file for Codex, OpenCode from safedep/vet. It costs 2,280 tokens per session, scanned A, original, Apache-2.0.

Repository instructions for working on safedep/vet, including build, test, formatting, generated-file, documentation, and commit rules. AGENTS.md is a file that tells coding agents how a project should be changed.

In plain words
What is it for?
Use it when changing vet code, commands, documentation, tests, or generated golden files, especially before pushing a change.
Why use it?
It reduces errors such as skipping the required checks, changing generated files incorrectly, or adding code without first finding the project's existing conventions.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

This is safedep/vet's own configuration. It tells Codex and OpenCode how to work on vet itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything vet configures →

About the project

vet is a software supply-chain security tool that examines open-source packages for malware, vulnerabilities, license issues, and policy violations. Developers use it to scan package manifests, repositories, container images, or SBOMs and to enforce security policies in CI/CD systems.

safedep/vet · 1,126 stars · on GitHub · safedep.io

Reuse

Borrowing it

Nothing to install: this file belongs to safedep/vet. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/safedep/vet/v2/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/safedep/vet

Made for: Codex, OpenCode.

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 vet AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/safedep/vet/agents-md/github.svg)](https://agentmods.dev/instructions/safedep/vet/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/safedep/vet/agents-md"><img src="https://agentmods.dev/badge/instructions/safedep/vet/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.

agentmods 80×15 button for vet AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/safedep/vet/agents-md"><img src="https://agentmods.dev/badge/instructions/safedep/vet/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,280 This file is loaded in full into every session.
When invoked 2,280 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original 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.1 $0.02280 $0.02280
Opus 5.5 $0.00912 $0.00912
Sonnet 5.5 $0.00456 $0.00456
Haiku 4.5 $0.00228 $0.00228

Measured 3d ago against content hash ff5e557071a8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

vet 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 3d 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.

AGENTS.md · 129 lines

How it starts

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

AGENTS.md

This file gives guidance to AI coding agents that work on vet. .claude/CLAUDE.md imports it, so Claude Code loads it. Git ignores a CLAUDE.md at the root.

Build and test

make check     # the gate before a push: build, vet for each OS, tests, lint, hermetic acceptance
make fmt       # format with the gci and gofumpt rules of the lint
make golden    # rewrite the golden files and the report schemas, then read the diff
go test ./internal/engine/ -run TestName -count=1   # one test
  • Run make check before each push. CI runs the same steps.
  • make check lints only the lines that changed since origin/v2. Set LINT_BASE for another base.
  • make golden sets UPDATE_GOLDEN=1 and UPDATE_SCHEMA=1. Commit a golden change only when the output change is the purpose of the commit.
  • The acceptance suite runs the real binary against an in-process stub, with no network. It needs the build tag: go test -tags acceptance ./test/acceptance/ -run TestAcceptance/scan/output.
  • A bug fix needs a test that fails without the fix. Run the test against the old code before you commit.

Find what exists before you write it

Read docs/glossary.md before you name a thing. It names each concept of vet and the code that owns it. Use its term and its type. Do not add a second word or a second type for a concept that it lists. When a change adds a concept, or overrules a term, update the glossary in the same pull request.

vet and dry already have most of the parts that a change needs. Search before you add a type, a helper or a list. Each row is the one place for its concern.

Concern Use
Terminal output: messages, tables, panels, progress, prompts, banner internal/tui/..., which wraps dry/tui. Look in dry/tui first for a missing part.
A report or data output that needs a mode-aware drawing: the table format, a printer table, a list on stdout internal/tui/page, with the mode from output.DataMode. A file or a pipe gets ASCII while stderr is rich.
Stderr view of a scan: steps, diagnostics, gate line internal/view
What a person sees first in a report: findings in order, diagnostics, what a change adds internal/overview. The view and the sinks read it.
Stdout data in the -o format internal/tui/printer
Untrusted text on a terminal (package names, paths from a repository) internal/tui/escape
Log lines of vet and of its libraries github.com/safedep/dry/log. app.InitLog sends them to stderr with --debug and to a file with --log. Do not write to the standard log package.
The list of built-in plugins with a config section internal/plugins/builtin. Do not list plugins by hand.
The extractor set of a scan, declared and installed packages internal/plugins/extractors (For), with internal/plugins/extractors/installed
Control plugins, report formats internal/plugins/controls, internal/plugins/sinks
Attack techniques, their MITRE ATT&CK ids and corpus groups internal/technique. An attack control names its technique in plugin.ControlInfo.Technique.
Enrichers and their cache settings internal/plugins/enrichers
The JSON Schema of plugin options internal/plugins/internal/optschema
Config: struct, defaults, layers, validation, lockdown internal/config
Global flags, exit codes, usage errors internal/app
Scan state, scan files, enrichment cache internal/state
Wiring of one scan from the config internal/runner
A path pattern of scan.exclude or of a policy suppression internal/pathglob
A token in a git URL git.Redact in internal/plugins/sources/git
GitHub token and client internal/github
The GitHub Actions lockfile, .github/workflows/actions.lock internal/github/actionslock, which wraps the parser of GitHub
The CI platform and the change that it builds, the adapters that write to it, and the setup files of vet ci internal/ci
Package identity: compare, key, order, PURL and the wire form of a package version model.PackageVersion. It wraps the dry/api/pb rules.
SPDX license expressions: parse, compare, allow and deny, the OSI and FSF sets internal/spdxlicense, which wraps dry/policy/spdxlicense. Do not import the dry package from another package.
Source code: parse, walk, and what a JavaScript name or call stands for safedep/code (parser.ParseBytes, pkg/ts, lang/ecmascript), only from internal/plugins/enrichers/codeusage and internal/plugins/internal/hiddencode. Do not import a tree-sitter grammar.
Report types and the JSON Schema of the report report
Golden file comparison in tests internal/golden
Sample report for sink and view tests plugin/plugintest

Read the full file on GitHub · 129 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. 3d ago Changed · +5 lines · +136 tokens per session ff5e557071a8
  2. 12d ago Changed · +1 lines · +30 tokens per session d2614f39415d
  3. 22d ago Changed · +8 tokens per session 5b801fe3919a
  4. 1mo ago Changed · +1 lines · +61 tokens per session 454c30d10c99
  5. 1mo ago Changed · +7 lines · +208 tokens per session e14b75dd6a09
  6. 1mo ago Changed · +2 lines · +45 tokens per session eb12547e1193
  7. 1mo ago First seen · 113 lines · 1,792 tokens per session scan A 7cf73b2d9584

Subscribe to this mod's changes

vet AGENTS.md is an instructions file published in the GitHub repository safedep/vet (1,126 stars, last pushed yesterday), licensed Apache-2.0. It adds 2,280 tokens to every session, about $0.0091 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-10-10.

Related

vet AGENTS.md compared with instructions from other repositories

vet AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
vet AGENTS.mdsafedep/vetInstructions file1.1kyesterdayApache-2.0A2,280Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA9,887GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file144ktodayMITA7,230Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA5,685GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file150ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA3,303GitHub Copilot
deno copilot-instructions.mddenoland/denoInstructions file109kyesterdayMITA3,077GitHub Copilot