<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: DanyITnerd</title>
    <description>The latest articles on DEV Community by DanyITnerd (@ksegit).</description>
    <link>https://dev.to/ksegit</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3901206%2F1bfecbc8-6d95-4251-9f55-05329ad1c09a.png</url>
      <title>DEV Community: DanyITnerd</title>
      <link>https://dev.to/ksegit</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ksegit"/>
    <language>en</language>
    <item>
      <title>I Built a Claude Code Plugin That Blocks Hallucinated Package Versions</title>
      <dc:creator>DanyITnerd</dc:creator>
      <pubDate>Mon, 27 Apr 2026 21:02:13 +0000</pubDate>
      <link>https://dev.to/ksegit/i-built-a-claude-code-plugin-that-blocks-hallucinated-package-versions-55mg</link>
      <guid>https://dev.to/ksegit/i-built-a-claude-code-plugin-that-blocks-hallucinated-package-versions-55mg</guid>
      <description>&lt;h2&gt;
  
  
  The Problem
&lt;/h2&gt;

&lt;p&gt;If you use Claude Code (Anthropic's CLI coding agent), you've probably seen it do things like:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npm &lt;span class="nb"&gt;install &lt;/span&gt;lodash@4.17.21
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;...when the latest version is actually different, or worse — install a version that doesn't even exist on the registry. Claude hallucinates package versions just like it hallucinates everything else.&lt;/p&gt;

&lt;p&gt;This is a supply-chain risk. You end up with outdated deps, missing security patches, or broken installs.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Solution: Version Sentinel
&lt;/h2&gt;

&lt;p&gt;I built &lt;strong&gt;Version Sentinel&lt;/strong&gt; — a Claude Code plugin that uses the hook system to hard-block any dependency change until you've verified the version is real and current.&lt;/p&gt;

&lt;h3&gt;
  
  
  How it works
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;PreToolUse hooks&lt;/strong&gt; intercept edits to manifest files (&lt;code&gt;package.json&lt;/code&gt;, &lt;code&gt;requirements.txt&lt;/code&gt;, &lt;code&gt;pyproject.toml&lt;/code&gt;, &lt;code&gt;Cargo.toml&lt;/code&gt;, &lt;code&gt;*.csproj&lt;/code&gt;) and install commands (&lt;code&gt;npm install&lt;/code&gt;, &lt;code&gt;pip install&lt;/code&gt;, &lt;code&gt;cargo add&lt;/code&gt;, &lt;code&gt;dotnet add&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;If no fresh version check exists → &lt;strong&gt;action is blocked&lt;/strong&gt; (exit code 2)&lt;/li&gt;
&lt;li&gt;You run WebSearch to verify the latest version, then &lt;code&gt;/vs-record&lt;/code&gt; to log it&lt;/li&gt;
&lt;li&gt;Claude retries and the action goes through&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;PostToolUse hooks&lt;/strong&gt; auto-record successful installs so verified packages stay unblocked&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Supported ecosystems
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Ecosystem&lt;/th&gt;
&lt;th&gt;Manifest&lt;/th&gt;
&lt;th&gt;Registry&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;npm&lt;/td&gt;
&lt;td&gt;&lt;code&gt;package.json&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;registry.npmjs.org&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;pip&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;requirements*.txt&lt;/code&gt;, &lt;code&gt;pyproject.toml&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;pypi.org&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cargo&lt;/td&gt;
&lt;td&gt;&lt;code&gt;Cargo.toml&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;crates.io&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;.NET&lt;/td&gt;
&lt;td&gt;&lt;code&gt;*.csproj&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;api.nuget.org&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  Bonus: &lt;code&gt;/check-versions&lt;/code&gt;
&lt;/h3&gt;

&lt;p&gt;Audits ALL dependencies in your project against upstream registries. Reports drift without blocking — shows you which deps are outdated and which are intentionally pinned.&lt;/p&gt;

&lt;h2&gt;
  
  
  Install
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;claude plugin add KSEGIT/Version-Sentinel
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Links
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;GitHub:&lt;/strong&gt; &lt;a href="https://github.com/KSEGIT/Version-Sentinel" rel="noopener noreferrer"&gt;KSEGIT/Version-Sentinel&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;License:&lt;/strong&gt; MIT&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Prerequisites:&lt;/strong&gt; bash, jq, curl, python3&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;This is my first Claude Code plugin. Would love feedback — especially if you've run into the same version hallucination problem. What other guardrails would be useful?&lt;/p&gt;

</description>
      <category>claudecode</category>
      <category>ai</category>
    </item>
  </channel>
</rss>
