<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Cli on Vijay Kodam</title><link>https://vijay.eu/tags/cli/</link><description>Recent content in Cli 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/cli/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>OpenClaw Skill for Finland's Helmet Library</title><link>https://vijay.eu/projects/helmet/</link><pubDate>Sun, 12 Apr 2026 10:00:00 +0300</pubDate><guid>https://vijay.eu/projects/helmet/</guid><description>&lt;p&gt;An OpenClaw SKILL for the Finnish public library Helmet (Helsinki Metropolitan Area libraries). With it, you can ask your OpenClaw agent from WhatsApp: &amp;ldquo;Is anything overdue for the kids at the library?&amp;rdquo; or &amp;ldquo;Place a hold on AI Engineering by Chip Huyen&amp;rdquo;.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://vijay.eu/images/projects/helmet.webp" alt="A WhatsApp chat with the OpenClaw agent about overdue library loans, next to the Helmet CLI commands that answer it"&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/9fbVeMAD6SA?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 Helmet OpenClaw skill"&gt;&lt;/iframe&gt;
&lt;/div&gt;
&lt;h2 id="why"&gt;Why&lt;/h2&gt;
&lt;p&gt;I had recently set up OpenClaw and wanted it to simplify my daily life. My kids and I read a lot of books, and we borrow them from Helmet.&lt;/p&gt;
&lt;p&gt;Helmet had no CLI or API to manage your library account. It has an open API to search books, but nothing for loans, holds, or fines. So I built the Helmet CLI first, and then a SKILL so that my OpenClaw agent can use it.&lt;/p&gt;
&lt;h2 id="what-the-cli-does"&gt;What the CLI does&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Check loans, and renew one item or all renewable items.&lt;/li&gt;
&lt;li&gt;List, place, and cancel holds, with pickup deadline and queue position.&lt;/li&gt;
&lt;li&gt;Show fines and a full account summary.&lt;/li&gt;
&lt;li&gt;Search the Helmet catalog without a login.&lt;/li&gt;
&lt;li&gt;Keep several library cards as profiles, so one command can cover the whole family.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Every command accepts &lt;code&gt;--json&lt;/code&gt;, which makes the output easy for an agent to read.&lt;/p&gt;
&lt;h2 id="install"&gt;Install&lt;/h2&gt;
&lt;p&gt;Install the CLI from npm, then save a library card:&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;npm install -g @helmet-ai/helmet
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;helmet login
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Install the SKILL from &lt;a href="https://clawhub.ai/vijaykodam/helmet"&gt;ClawHub&lt;/a&gt;, or with the &lt;code&gt;skills&lt;/code&gt; CLI:&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;npx skills add vijaykodam/helmet
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;a href="https://github.com/vijaykodam/helmet" class="button"&gt;View on GitHub&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>