Version-Sentinel AGENTS.md

Dependency-checking instructions for Version Sentinel, a guardrail that verifies package versions against their upstream registries before changes are made. A dependency is an external package a project relies on.

In plain words
What is it for?
Use them when changing dependencies in npm, Python, Rust, or .NET project manifests, including recording the checked version and handling blocked changes.
Why use it?
They prevent stale, invented, or potentially compromised versions from being added, upgraded, downgraded, or installed without a recorded source check.

Instructions file for CodexOpenCode

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 instructions/ksegit/version-sentinel/agents-md
Clone the repo
git clone --depth 1 https://github.com/KSEGIT/Version-Sentinel

Made for: Codex, OpenCode.

Per session 1,027 This file is loaded in full into every session.
When invoked 1,027 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.01027 $0.01027
Opus 5 $0.00513 $0.00513
Sonnet 5 $0.00205 $0.00205
Haiku 4.5 $0.00103 $0.00103

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

Security

Grade A, and why

Version-Sentinel 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 yesterday.

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 · 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.

Version Sentinel — Cross-Agent Instructions

Version Sentinel is a guardrail that prevents stale, hallucinated, or compromised dependency versions from reaching your manifests. Before any dependency is added, bumped, downgraded, or installed, the agent must verify the intended version against its upstream registry and record that check. Checks are stored in .version-sentinel/checks.json and expire after a freshness window (default 24h).

Required workflow when a dependency change is blocked

If a hook blocks an edit or install (exit 2, BLOCKED: version-sentinel), or if you are about to change any dependency on a platform without hooks:

  1. Look up the latest version on the upstream registry via web search or fetch:

    • npm: https://www.npmjs.com/package/<pkg>
    • pip / pyproject: https://pypi.org/project/<pkg>/
    • cargo: https://crates.io/crates/<pkg>
    • csproj (NuGet): https://www.nuget.org/packages/<pkg>
  2. Record the check:

    bash scripts/vs-record.sh <ecosystem> <pkg> <version> <source-url-or-intentional:reason>
    

    The source must be an http(s):// URL you actually consulted, or intentional:<reason> for deliberate pins (e.g. CVE lock, compatibility). Example:

    bash scripts/vs-record.sh npm lodash 4.17.21 https://www.npmjs.com/package/lodash
    bash scripts/vs-record.sh csproj Serilog 3.1.1 "intentional: CVE lock pending audit"
    
  3. Retry the edit or install. With a fresh entry on record, the hook (where present) lets the operation through.

Never fabricate a source URL you did not actually consult, and never bypass the record step to force a dependency change through.

Audit

bash scripts/check-versions.sh

Scans manifests within 4 directory levels of the current directory, compares each dependency against its upstream registry, and reports drift. Intentional pins show as intentional-pin, not DRIFT. Run before tagging a release.

Supported manifests

package.json (npm/pnpm/yarn/bun), requirements*.txt, constraints*.txt, pyproject.toml (pip, Poetry, uv), Cargo.toml, and *.csproj / *.fsproj / *.vbproj (NuGet).

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. yesterday First seen · 67 lines · 1,027 tokens per session scan A 21d968db1eba

Subscribe to this mod's changes

Version-Sentinel AGENTS.md is an instructions file published in the GitHub repository KSEGIT/Version-Sentinel (3 stars, last pushed 2d ago), licensed MIT. It adds 1,027 tokens to every session, about $0.0051 per session on Opus 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-08-31.