<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Claude-Code on Vijay Kodam</title><link>https://vijay.eu/tags/claude-code/</link><description>Recent content in Claude-Code on Vijay Kodam</description><generator>Hugo -- gohugo.io</generator><language>en</language><lastBuildDate>Sat, 04 Jul 2026 10:00:00 +0300</lastBuildDate><atom:link href="https://vijay.eu/tags/claude-code/index.xml" rel="self" type="application/rss+xml"/><item><title>model-audit Claude Code SKILL</title><link>https://vijay.eu/projects/model-audit/</link><pubDate>Sat, 04 Jul 2026 10:00:00 +0300</pubDate><guid>https://vijay.eu/projects/model-audit/</guid><description>&lt;p&gt;A Claude Code skill, installable as a plugin, that audits which Claude model handled your sessions. Use it to confirm your coding requests ran on the model you selected (Fable 5, Opus 4.8, and so on) and were not silently served by a different one.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://vijay.eu/images/projects/model-audit.webp" alt="A Claude Code session that runs /model-audit, next to the model-audit table of sessions and the Claude model that answered each one"&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/vijaykodam/model-audit" class="button"&gt;View on GitHub&lt;/a&gt;&lt;/p&gt;
&lt;h2 id="why"&gt;Why&lt;/h2&gt;
&lt;p&gt;Claude Code&amp;rsquo;s built-in commands do not answer &amp;ldquo;which model produced this response?&amp;rdquo;. &lt;code&gt;/usage&lt;/code&gt; shows plan quota, &lt;code&gt;/cost&lt;/code&gt; shows spend, &lt;code&gt;/context&lt;/code&gt; shows tokens — none report model provenance.&lt;/p&gt;
&lt;p&gt;The ground truth is already on your machine. Claude Code writes every session transcript to &lt;code&gt;~/.claude/projects/&lt;/code&gt;, and every assistant message carries a &lt;code&gt;&amp;quot;model&amp;quot;&lt;/code&gt; field with the exact model ID that generated it. model-audit reads that per-message audit trail and rolls it up per session.&lt;/p&gt;
&lt;h2 id="install"&gt;Install&lt;/h2&gt;
&lt;p&gt;As a plugin (recommended):&lt;/p&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;/plugin marketplace add vijaykodam/model-audit
/plugin install model-audit@model-audit
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Or from your shell, outside a session:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;claude plugin marketplace add vijaykodam/model-audit
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;claude plugin install model-audit@model-audit
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Run &lt;code&gt;/reload-plugins&lt;/code&gt; (or restart Claude Code) to activate.&lt;/p&gt;
&lt;h2 id="use"&gt;Use&lt;/h2&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;/model-audit # audit the last 7 days (default)
/model-audit 30 # any number of days
/model-audit all # full session history
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id="example-output"&gt;Example output&lt;/h2&gt;
&lt;pre tabindex="0"&gt;&lt;code&gt;Claude Code sessions active in the last 7 day(s)
LAST ACTIVE PROJECT SESSION MODELS (responses)
2026-07-03 09:47 -vijay-projects-project3 85f5d9a6-ec9f-4dc2-... claude-fable-5(24)
2026-07-02 11:18 -vijay-projects-project1 4a347153-4458-47f8-... claude-fable-5(278)
2026-07-02 07:53 -vijay-projects-project1 1a89419d/agent-ab3a2f9e5caae claude-opus-4-8(21)
2026-06-30 18:06 -vijay-projects-project3 a4b9c607-b1e8-4c92-... claude-opus-4-8(128)
Totals across all sessions:
598 claude-fable-5
504 claude-opus-4-8
51 claude-haiku-4-5-20251001
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Model counts are per response, so a session that changed model mid-way shows both models with their proportions. A silent downgrade shows up as an unexpected model count inside a session you expected to be on one model. Subagents appear as separate rows (the &lt;code&gt;SESSION&lt;/code&gt; looks like &lt;code&gt;1a89419d/agent-...&lt;/code&gt;) — they legitimately run on different models but never handle the main conversation turns.&lt;/p&gt;
&lt;h2 id="notes"&gt;Notes&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Everything runs locally. It is a small shell script reading files on your own machine; nothing is sent over the internet.&lt;/li&gt;
&lt;li&gt;No dependencies beyond standard tools (bash, find, grep, sed, awk). Works on macOS and Linux.&lt;/li&gt;
&lt;li&gt;Apache-2.0 licensed.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;For full documentation and the source, see the &lt;a href="https://github.com/vijaykodam/model-audit"&gt;GitHub repo&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>url-logger Claude Code Plugin</title><link>https://vijay.eu/projects/url-logger/</link><pubDate>Mon, 09 Mar 2026 10:00:00 +0200</pubDate><guid>https://vijay.eu/projects/url-logger/</guid><description>&lt;p&gt;A Claude Code plugin that logs all &lt;code&gt;WebSearch&lt;/code&gt; and &lt;code&gt;WebFetch&lt;/code&gt; URLs to &lt;code&gt;.claude/web-access.log&lt;/code&gt;, with session IDs and timestamps.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://vijay.eu/images/projects/url-logger.webp" alt="A Claude Code session that searches and fetches web pages, next to a terminal that shows the same URLs in the url-logger log file"&gt;&lt;/p&gt;
&lt;h2 id="demo"&gt;Demo&lt;/h2&gt;
&lt;div style="position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;"&gt;
&lt;iframe allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share; fullscreen" loading="eager" referrerpolicy="strict-origin-when-cross-origin" src="https://www.youtube-nocookie.com/embed/uGmm0YHIa2E?autoplay=0&amp;amp;controls=1&amp;amp;end=0&amp;amp;loop=0&amp;amp;mute=0&amp;amp;start=0" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; border:0;" title="Demo of the url-logger Claude Code plugin"&gt;&lt;/iframe&gt;
&lt;/div&gt;
&lt;h2 id="why"&gt;Why&lt;/h2&gt;
&lt;p&gt;When you do research or ask Claude Code CLI to search the Internet, it opens many websites. I wanted a way to log all those URLs in a log file.&lt;/p&gt;
&lt;p&gt;Claude Code has no setting for this. Claude stores session history in JSONL files, which can contain URLs. But those URLs are mixed with a lot of other information, and they are spread across several session files.&lt;/p&gt;
&lt;p&gt;The next option was a hook. But Claude Code&amp;rsquo;s &lt;code&gt;/hookify&lt;/code&gt; cannot write log files; it can only show a warning in the Claude session. This was the perfect use case to build my own hook and publish it as a plugin.&lt;/p&gt;
&lt;h2 id="install"&gt;Install&lt;/h2&gt;
&lt;p&gt;Run these two commands:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#75715e"&gt;# Add the marketplace (one-time)&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;claude plugin marketplace add vijaykodam/url-logger
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;&lt;span style="color:#75715e"&gt;# Install the plugin&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;claude plugin install url-logger
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Restart Claude Code CLI after the install. The plugin starts to work only after the restart.&lt;/p&gt;
&lt;h2 id="log-format"&gt;Log format&lt;/h2&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;[2026-03-07T14:23:01Z] session=abc123 tool=WebSearch query=&amp;#34;claude code plugins&amp;#34;
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;[2026-03-07T14:23:05Z] session=abc123 tool=WebFetch url=&amp;#34;https://example.com/docs&amp;#34;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;By default, the plugin writes the log to &lt;code&gt;.claude/web-access.log&lt;/code&gt; in your working directory. To use one log for all projects, set &lt;code&gt;URL_LOGGER_PATH&lt;/code&gt;:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;export URL_LOGGER_PATH&lt;span style="color:#f92672"&gt;=&lt;/span&gt;~/.claude/web-access.log
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The plugin uses a Claude Code &lt;code&gt;PreToolUse&lt;/code&gt; hook. It works only in Claude Code CLI, not in Claude.ai or the Claude Desktop app.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/vijaykodam/url-logger" class="button"&gt;View on GitHub&lt;/a&gt;&lt;/p&gt;</description></item></channel></rss>