Coding agents can remember an old package version or suggest one that does not exist. If the agent changes a manifest, that guess becomes a dependency decision. Version-Sentinel adds a registry check and a source record to that workflow.
Check before changing
The Claude Code integration uses a PreToolUse hook to inspect supported
dependency edits and install commands. If a package addition, upgrade or
downgrade lacks a fresh version record, the hook rejects that tool call.
The agent must verify the version, record the evidence and retry.
For example, recording a checked npm version uses the ecosystem, package, version and source URL:
/vs-record npm zod 4.4.3 https://www.npmjs.com/package/zodThat example records a particular version; it does not assert that the version is the latest. The recorder checks canonical registry metadata. A deliberately older pin needs an explicit reason as well.
Why a blocking hook helps
A hook can catch an unchecked decision before a supported edit lands. The record also gives reviewers a package, version, source and timestamp to inspect. This is a process check: it does not prove that the package is safe or that the dependency change is correct.
The boundary matters. This is not a complete sandbox for arbitrary file writes, and its registry checks do not replace vulnerability scanning or code review.
Shared scripts, different hosts
The project now includes adapters for Claude Code, Kimi Code, Gemini CLI, GitHub Copilot and Codex. They share scripts and state, with different hook and command wiring. Zed uses instructions and static permissions; without hooks, enforcement there remains best-effort.
The supported public registries are npm, PyPI, Cargo and NuGet. Poetry and uv are covered through Python manifests. Local paths, git sources and workspace dependencies are outside registry version checks.
Keeping deliberate choices possible
A fresh check does not require upgrading to the newest version. Teams can retain an older pin when they record the reason. When an online registry check fails, the tool cannot establish that version evidence; the workflow needs a successful check before continuing supported dependency work.