<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <link href="https://gwenneg.com/feed.xml" rel="self" type="application/atom+xml"/>
  <link href="https://gwenneg.com/" rel="alternate" type="text/html"/>
  <updated>2026-09-21T00:00:00+02:00</updated>
  <id>https://gwenneg.github.io/feed.xml</id>
  <title type="html">Gwenneg’s blog</title>
  <subtitle>Practical lessons from what I build and learn as a software engineer, with a strong focus on AI these days.</subtitle>
  <author><name>Gwenneg Lepage</name></author>
  <entry>
    <title type="html">Let the routine MintMaker PRs merge themselves</title>
    <link href="https://gwenneg.com/2026/09/21/let-the-routine-mintmaker-prs-merge-themselves.html" rel="alternate" type="text/html" title="Let the routine MintMaker PRs merge themselves"/>
    <published>2026-09-21T00:00:00+02:00</published>
    <updated>2026-09-21T00:00:00+02:00</updated>
    <id>https://gwenneg.github.io/2026/09/21/let-the-routine-mintmaker-prs-merge-themselves</id>
    <content type="html" xml:base="https://gwenneg.com/2026/09/21/let-the-routine-mintmaker-prs-merge-themselves.html">&lt;aside class=&#34;adm adm-note&#34; data-pagefind-ignore&gt;&lt;div class=&#34;adm-label&#34; data-pagefind-ignore&gt;NOTE&lt;/div&gt;&lt;p&gt;This post was written with the help of AI.&lt;/p&gt;&lt;/aside&gt;&lt;p&gt;If your repository is onboarded in &lt;a href=&#34;https://konflux-ci.dev/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Konflux&lt;/a&gt;, the open source software factory that builds and releases container images, &lt;a href=&#34;https://github.com/konflux-ci/mintmaker&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;MintMaker&lt;/a&gt;, a service built on top of &lt;a href=&#34;https://github.com/renovatebot/renovate&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Renovate&lt;/a&gt;, opens a pull request for every dependency update.&#xA;Reviewing and approving each PR takes time, and until someone does, the update waits, security fixes included.&lt;/p&gt;&#xA;&lt;p&gt;It does not have to be that way.&#xA;Renovate can merge a PR on its own, under conditions you choose.&#xA;The challenge is to automate the merges without giving up security or stability, and it comes down to a series of decisions: which updates may merge on their own and which ones stay out, on which days a merge may happen, which checks gate it, and whether GitHub Actions and base images get pinned to a SHA or a digest first.&lt;/p&gt;&#xA;&lt;p&gt;I built &lt;a href=&#34;https://github.com/gwenneg/mintmaker-automerge&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;MintMaker Automerge&lt;/a&gt;, a Claude Code plugin, to help you make those decisions in about twenty minutes.&#xA;It guides you through the decisions one at a time, with a recommended answer and a short explanation of what is at stake, so you end up understanding the config as well as owning it.&#xA;This post explains what the plugin does, why it is safe, and how to try it.&lt;/p&gt;&#xA;&lt;aside class=&#34;adm adm-tip&#34;&gt;&lt;div class=&#34;adm-label&#34; data-pagefind-ignore&gt;TIP&lt;/div&gt;&lt;p&gt;In a hurry? The &lt;a href=&#34;#try-it&#34;&gt;Try it&lt;/a&gt; section has the install commands, and the run explains itself as it goes.&lt;/p&gt;&lt;/aside&gt;&lt;aside class=&#34;adm adm-important&#34;&gt;&lt;div class=&#34;adm-label&#34; data-pagefind-ignore&gt;IMPORTANT&lt;/div&gt;&lt;p&gt;This plugin only works on a GitHub repository onboarded in Konflux, the only place MintMaker runs, and refuses to run on a repository that is not onboarded.&lt;/p&gt;&lt;/aside&gt;&lt;h2 id=&#34;what-a-run-looks-like&#34;&gt;What a run looks like&lt;/h2&gt;&#xA;&lt;p&gt;Open Claude Code in the repository where you want to enable automerge, and run:&lt;/p&gt;&#xA;&lt;figure class=&#34;code&#34; data-pagefind-weight=&#34;0.5&#34;&gt;&#xA;  &lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;/mintmaker-automerge:setup&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/figure&gt;&#xA;&lt;p&gt;A read-only script scans the repository, and then fourteen short steps ask a few questions each, with a recommended answer for all but one of them.&lt;/p&gt;&#xA;&lt;figure class=&#34;shot&#34;&gt;&lt;img src=&#34;/assets/images/posts/let-the-routine-mintmaker-prs-merge-themselves/what-a-run-looks-like.png&#34; alt=&#34;What a run looks like&#34; width=&#34;1722&#34; height=&#34;1837&#34; loading=&#34;lazy&#34; decoding=&#34;async&#34;&gt;&#xA;&lt;/figure&gt;&lt;p&gt;Nothing is written on disk before you approve the summary.&#xA;Nothing is pushed before you approve the pull request.&#xA;The GitHub requirements for automerge are explained, checked when the GitHub CLI, &lt;code&gt;gh&lt;/code&gt;, is logged in, and never changed by the plugin.&#xA;Automerge is a trust decision, and every choice that matters stays yours.&lt;/p&gt;&#xA;&lt;p&gt;Every step also teaches: a note explains what the choice changes, in Renovate, in GitHub or in Konflux, and asking &lt;code&gt;why&lt;/code&gt; in the session gets a longer explanation.&lt;/p&gt;&#xA;&lt;figure class=&#34;shot bordered titled&#34;&gt;&lt;figcaption&gt;The tip shown at the Konflux app exemption and auto-merge step&lt;/figcaption&gt;&lt;img src=&#34;/assets/images/posts/let-the-routine-mintmaker-prs-merge-themselves/tip.png&#34; alt=&#34;The tip of the Konflux app exemption and auto-merge step&#34; width=&#34;1724&#34; height=&#34;150&#34; loading=&#34;lazy&#34; decoding=&#34;async&#34;&gt;&#xA;&lt;/figure&gt;&lt;p&gt;This post does not walk through the steps: the run explains them better than this post can, one screen at a time.&#xA;The sections below cover what a run cannot show: the reasoning behind the design.&lt;/p&gt;&#xA;&lt;h2 id=&#34;one-reviewer-per-kind-of-bump&#34;&gt;One reviewer per kind of bump&lt;/h2&gt;&#xA;&lt;p&gt;Human review of MintMaker&amp;rsquo;s PRs, one per dependency bump, is expensive and slow, and it stops scaling as soon as several repositories are onboarded in Konflux.&#xA;Delegating the reviews to an AI is tempting, but it costs tokens on every PR, and a routine one is not worth that cost.&#xA;The third option is to let Renovate rules decide: they cost one decision, the one this plugin helps you make, and nothing per PR after that, but they cannot handle the more complex bumps.&lt;/p&gt;&#xA;&lt;p&gt;None of the three options works well for every bump.&#xA;Combined, they can each take the kind of bump they handle best:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Renovate rules for the routine bumps, which merge without anyone watching.&lt;/li&gt;&#xA;&lt;li&gt;An AI review for the bumps a rule cannot express, such as a framework that must stay on a long-term support (LTS) version, or an upgrade that comes with a migration guide to apply.&lt;/li&gt;&#xA;&lt;li&gt;A human for the riskiest bumps, and for the ones too complex for an AI.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;The plugin sets up the Renovate rules.&#xA;The AI review is future work, described in &lt;a href=&#34;#whats-next&#34;&gt;What&amp;rsquo;s next&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;h2 id=&#34;what-lands-in-the-repository&#34;&gt;What lands in the repository&lt;/h2&gt;&#xA;&lt;p&gt;This is the &lt;code&gt;renovate.jsonc&lt;/code&gt; file a run writes at the root of the repo for a Quarkus service with an npm frontend, Dockerfiles on Red Hat&amp;rsquo;s UBI base images, and a CI workflow using &lt;code&gt;actions/checkout&lt;/code&gt; and &lt;code&gt;actions/setup-java&lt;/code&gt;, trimmed and stripped of its comments:&lt;/p&gt;&#xA;&lt;figure class=&#34;code&#34; data-pagefind-weight=&#34;0.5&#34;&gt;&#xA;  &lt;p&gt;&lt;strong&gt;renovate.jsonc&lt;/strong&gt;&lt;/p&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-json&#34; data-lang=&#34;json&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;p&#34;&gt;{&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nt&#34;&gt;&amp;#34;$schema&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;https://docs.renovatebot.com/renovate-schema.json&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nt&#34;&gt;&amp;#34;extends&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;[&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;helpers:pinGitHubActionDigests&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;],&lt;/span&gt; (1)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nt&#34;&gt;&amp;#34;platformAutomerge&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;kc&#34;&gt;true&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt; (2)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nt&#34;&gt;&amp;#34;tekton&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;{&lt;/span&gt; (3)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;nt&#34;&gt;&amp;#34;automerge&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;kc&#34;&gt;true&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;nt&#34;&gt;&amp;#34;schedule&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;[&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;at any time&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;]&lt;/span&gt; (4)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;p&#34;&gt;},&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nt&#34;&gt;&amp;#34;packageRules&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;[&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;p&#34;&gt;{&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      &lt;span class=&#34;nt&#34;&gt;&amp;#34;matchManagers&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;[&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;dockerfile&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;],&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      &lt;span class=&#34;nt&#34;&gt;&amp;#34;pinDigests&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;kc&#34;&gt;true&lt;/span&gt; (5)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;p&#34;&gt;},&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;p&#34;&gt;{&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      &lt;span class=&#34;nt&#34;&gt;&amp;#34;matchManagers&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;[&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;dockerfile&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;],&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      &lt;span class=&#34;nt&#34;&gt;&amp;#34;matchUpdateTypes&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;[&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;digest&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;patch&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;minor&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;],&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      &lt;span class=&#34;nt&#34;&gt;&amp;#34;automerge&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;kc&#34;&gt;true&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt; (6)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      &lt;span class=&#34;nt&#34;&gt;&amp;#34;groupName&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;base images&amp;#34;&lt;/span&gt; (7)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;p&#34;&gt;},&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;p&#34;&gt;{&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      &lt;span class=&#34;nt&#34;&gt;&amp;#34;matchManagers&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;[&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;github-actions&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;],&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      &lt;span class=&#34;nt&#34;&gt;&amp;#34;matchDepTypes&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;[&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;action&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;],&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      &lt;span class=&#34;nt&#34;&gt;&amp;#34;rangeStrategy&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;pin&amp;#34;&lt;/span&gt; (8)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;p&#34;&gt;},&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;p&#34;&gt;{&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      &lt;span class=&#34;nt&#34;&gt;&amp;#34;matchManagers&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;[&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;github-actions&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;],&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      &lt;span class=&#34;nt&#34;&gt;&amp;#34;matchUpdateTypes&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;[&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;patch&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;minor&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;],&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      &lt;span class=&#34;nt&#34;&gt;&amp;#34;matchDepNames&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;[&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;actions/checkout&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;actions/setup-java&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;],&lt;/span&gt; (9)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      &lt;span class=&#34;nt&#34;&gt;&amp;#34;automerge&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;kc&#34;&gt;true&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      &lt;span class=&#34;nt&#34;&gt;&amp;#34;groupName&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;GitHub Actions&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;p&#34;&gt;},&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;p&#34;&gt;{&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      &lt;span class=&#34;nt&#34;&gt;&amp;#34;matchManagers&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;[&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;maven&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;],&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      &lt;span class=&#34;nt&#34;&gt;&amp;#34;matchUpdateTypes&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;[&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;patch&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;minor&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;],&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      &lt;span class=&#34;nt&#34;&gt;&amp;#34;automerge&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;kc&#34;&gt;true&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      &lt;span class=&#34;nt&#34;&gt;&amp;#34;groupName&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;Maven dependencies&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;p&#34;&gt;},&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;p&#34;&gt;{&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      &lt;span class=&#34;nt&#34;&gt;&amp;#34;matchManagers&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;[&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;maven&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;],&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      &lt;span class=&#34;nt&#34;&gt;&amp;#34;matchPackageNames&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;[&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;io.quarkus*&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;],&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      &lt;span class=&#34;nt&#34;&gt;&amp;#34;automerge&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;kc&#34;&gt;false&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt; (10)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      &lt;span class=&#34;nt&#34;&gt;&amp;#34;groupName&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;kc&#34;&gt;null&lt;/span&gt; (11)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;p&#34;&gt;},&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;p&#34;&gt;{&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      &lt;span class=&#34;nt&#34;&gt;&amp;#34;matchManagers&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;[&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;npm&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;],&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      &lt;span class=&#34;nt&#34;&gt;&amp;#34;matchUpdateTypes&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;[&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;patch&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;minor&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;],&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      &lt;span class=&#34;nt&#34;&gt;&amp;#34;automerge&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;kc&#34;&gt;true&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      &lt;span class=&#34;nt&#34;&gt;&amp;#34;groupName&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;npm dependencies&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;p&#34;&gt;}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;p&#34;&gt;]&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;p&#34;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/figure&gt;&#xA;&lt;ol class=&#34;callouts&#34;&gt;&#xA;&lt;li&gt;Pins GitHub Actions to commit SHAs, a security measure. See &lt;a href=&#34;#pinning&#34;&gt;Why actions get pinned to a SHA, and images to a digest&lt;/a&gt; for more details.&lt;/li&gt;&#xA;&lt;li&gt;Renovate arms GitHub&amp;rsquo;s auto-merge feature on each PR, and GitHub merges it as soon as the required checks of the base branch pass. See &lt;a href=&#34;#github-merge&#34;&gt;How a PR merges with no approval&lt;/a&gt; for more details.&lt;/li&gt;&#xA;&lt;li&gt;Konflux pipeline updates in &lt;code&gt;.tekton/&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;Overrides MintMaker&amp;rsquo;s default, which batches Konflux pipeline updates on Saturdays.&lt;/li&gt;&#xA;&lt;li&gt;Pins &lt;code&gt;FROM&lt;/code&gt; lines to &lt;code&gt;tag@sha256&lt;/code&gt;, so rebuilds of a tag arrive as digest PRs, in a rule of its own because Renovate decides the pin before it knows the update type.&lt;/li&gt;&#xA;&lt;li&gt;Digest, patch and minor bumps of the base images merge on their own, since the Konflux PR build tests the image.&lt;/li&gt;&#xA;&lt;li&gt;The digest, patch and minor bumps of the base images share one PR, &amp;quot;Update base images&amp;quot;, so they land in one Konflux build and one merge. If one bump fails a check, the whole PR waits until that bump is fixed or excluded with a rule of its own.&lt;/li&gt;&#xA;&lt;li&gt;Pins each action to its full version, &lt;code&gt;v4.38.1&lt;/code&gt; rather than &lt;code&gt;v4&lt;/code&gt;, in one manual PR. See &lt;a href=&#34;#pinning&#34;&gt;Why actions get pinned to a SHA, and images to a digest&lt;/a&gt; for more details.&lt;/li&gt;&#xA;&lt;li&gt;Only the actions named here are automerged, because an action runs arbitrary code in CI with the workflow&amp;rsquo;s secrets. Those maintained by GitHub, under &lt;code&gt;actions/&lt;/code&gt; and &lt;code&gt;github/&lt;/code&gt;, are the recommended set. A third-party one is a trust decision of its own. Patch and minor only, so a moved tag with no version change never merges alone.&lt;/li&gt;&#xA;&lt;li&gt;Quarkus stays manual: a Renovate rule cannot tell an &lt;a href=&#34;https://quarkus.io/releases/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;LTS version&lt;/a&gt; from another, and a Quarkus update can come with a migration guide to check and apply.&lt;/li&gt;&#xA;&lt;li&gt;Quarkus opts out of the Maven group: a group only automerges when every member does, so a dependency that never automerges would hold it.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;The &lt;code&gt;renovate.jsonc&lt;/code&gt; file itself is never automerged: any change to it, from a teammate or from Renovate&amp;rsquo;s own migration PRs, is an ordinary PR that needs a review, so the bot can never loosen its own rules.&lt;/p&gt;&#xA;&lt;p&gt;The plugin also adds a GitHub workflow under &lt;code&gt;.github/workflows/&lt;/code&gt; that runs MintMaker&amp;rsquo;s own &lt;a href=&#34;https://github.com/konflux-ci/renovate-config-validator-action&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;config validator&lt;/a&gt; whenever the file changes, unless the repository already has one.&#xA;That validator catches syntax and schema errors, and settings Renovate has retired, but not a wrong name, so the plugin checks the names itself before the file is committed, since a misspelled package or action would pass and match nothing.&lt;/p&gt;&#xA;&lt;h2 id=&#34;the-release-age-delay&#34;&gt;The release-age delay&lt;/h2&gt;&#xA;&lt;p&gt;Renovate can wait before it opens a PR for a new release, a setting called the &lt;a href=&#34;https://docs.renovatebot.com/configuration-options/#minimumreleaseage&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;release-age delay&lt;/a&gt;.&#xA;The file above does not mention it because MintMaker&amp;rsquo;s global configuration sets a default for every onboarded repository.&#xA;Most automerged bumps get that delay, and the two warnings below cover the ones that do not.&lt;/p&gt;&#xA;&lt;p&gt;A compromised version is usually caught and pulled within days, and during that time Renovate proposes nothing, so the compromised version never even runs in your CI.&#xA;The delay doesn&amp;rsquo;t help when a compromise is found weeks later: the &lt;a href=&#34;https://www.openwall.com/lists/oss-security/2024/03/29/4&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;xz backdoor&lt;/a&gt;, planted in a compression library that Linux distributions load into their SSH server, sat unnoticed for five weeks in 2024.&lt;/p&gt;&#xA;&lt;aside class=&#34;adm adm-warning&#34;&gt;&lt;div class=&#34;adm-label&#34; data-pagefind-ignore&gt;WARNING&lt;/div&gt;&lt;p&gt;Renovate does not delay vulnerability fixes by default, and MintMaker keeps that default: a fix that matches your automerge rules merges as soon as the checks pass.&#xA;An advisory can be wrong or planted, so a fix that merged without the delay is worth a look afterwards.&lt;/p&gt;&lt;/aside&gt;&lt;aside class=&#34;adm adm-warning&#34;&gt;&lt;div class=&#34;adm-label&#34; data-pagefind-ignore&gt;WARNING&lt;/div&gt;&lt;p&gt;The delay does not apply to base images outside Docker Hub: Renovate only learns image publish dates there, and MintMaker treats a release without one as old enough.&#xA;An image from &lt;code&gt;registry.access.redhat.com&lt;/code&gt; or &lt;code&gt;quay.io&lt;/code&gt; is proposed the day it is rebuilt.&lt;/p&gt;&lt;/aside&gt;&lt;h2 id=&#34;pinning&#34;&gt;Why actions get pinned to a SHA, and images to a digest&lt;/h2&gt;&#xA;&lt;p&gt;The delay guards against a new release that turns out bad, and does nothing against a version that already exists and changes under you, which is what pinning is for.&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;actions/checkout@v4&lt;/code&gt; tells CI to run version 4 of the action, but &lt;code&gt;v4&lt;/code&gt; is a movable label, so CI runs whatever it points at today.&#xA;If someone moves it to malicious code, CI runs that with no PR to warn you.&#xA;This is what happened to the &lt;a href=&#34;https://github.com/advisories/GHSA-mrrh-fwg8-r2c3&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;tj-actions/changed-files action&lt;/a&gt; in March 2025: release tags were moved to a commit that read secrets from the runner, and the workflows that referenced the action by tag ran it, while those pinned to a commit SHA did not.&#xA;A commit SHA cannot be moved, so the plugin proposes to pin every action to one, and a hijacked tag can then only arrive as a PR that never automerges.&#xA;The version next to the SHA has to be a full one, &lt;code&gt;v4.38.1&lt;/code&gt; rather than &lt;code&gt;v4&lt;/code&gt;.&#xA;Renovate never changes a floating tag such as &lt;code&gt;v4&lt;/code&gt;, so every release would arrive as a digest PR, the same shape as a moved tag.&#xA;The plugin&amp;rsquo;s &lt;code&gt;rangeStrategy&lt;/code&gt; rule pins each action to its full version in one manual PR.&lt;/p&gt;&#xA;&lt;p&gt;A base image tag such as &lt;code&gt;ubi9/openjdk-21:1.20&lt;/code&gt; can be rebuilt by the registry at any time, and your next build pulls the new image with no PR and no test.&#xA;A digest, the hash of one exact build, cannot change, so once a &lt;code&gt;FROM&lt;/code&gt; line is pinned to &lt;code&gt;tag@sha256&lt;/code&gt;, every rebuild arrives as a PR that the Konflux PR pipeline builds and tests before it merges.&#xA;Since those images get no release-age delay, the Konflux pipeline is their only protection: keep it among the required checks of the base branch, the only checks a merge waits for, as covered in &lt;a href=&#34;#github-merge&#34;&gt;How a PR merges with no approval&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;p&gt;The pinning rules, for actions and for images, stay in the file once everything is pinned.&#xA;They cost nothing then, and an action or image added later on a movable tag gets its pin PR.&lt;/p&gt;&#xA;&lt;h2 id=&#34;github-merge&#34;&gt;How a PR merges with no approval&lt;/h2&gt;&#xA;&lt;p&gt;Renovate&amp;rsquo;s default, which MintMaker keeps, leaves the merge to GitHub&amp;rsquo;s &lt;a href=&#34;https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/incorporating-changes-from-a-pull-request/automatically-merging-a-pull-request&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;auto-merge feature&lt;/a&gt;, when the repository allows it.&#xA;Renovate arms it on each PR it opens, and GitHub merges the PR minutes after the branch rules are met, with no MintMaker run involved.&#xA;When the branch requires an approval, the merge waits for a review that an unattended PR never gets.&#xA;So the Konflux app has to be a bypass actor, an account that a GitHub ruleset allows to skip a rule such as the required approval.&#xA;GitHub&amp;rsquo;s auto-merge does not honor the bypass in its &amp;quot;Always allow&amp;quot; and &amp;quot;For pull requests only&amp;quot; modes: it keeps waiting for an approval, and the PR stays blocked with every check green.&#xA;Auto-merge works with the &lt;a href=&#34;https://github.blog/changelog/2025-09-10-github-ruleset-exemptions-and-repository-insights-updates/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Exempt&lt;/a&gt; mode, where the rules are not evaluated at all for the Konflux app, so there is nothing to wait for.&lt;/p&gt;&#xA;&lt;aside class=&#34;adm adm-note&#34;&gt;&lt;div class=&#34;adm-label&#34; data-pagefind-ignore&gt;NOTE&lt;/div&gt;&lt;p&gt;Special thanks to Jose Luis Segura, a colleague at Red Hat, who helped me find out that Exempt works with GitHub&amp;rsquo;s native auto-merge where the two other bypass modes do not.&lt;/p&gt;&lt;/aside&gt;&lt;p&gt;An exemption goes further than a bypass: an exempt actor skips every rule of its ruleset, for pull requests and for pushes alike, and GitHub logs no bypass for it.&#xA;So the Konflux app must be exempt from a ruleset that holds &amp;quot;Require a pull request before merging&amp;quot; and nothing else.&#xA;The required checks and &amp;quot;Block force pushes&amp;quot; go in a second one that nobody bypasses: next to the approval rule, they would be skipped too, and the app could merge a PR with a red check or force-push the branch.&#xA;Those required checks are the whole gate, because GitHub&amp;rsquo;s auto-merge reads nothing else: a check that is not required never holds a merge, red or not, and with no required check at all, a PR merges as soon as it opens.&lt;/p&gt;&#xA;&lt;aside class=&#34;adm adm-warning&#34;&gt;&lt;div class=&#34;adm-label&#34; data-pagefind-ignore&gt;WARNING&lt;/div&gt;&lt;p&gt;If you ran the plugin before version 1.0.0, your config sets &lt;code&gt;platformAutomerge&lt;/code&gt; to &lt;code&gt;false&lt;/code&gt;, and the run recommended the &amp;quot;For pull requests only&amp;quot; bypass mode.&#xA;Rerun the setup to get the new config, and move the Konflux app to Exempt.&lt;/p&gt;&lt;/aside&gt;&lt;h2 id=&#34;how-i-made-it-reliable&#34;&gt;How I made it reliable&lt;/h2&gt;&#xA;&lt;p&gt;The facts of a run come from a script, not from the model.&#xA;A read-only shell script goes through the repository for its ecosystems, base images, actions, branches and existing config, asks GitHub for the branch rules when &lt;code&gt;gh&lt;/code&gt; is logged in, and prints a report that the steps read from, so two runs on the same repository see the same facts.&lt;/p&gt;&#xA;&lt;p&gt;The model only does what a script cannot: it frames each decision and writes the config from your answers.&#xA;That part is not deterministic, so the plugin repository holds evals, automated tests that run the skill as a person would.&#xA;Seven small repositories cover the cases, from a Quarkus service with a &lt;code&gt;dependabot.yml&lt;/code&gt; to a Go module with an old config to migrate, and one of them is not on Konflux, so the skill must stop.&#xA;A script acts as the user through the &lt;a href=&#34;https://code.claude.com/docs/en/agent-sdk/user-input&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Agent SDK&lt;/a&gt;, answers every menu, and then checks the transcript and the working tree: the fourteen screens came in order, nothing was written before the approval, the config holds the expected rules, and nothing was committed.&lt;/p&gt;&#xA;&lt;p&gt;The evals run on every pull request that touches the skill.&#xA;A run fails now and then, and a failing repository gets one rerun before the job goes red.&lt;/p&gt;&#xA;&lt;h2 id=&#34;why-the-renovate-config-is-not-a-shared-preset&#34;&gt;Why the Renovate config is not a shared preset&lt;/h2&gt;&#xA;&lt;p&gt;Renovate can load rules from a preset hosted in another repository, and MintMaker itself &lt;a href=&#34;https://konflux-ci.dev/docs/mintmaker/user/#configuration-presets&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;publishes presets&lt;/a&gt; that way, so a shared automerge preset may look like a good idea for an organization.&#xA;The plugin does the opposite, one self-contained file per repository, and I want to explain why.&lt;/p&gt;&#xA;&lt;p&gt;What a shared preset does well:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;One change reaches every repository at once, which matters when the policy itself changes: a setting such as &lt;code&gt;platformAutomerge&lt;/code&gt; flipping for every repository is one commit in a preset, and one PR per repository otherwise.&lt;/li&gt;&#xA;&lt;li&gt;Turning automerge on for dependency updates takes one line in a config, where the plugin asks for twenty minutes of decisions.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Why the plugin does not use one:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;The decision belongs to the repository owner, and a preset moves it to whoever can merge in the shared repository, with no PR in the repository that uses the preset, unless that repository pins it to a version.&lt;/li&gt;&#xA;&lt;li&gt;The rules that matter most are repository-specific: the actions allowed by name, the packages kept manual, the image choices.&lt;/li&gt;&#xA;&lt;li&gt;The file is small and almost never changes, so there is no stream of changes to centralize.&lt;/li&gt;&#xA;&lt;li&gt;A preset adds a second repository to read, and a precedence question on top of MintMaker&amp;rsquo;s global configuration, for whoever asks why a PR merged on its own.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;What the plugin shares is the reasoning: the same questions and the same recommended answers, applied to what each repository contains.&lt;/p&gt;&#xA;&lt;p&gt;I am open to being wrong about this: if a shared preset works for your organization, please reach out or use the comments to change my mind.&lt;/p&gt;&#xA;&lt;h2 id=&#34;try-it&#34;&gt;Try it&lt;/h2&gt;&#xA;&lt;p&gt;You need Claude Code and a GitHub repository onboarded in Konflux.&#xA;A &lt;code&gt;gh&lt;/code&gt; login is optional.&#xA;With it, the run checks the branch rules on GitHub for you and opens the pull request at the end.&#xA;Without it, the run uses a GitHub token from your environment if there is one, and otherwise gives you a link and the text to paste to open the pull request yourself.&#xA;When your branch requires an approval, nothing merges until you allow the Konflux app to skip that rule.&#xA;The run explains how, and you change the setting yourself.&lt;/p&gt;&#xA;&lt;p&gt;Install the plugin from a Claude Code session:&lt;/p&gt;&#xA;&lt;figure class=&#34;code&#34; data-pagefind-weight=&#34;0.5&#34;&gt;&#xA;  &lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;/plugin marketplace add gwenneg/claude-ichiba (1)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;/plugin install mintmaker-automerge@claude-ichiba&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;/reload-plugins&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/figure&gt;&#xA;&lt;ol class=&#34;callouts&#34;&gt;&#xA;&lt;li&gt;Full disclosure: &lt;a href=&#34;https://github.com/gwenneg/claude-ichiba&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;claude-ichiba&lt;/a&gt; is my own plugin marketplace.&#xA;It also hosts &lt;a href=&#34;https://github.com/gwenneg/soundings&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Soundings&lt;/a&gt;, a release risk plugin &lt;a href=&#34;/2026/09/03/take-soundings-before-you-ship.html&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;I wrote about recently&lt;/a&gt;.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;Then, from the repository where you want to enable automerge:&lt;/p&gt;&#xA;&lt;figure class=&#34;code&#34; data-pagefind-weight=&#34;0.5&#34;&gt;&#xA;  &lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;/mintmaker-automerge:setup&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/figure&gt;&#xA;&lt;p&gt;Claude Code only updates plugins from its official marketplace automatically.&#xA;Enable auto-update for claude-ichiba in the &lt;code&gt;/plugin&lt;/code&gt; panel, or refresh it yourself from time to time:&lt;/p&gt;&#xA;&lt;figure class=&#34;code&#34; data-pagefind-weight=&#34;0.5&#34;&gt;&#xA;  &lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;/plugin marketplace update claude-ichiba&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;/reload-plugins&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/figure&gt;&#xA;&lt;h2 id=&#34;whats-next&#34;&gt;What&amp;rsquo;s next&lt;/h2&gt;&#xA;&lt;p&gt;When the scan finds Quarkus, Spring Boot, Django or Angular, the plugin recommends keeping it on manual review.&#xA;Each framework is one line in the scan script, with its reason and a link.&#xA;If your stack has a package that should never be automerged, a pull request adding its line is welcome, and so are &lt;a href=&#34;https://github.com/gwenneg/mintmaker-automerge/issues&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;issues&lt;/a&gt; from your first run.&lt;/p&gt;&#xA;&lt;p&gt;The plugin covers the bumps a Renovate rule can judge, and the next step is an AI agent for two things a rule cannot:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;The bumps that need reading, a framework kept on its LTS version with a migration guide to apply: the agent picks the target, applies the guide, runs the tests, and opens a PR that a human reviews.&lt;/li&gt;&#xA;&lt;li&gt;The PRs that qualify for automerge and sit open on a failed check: the agent reads the failure, tells a flaky job from a real break, and pushes the fix so the checks run again.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;If you try &lt;a href=&#34;https://github.com/gwenneg/mintmaker-automerge&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;MintMaker Automerge&lt;/a&gt; on one of your repositories, please let me know how the run went.&lt;/p&gt;&#xA;</content>
    <author><name>Gwenneg Lepage</name></author>
    <category term="ai"/>
    <category term="claude code"/>
    <category term="konflux"/>
    <category term="mintmaker"/>
    <category term="plugins"/>
    <category term="renovate"/>
    <category term="security"/>
    <category term="supply chain"/>
    <summary type="html">I built a Claude Code plugin that lets the routine MintMaker PRs of your Konflux repositories merge on their own, and I explain its main rules.</summary>
  </entry>
  <entry>
    <title type="html">Take soundings before you ship</title>
    <link href="https://gwenneg.com/2026/09/03/take-soundings-before-you-ship.html" rel="alternate" type="text/html" title="Take soundings before you ship"/>
    <published>2026-09-03T00:00:00+02:00</published>
    <updated>2026-09-03T00:00:00+02:00</updated>
    <id>https://gwenneg.github.io/2026/09/03/take-soundings-before-you-ship</id>
    <content type="html" xml:base="https://gwenneg.com/2026/09/03/take-soundings-before-you-ship.html">&lt;figure class=&#34;shot&#34;&gt;&lt;img src=&#34;/assets/images/posts/take-soundings-before-you-ship/header.png&#34; alt=&#34;Take soundings before you ship&#34; width=&#34;1024&#34; height=&#34;572&#34; style=&#34;width: 800px&#34; fetchpriority=&#34;high&#34; decoding=&#34;async&#34;&gt;&#xA;&lt;/figure&gt;&lt;aside class=&#34;adm adm-note&#34; data-pagefind-ignore&gt;&lt;div class=&#34;adm-label&#34; data-pagefind-ignore&gt;NOTE&lt;/div&gt;&lt;p&gt;This post was written with the help of AI.&lt;/p&gt;&lt;/aside&gt;&lt;p&gt;I lead a Red Hat engineering team responsible for shipping multiple cloud services to production.&#xA;Every week we make a call: is this deployment safe to ship?&#xA;When it isn&amp;rsquo;t, our job is to catch the risks and mitigate them before they reach production.&#xA;The end goal never changes: keep production stable and reliable, with zero customer disruption.&lt;/p&gt;&#xA;&lt;p&gt;What has changed is the volume.&#xA;AI now generates and touches code at a rate no human review process was built for.&#xA;Diffs grow, release cadence accelerates, but reviewing everything carefully doesn&amp;rsquo;t scale.&#xA;The only review that scales with AI is AI: a reviewer that reads everything, with judgment, before anything ships.&lt;/p&gt;&#xA;&lt;p&gt;That reviewer is &lt;a href=&#34;https://github.com/gwenneg/soundings&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Soundings&lt;/a&gt;, a Claude Code plugin I built.&#xA;The name comes from an &lt;a href=&#34;https://en.wikipedia.org/wiki/Depth_sounding&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;old sailors&#39; practice&lt;/a&gt;: measuring the water&amp;rsquo;s depth ahead before committing a ship to a course, &amp;quot;taking soundings&amp;quot;.&#xA;This post explains what the plugin does, why I think you should try it on your next release, and why it is safe to run on your laptop even though its job is to read text it has no reason to trust.&lt;/p&gt;&#xA;&lt;aside class=&#34;adm adm-important&#34;&gt;&lt;div class=&#34;adm-label&#34; data-pagefind-ignore&gt;IMPORTANT&lt;/div&gt;&lt;p&gt;Red Hat associates: this post is about the general-purpose Soundings plugin.&#xA;To analyze the deployment MRs you ship through app-interface, pair it with the &lt;a href=&#34;https://github.com/gwenneg/soundings-app-interface&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;soundings-app-interface&lt;/a&gt; adapter.&#xA;That adapter has its own internal post: &lt;a href=&#34;https://url.corp.redhat.com/a1f49a1&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Is this deployment MR safe to merge? Ask a Claude Code plugin.&lt;/a&gt;&lt;/p&gt;&lt;/aside&gt;&lt;h2 id=&#34;what-soundings-does&#34;&gt;What Soundings does&lt;/h2&gt;&#xA;&lt;p&gt;In your Claude Code session, point Soundings at one or more GitHub or GitLab compare URLs:&lt;/p&gt;&#xA;&lt;figure class=&#34;code&#34; data-pagefind-weight=&#34;0.5&#34;&gt;&#xA;  &lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;/soundings:analyze https://github.com/org/repo/compare/v1.0...v1.1&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/figure&gt;&#xA;&lt;p&gt;It reads the diffs, the commit messages, the PR and MR comments, and the repository documentation.&#xA;Then it hands back one clear verdict (release, manual review, or no-go) and a report specific enough to act on: named files, named functions, concrete failure modes, and action items sorted by urgency.&#xA;Before it starts, it asks where to save the report, unless you already said so:&lt;/p&gt;&#xA;&lt;figure class=&#34;code&#34; data-pagefind-weight=&#34;0.5&#34;&gt;&#xA;  &lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;/soundings:analyze https://github.com/org/repo/compare/v1.0...v1.1 save the report to ./reviews/v1.1.md&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/figure&gt;&#xA;&lt;p&gt;A few minutes after you hit enter, the verdict shows up right in your session: the summary, the recommendation, and what drove it.&#xA;The full report is the markdown file, written by the helper, ready to archive or to post where the ship decision happens.&lt;/p&gt;&#xA;&lt;p&gt;The verdict follows a fixed policy: by default, any critical concern blocks the release and any high concern requires manual review.&#xA;Every concern is a concrete claim you can go verify, so if the verdict feels wrong, you can check which concern caused it and whether that concern is true.&#xA;You can also tighten the policy and block on high or even medium concerns for your most critical services.&lt;/p&gt;&#xA;&lt;p&gt;There is nothing to deploy and no LLM API key to create: the analysis runs in the Claude Code session you already have.&#xA;A small open-source Go helper does the deterministic work, borrowing the Git credentials you already use: a &lt;code&gt;gh&lt;/code&gt; or &lt;code&gt;glab&lt;/code&gt; login, or a platform token.&lt;/p&gt;&#xA;&lt;p&gt;A run has three stages:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&lt;strong&gt;Fetch.&lt;/strong&gt;&#xA;The Go helper clones the repositories, computes the diffs locally, and writes per-file patches into a temporary directory it owns, with an index describing how much each file changed and its risk tier.&#xA;It returns only counts and paths, never content.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Assess.&lt;/strong&gt;&#xA;An isolated subagent called &lt;code&gt;risk-analyst&lt;/code&gt; decides how deeply to read each file instead of cutting every diff to a fixed size: database, auth, and API contract changes are always read in full, tests only when they back up a claim about coverage.&#xA;It assigns each concern an evidence-based severity, the higher one when evidence is incomplete, and returns one structured JSON analysis.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Render.&lt;/strong&gt;&#xA;The helper validates that JSON against a schema, computes the verdict from the severities and the blocking policy, renders the report, and writes it to the file you chose.&#xA;When it succeeds, the fetched data is deleted.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;figure class=&#34;shot&#34;&gt;&lt;img src=&#34;/assets/images/posts/take-soundings-before-you-ship/what-soundings-does.png&#34; alt=&#34;What Soundings does&#34; width=&#34;2269&#34; height=&#34;1536&#34; style=&#34;width: 85%&#34; loading=&#34;lazy&#34; decoding=&#34;async&#34;&gt;&#xA;&lt;/figure&gt;&lt;p&gt;You can pass several compare URLs in one invocation, and they are analyzed together.&#xA;A coordinated deployment usually spans repositories.&#xA;The schema migration lives in one service, the code that depends on it in another.&#xA;Per-repo CI can never see that interaction.&#xA;A single analysis across all the repos of a deployment can, and compound risks are what Soundings hunts for.&#xA;For a team shipping coordinated deployments every week, this is the feature that matters.&lt;/p&gt;&#xA;&lt;h2 id=&#34;what-a-report-looks-like&#34;&gt;What a report looks like&lt;/h2&gt;&#xA;&lt;p&gt;Soundings looks for the risk families you would brief a new release manager on:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Database changes&lt;/strong&gt;: migration ordering, rollback traps, locks taken under load&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Security&lt;/strong&gt;: secrets in diffs, auth changes, new logging on sensitive paths, risky dependency updates&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;API contracts&lt;/strong&gt;: breaking changes, services no longer agreeing on request and response shapes&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Infrastructure and configuration&lt;/strong&gt;: deployment and CI changes, resource limits, config changes paired with the code that reads them&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Resilience&lt;/strong&gt;: retry, timeout, rate limit, circuit breaker, and connection pool changes, which all shift capacity and failure modes&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Compound risks&lt;/strong&gt;: changes that are each fine alone but dangerous together, including across repositories&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Your session shows only the Summary section.&#xA;The full report is in the markdown file.&#xA;Here&amp;rsquo;s the top of one, from a demo analysis of a two-service release:&lt;/p&gt;&#xA;&lt;figure class=&#34;shot bordered&#34;&gt;&lt;img src=&#34;/assets/images/posts/take-soundings-before-you-ship/soundings-demo-report.png&#34; alt=&#34;Soundings demo report&#34; width=&#34;2068&#34; height=&#34;1434&#34; style=&#34;width: 85%&#34; loading=&#34;lazy&#34; decoding=&#34;async&#34;&gt;&#xA;&lt;/figure&gt;&lt;p&gt;You can read the &lt;a href=&#34;https://github.com/gwenneg/soundings/blob/main/docs/DEMO_REPORT.md&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;full demo report&lt;/a&gt; to see everything it contains.&lt;/p&gt;&#xA;&lt;p&gt;Two findings from that report stand out.&#xA;The critical one caught a database migration and the code using its new column shipping in the same release, a sequence the service&amp;rsquo;s own deployment rules forbid.&#xA;Its action item: block the deployment and split the release, migration first, code second.&#xA;The compound one caught a retry count raised from 2 to 5 in one file and a timeout raised from 200ms to 1s in another.&#xA;Each change is fine alone.&#xA;Combined, the worst case blows past the service&amp;rsquo;s 2 second SLO when the email service degrades.&#xA;No single-file review connects those two lines.&lt;/p&gt;&#xA;&lt;p&gt;The positives are evidence-based too, and just as specific.&#xA;The same report credits the release for a feature flag guarding the new endpoint, an &lt;code&gt;IF NOT EXISTS&lt;/code&gt; guard on the migration, a documented rollback path, and a gateway change verified compatible with both the old and new versions of the API behind it.&#xA;That last one is only visible because the two repositories were analyzed together.&lt;/p&gt;&#xA;&lt;h2 id=&#34;try-it-on-your-next-release&#34;&gt;Try it on your next release&lt;/h2&gt;&#xA;&lt;p&gt;Here&amp;rsquo;s the complete setup on a machine that already runs Claude Code:&lt;/p&gt;&#xA;&lt;figure class=&#34;code&#34; data-pagefind-weight=&#34;0.5&#34;&gt;&#xA;  &lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;/plugin marketplace add gwenneg/claude-ichiba (1)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;/plugin install soundings@claude-ichiba&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;/reload-plugins&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/figure&gt;&#xA;&lt;ol class=&#34;callouts&#34;&gt;&#xA;&lt;li&gt;Full disclosure: &lt;a href=&#34;https://github.com/gwenneg/claude-ichiba&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;claude-ichiba&lt;/a&gt; is my own plugin marketplace.&#xA;It also hosts &lt;a href=&#34;https://github.com/gwenneg/ai-mentor&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;AI Mentor&lt;/a&gt;, the plugin from &lt;a href=&#34;/2026/07/13/which-80-percent-of-claude-code-are-you-missing.html&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;an earlier post&lt;/a&gt; that teaches you the Claude Code capabilities you&amp;rsquo;re missing.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;You need two things besides Claude Code: a Go toolchain, and a credential for each platform you analyze, either a &lt;code&gt;gh&lt;/code&gt; or &lt;code&gt;glab&lt;/code&gt; login or a &lt;code&gt;GITHUB_TOKEN&lt;/code&gt;/&lt;code&gt;GITLAB_TOKEN&lt;/code&gt; env var.&#xA;That&amp;rsquo;s it.&#xA;No LLM API key, no service account, no Docker image, no config file.&#xA;At run time, Soundings picks the right credential for each platform and each GitLab host, so one invocation can mix github.com and any number of GitLab instances, and a token for one host is never sent to another.&lt;/p&gt;&#xA;&lt;p&gt;Claude Code only updates plugins from its official marketplace automatically.&#xA;Enable auto-update for claude-ichiba in the &lt;code&gt;/plugin&lt;/code&gt; panel, or refresh it yourself from time to time:&lt;/p&gt;&#xA;&lt;figure class=&#34;code&#34; data-pagefind-weight=&#34;0.5&#34;&gt;&#xA;  &lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;/plugin marketplace update claude-ichiba&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;/reload-plugins&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/figure&gt;&#xA;&lt;h2 id=&#34;why-its-safe-to-run-on-your-laptop&#34;&gt;Why it&amp;rsquo;s safe to run on your laptop&lt;/h2&gt;&#xA;&lt;p&gt;Everything Soundings analyzes (diffs, commit messages, PR comments, repository docs) could have been written by anyone.&#xA;Even your own release carries text you didn&amp;rsquo;t write: other people&amp;rsquo;s code, bot commits, comments from anyone with an account.&#xA;So the design assumes every byte it fetches is hostile, and the protections are limits the AI cannot cross, not instructions it is asked to follow.&lt;/p&gt;&#xA;&lt;h3 id=&#34;what-a-run-talks-to&#34;&gt;What a run talks to&lt;/h3&gt;&#xA;&lt;p&gt;Those limits start at the network.&#xA;A run adds no channel of its own: no extra LLM API, no telemetry, no server collecting anything.&#xA;It only reaches the platforms that host your code, and the analysis stays in your existing Claude Code session, like the rest of your work.&lt;/p&gt;&#xA;&lt;p&gt;Even that traffic never comes from the AI: the fetching is done by a Go helper with an SSRF-hardened HTTP client.&#xA;The client blocks connections to private and internal addresses at dial time, covering redirects and DNS rebinding rather than just the initial URL.&#xA;A document link planted in a repo cannot make your laptop probe your internal network or a cloud metadata endpoint.&#xA;It guards your credentials the same way: a GitLab token is only ever sent to its own host, and gets stripped from any redirect that leaves it.&lt;/p&gt;&#xA;&lt;h3 id=&#34;who-gets-to-read-the-data&#34;&gt;Who gets to read the data&lt;/h3&gt;&#xA;&lt;p&gt;Once the data is fetched, the reading happens in a dedicated subagent called &lt;code&gt;risk-analyst&lt;/code&gt;, and each agent in a run gets only the permissions its job needs:&lt;/p&gt;&#xA;&lt;div class=&#34;table-wrap&#34;&gt;&#xA;&lt;table&gt;&#xA;  &lt;colgroup&gt;&lt;col style=&#34;width: 33.3333%&#34;&gt;&lt;col style=&#34;width: 33.3333%&#34;&gt;&lt;col style=&#34;width: 33.3334%&#34;&gt;&lt;/colgroup&gt;&#xA;  &lt;thead&gt;&#xA;    &lt;tr&gt;&#xA;      &lt;th&gt;What&lt;/th&gt;&#xA;      &lt;th&gt;Main agent (your session)&lt;/th&gt;&#xA;      &lt;th&gt;&lt;code&gt;risk-analyst&lt;/code&gt; subagent&lt;/th&gt;&#xA;    &lt;/tr&gt;&#xA;  &lt;/thead&gt;&#xA;  &lt;tbody&gt;&#xA;    &lt;tr&gt;&#xA;      &lt;td&gt;Shell, file edits, network&lt;/td&gt;&#xA;      &lt;td&gt;Switched off during the run&lt;/td&gt;&#xA;      &lt;td&gt;Never had them&lt;/td&gt;&#xA;    &lt;/tr&gt;&#xA;    &lt;tr&gt;&#xA;      &lt;td&gt;Your project files&lt;/td&gt;&#xA;      &lt;td&gt;Can read them&lt;/td&gt;&#xA;      &lt;td&gt;Cannot read them*&lt;/td&gt;&#xA;    &lt;/tr&gt;&#xA;    &lt;tr&gt;&#xA;      &lt;td&gt;The fetched release data&lt;/td&gt;&#xA;      &lt;td&gt;Cannot read it*&lt;/td&gt;&#xA;      &lt;td&gt;The only thing it can read*&lt;/td&gt;&#xA;    &lt;/tr&gt;&#xA;    &lt;tr&gt;&#xA;      &lt;td&gt;The helper&amp;rsquo;s &lt;code&gt;fetch&lt;/code&gt; and &lt;code&gt;render&lt;/code&gt; tools&lt;/td&gt;&#xA;      &lt;td&gt;Can call them&lt;/td&gt;&#xA;      &lt;td&gt;Cannot call them&lt;/td&gt;&#xA;    &lt;/tr&gt;&#xA;  &lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&lt;/div&gt;&#xA;&lt;p&gt;The starred cells all describe the same mechanism: a fence around the fetched data, enforced by a hook the plugin ships.&#xA;It exists because read-only is not enough on its own: an injected instruction could still make the AI read &lt;code&gt;~/.ssh&lt;/code&gt; or a &lt;code&gt;.env&lt;/code&gt; file and leak what it finds into the report.&#xA;The hook is backed by a registry of the exact directories the fetch step created, and the two agents sit on opposite sides of the fence: the &lt;code&gt;risk-analyst&lt;/code&gt; may read only in there, every other agent may read anywhere but there.&#xA;If anything goes wrong with the registry, the hook denies rather than allows.&#xA;And the plugin cannot override your own Claude Code settings: anything you&amp;rsquo;ve denied there stays denied.&lt;/p&gt;&#xA;&lt;p&gt;The result: a prompt injection buried in a diff reaches only &lt;code&gt;risk-analyst&lt;/code&gt;, and can, at worst, change what the analysis says.&#xA;It cannot run commands in your session, and the hostile text cannot be pulled into any other agent&amp;rsquo;s context.&lt;/p&gt;&#xA;&lt;h3 id=&#34;what-comes-out-and-what-remains&#34;&gt;What comes out, and what remains&lt;/h3&gt;&#xA;&lt;p&gt;What comes out of a run is as controlled as what goes in.&#xA;Every file is written by the helper, and it refuses to overwrite anything that is not a previously generated Soundings report.&#xA;Recognizable credentials (platform tokens, cloud keys, PEM blocks) are redacted before the analysis is even validated, so a secret that slips into the assessment never reaches the report.&#xA;Externally-authored text is escaped in the report, so a crafted comment cannot forge its structure.&#xA;And the verdict is computed from the concern severities: flipping it would require fabricating or suppressing a whole concern, in plain sight, in a report a human will read.&lt;/p&gt;&#xA;&lt;p&gt;Nothing stays behind after a run.&#xA;The helper owns the fetched data from creation to deletion: a successful render deletes it, a failed fetch cleans up behind itself, and an abandoned run&amp;rsquo;s leftovers are deleted the next time the helper starts.&#xA;Only the report survives.&lt;/p&gt;&#xA;&lt;h3 id=&#34;the-residual-risk&#34;&gt;The residual risk&lt;/h3&gt;&#xA;&lt;p&gt;One risk remains: a prompt injection can still bias the analysis wording or a concern&amp;rsquo;s severity.&#xA;That risk is inherent to any LLM-based review, which is why every report opens with an advisory banner and why the footer names the exact model that performed the analysis.&#xA;The severity-driven verdict at least forces that bias into the most auditable place there is: a named concern, in a report, right where you will read it.&lt;/p&gt;&#xA;&lt;p&gt;And if you&amp;rsquo;d rather verify all of this than trust me: the helper is a small, tested, open-source Go program you can read in an afternoon, and it never runs arbitrary commands.&#xA;It runs as an MCP server that does nothing until a tool is called: no credentials read, no network touched.&#xA;You can also toggle it off entirely in the &lt;code&gt;/mcp&lt;/code&gt; panel.&lt;/p&gt;&#xA;&lt;h2 id=&#34;getting-better-results&#34;&gt;Getting better results&lt;/h2&gt;&#xA;&lt;p&gt;Two inputs make the analysis noticeably sharper.&lt;/p&gt;&#xA;&lt;p&gt;A &lt;code&gt;.soundings.md&lt;/code&gt; file in your repository root tells the analyst what the service is, how critical it is, and where the known risky areas are.&#xA;Good candidates: the SLO your callers expect, deployment rules such as &amp;quot;migrations ship in their own release&amp;quot;, rollback procedures, and links to your runbooks.&#xA;That&amp;rsquo;s where the demo&amp;rsquo;s blocking concern came from: the analyst read the split-release rule in the repository&amp;rsquo;s own documentation and enforced it.&#xA;Documentation linked from it is fetched too, SSRF-hardened and size-capped like every other fetch.&lt;/p&gt;&#xA;&lt;p&gt;A &lt;code&gt;/soundings note&lt;/code&gt; comment on a PR or MR hands the analysis context a diff cannot show:&lt;/p&gt;&#xA;&lt;figure class=&#34;code&#34; data-pagefind-weight=&#34;0.5&#34;&gt;&#xA;  &lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;/soundings note The new index was tested on a staging copy with production data volume. Creation took 47 seconds, with no lock contention.&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/figure&gt;&#xA;&lt;p&gt;Notes only influence the analysis when their author is the PR/MR author or an authorized approver, and that authorization is computed from the platform API, never guessed.&#xA;Unauthorized notes are disclosed in the report but excluded from the analysis, so a random commenter cannot change the verdict.&#xA;The demo report has an example: a commenter insists the release should ship regardless of the verdict, and the guidance table lists that note as ignored.&lt;/p&gt;&#xA;&lt;p&gt;The full guide lives in the repo: &lt;a href=&#34;https://github.com/gwenneg/soundings/blob/main/docs/IMPROVING_ANALYSIS.md&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Improving your release readiness analysis&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;h2 id=&#34;where-soundings-comes-from&#34;&gt;Where Soundings comes from&lt;/h2&gt;&#xA;&lt;p&gt;Soundings is the successor to &lt;a href=&#34;https://github.com/RedHatInsights/release-confidence-score&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Release Confidence Score&lt;/a&gt;, a tool I originally built at Red Hat, licensed under Apache-2.0.&#xA;I extracted its core with the full git history preserved: the original commits, including the security hardening, are visible in the Soundings log.&#xA;It is Apache-2.0 too, and the whole pipeline is open to inspection.&lt;/p&gt;&#xA;&lt;h2 id=&#34;whats-next&#34;&gt;What&amp;rsquo;s next&lt;/h2&gt;&#xA;&lt;p&gt;Everything in this post runs interactively, on a laptop, with a human reading the report.&#xA;The next step is to remove the laptop.&#xA;The entire pipeline (the skill, the isolated analyst, the helper) is designed to also run headless: a containerized Claude Code session analyzing a release unattended, as a step of the release process itself, delivering its report where the ship decision is made.&#xA;And because the verdict is computed rather than written, it can serve as a gate in a continuous delivery pipeline: a clean verdict promotes, anything else stops the line and hands the decision back to a human, with the report already explaining why.&#xA;That&amp;rsquo;s why a normal run already needs no permission prompt, and why the injection containment doesn&amp;rsquo;t rely on a human watching: the guarantees that make Soundings safe on your laptop are exactly the ones an unattended run needs.&#xA;The only thing a headless run has to provide is where to write the report, since nobody is there to answer the question.&lt;/p&gt;&#xA;&lt;p&gt;I&amp;rsquo;m also exploring how to port Soundings to &lt;a href=&#34;https://openai.com/codex/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Codex&lt;/a&gt;.&#xA;The split at the heart of the design, code for the deterministic work and an isolated agent for the reading, is not specific to Claude Code.&#xA;Stay tuned.&lt;/p&gt;&#xA;&lt;p&gt;Soundings is under active development, and feedback directly shapes what changes next: &lt;a href=&#34;https://github.com/gwenneg/soundings/issues&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;issues and ideas&lt;/a&gt; are welcome on the repository.&lt;/p&gt;&#xA;&lt;p&gt;Take soundings before you ship!&lt;/p&gt;&#xA;</content>
    <author><name>Gwenneg Lepage</name></author>
    <category term="agents"/>
    <category term="ai"/>
    <category term="claude code"/>
    <category term="plugins"/>
    <category term="release management"/>
    <category term="security"/>
    <summary type="html">We decide every week whether a release is safe to ship. Soundings is the Claude Code plugin I built to answer that: release, manual review, or no-go.</summary>
  </entry>
  <entry>
    <title type="html">Turn an AI you can’t trust into one you can</title>
    <link href="https://gwenneg.com/2026/08/01/turn-an-ai-you-cant-trust-into-one-you-can.html" rel="alternate" type="text/html" title="Turn an AI you can’t trust into one you can"/>
    <published>2026-08-01T00:00:00+02:00</published>
    <updated>2026-08-01T00:00:00+02:00</updated>
    <id>https://gwenneg.github.io/2026/08/01/turn-an-ai-you-cant-trust-into-one-you-can</id>
    <content type="html" xml:base="https://gwenneg.com/2026/08/01/turn-an-ai-you-cant-trust-into-one-you-can.html">&lt;aside class=&#34;adm adm-note&#34; data-pagefind-ignore&gt;&lt;div class=&#34;adm-label&#34; data-pagefind-ignore&gt;NOTE&lt;/div&gt;&lt;p&gt;This post was written with the help of AI.&lt;/p&gt;&lt;/aside&gt;&lt;p&gt;I maintain &lt;a href=&#34;https://gwenneg.com/2026/07/13/which-80-percent-of-claude-code-are-you-missing.html&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;AI Mentor&lt;/a&gt;, a Claude Code plugin that teaches developers the AI capabilities they don&amp;rsquo;t know exist.&#xA;For that to work, every recommendation has to be trustworthy: verified against a curated catalog, never invented.&#xA;That claim needed proof, so I built evals: automated tests that run the plugin like a real user would and check its answers for recommendations it shouldn&amp;rsquo;t be making.&#xA;It took me a month to make them trustworthy, because the evals turned out to give wrong verdicts too.&lt;/p&gt;&#xA;&lt;p&gt;After three weeks, most of what I had built needed rebuilding around something I hadn&amp;rsquo;t seen coming.&#xA;If you&amp;rsquo;re building evals for an AI-powered product, or still deciding whether to, these are the traps I fell into.&lt;/p&gt;&#xA;&lt;aside class=&#34;adm adm-note&#34;&gt;&lt;div class=&#34;adm-label&#34; data-pagefind-ignore&gt;NOTE&lt;/div&gt;&lt;p&gt;No prior evals knowledge is needed to understand this post.&#xA;If you&amp;rsquo;ve ever written a unit test, most of this will feel familiar.&#xA;The parts that won&amp;rsquo;t are the lessons.&lt;/p&gt;&lt;/aside&gt;&lt;aside class=&#34;adm adm-tip&#34;&gt;&lt;div class=&#34;adm-label&#34; data-pagefind-ignore&gt;TIP&lt;/div&gt;&lt;p&gt;In a hurry? Jump to the &lt;a href=&#34;#starting-from-scratch&#34;&gt;If you are starting from scratch&lt;/a&gt; section for a TL;DR of this post.&lt;/p&gt;&lt;/aside&gt;&lt;h2 id=&#34;what-is-an-eval-and-why-bother&#34;&gt;What is an eval, and why bother?&lt;/h2&gt;&#xA;&lt;p&gt;A unit test can assert an exact outcome because the code under test is deterministic: the same input produces the same behavior.&#xA;An LLM is not deterministic.&#xA;Run it twice on the same input and you may get different words, sometimes different decisions.&#xA;You can&amp;rsquo;t assert equality on that, so an eval asks questions about the AI&amp;rsquo;s answer instead: &amp;quot;Is this claim accurate?&amp;quot;, &amp;quot;Did it violate a stated rule?&amp;quot;.&lt;/p&gt;&#xA;&lt;p&gt;Evals started in research labs, as benchmarks for comparing models (Stanford&amp;rsquo;s &lt;a href=&#34;https://crfm.stanford.edu/helm/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;HELM&lt;/a&gt; is a good example).&#xA;The name caught on in 2023, when OpenAI open-sourced its &lt;a href=&#34;https://github.com/openai/evals&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Evals framework&lt;/a&gt;.&#xA;This post follows that framework&amp;rsquo;s core idea: write your own evals for your own use case.&lt;/p&gt;&#xA;&lt;p&gt;Any eval suite needs cases and a grader, and, if your product carries state, an environment to run them in.&#xA;Mine started simple:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Around 40 test cases, each one about a realistic user request like &lt;code&gt;my long session keeps getting dumber&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;A small fixture project to run them in: a sample repo standing in for a real one&lt;/li&gt;&#xA;&lt;li&gt;A second AI, the judge, that reads each answer and decides pass or fail against written expectations&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;The cases come from your product&amp;rsquo;s promises: write one for each rule it must follow and each kind of request it must handle.&lt;/p&gt;&#xA;&lt;p&gt;My plan was just as simple: write the cases, let the judge grade the answers, fix the plugin until everything went green, then make that green a gate no release could skip.&#xA;This plan looked solid until the judge started grading.&lt;/p&gt;&#xA;&lt;h2 id=&#34;lesson-1-the-hard-part-of-your-evals-is-yours-to-write&#34;&gt;Lesson 1: the hard part of your evals is yours to write&lt;/h2&gt;&#xA;&lt;p&gt;I wrote the first version of the suite in Go, like every other tool in the repo.&#xA;It worked, but I didn&amp;rsquo;t like owning an eval harness, the code that runs the suite, when so many already exist.&#xA;So I gave &lt;a href=&#34;https://www.promptfoo.dev/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Promptfoo&lt;/a&gt;, one of the most popular eval frameworks, a real chance and ported the suite to it a few different ways.&#xA;All of them worked, but none beat the plain Go runner they were meant to replace.&lt;/p&gt;&#xA;&lt;p&gt;Frameworks offer real machinery: assertions, built-in AI graders, and test matrices.&#xA;But the hard part of my suite, about 450 lines, was &lt;em&gt;state&lt;/em&gt;: seeding a user profile on disk before each case (the plugin keeps one to remember what each developer already knows), isolating each run in its own throwaway home directory so runs can&amp;rsquo;t see each other&amp;rsquo;s files, handing the judge the exact catalog files to check answers against.&#xA;Every port kept all of that code and simply moved it into the framework&amp;rsquo;s hooks.&#xA;All Promptfoo could take off my hands was the loop that runs each case and collects results, a few dozen lines of Go, at the price of a second toolchain and a config layer.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Before adopting an eval framework, count the lines it would actually save you.&lt;/strong&gt;&#xA;If your product is stateless, prompt in and text out, a framework will save you real time.&#xA;Agent-focused harnesses like the UK AI Security Institute&amp;rsquo;s &lt;a href=&#34;https://inspect.aisi.org.uk/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Inspect&lt;/a&gt; even host the isolated test environments for you.&#xA;But no framework knows your product&amp;rsquo;s rules, so the fixtures, the facts the judge grades against, and the checks are still yours to write.&lt;/p&gt;&#xA;&lt;h2 id=&#34;lesson-2-dont-let-the-judge-grade-from-memory&#34;&gt;Lesson 2: don&amp;rsquo;t let the judge grade from memory&lt;/h2&gt;&#xA;&lt;p&gt;One of the first bugs my evals caught was in the judge, not the plugin.&lt;/p&gt;&#xA;&lt;p&gt;The plugin taught a real, documented Claude Code feature that shipped recently.&#xA;The judge flagged it as fabricated.&#xA;The judge&amp;rsquo;s training data was older than the feature, so it was grading 2026 answers with frozen knowledge, confidently calling the truth an invention.&lt;/p&gt;&#xA;&lt;p&gt;That turned into a rule the suite still enforces: &lt;strong&gt;the judge only fails an answer based on facts it was handed, never on facts it remembers.&lt;/strong&gt;&#xA;Handed means literally pasted into the judge&amp;rsquo;s prompt: the list of plugins that exist, the documentation behind each capability, and the files in the fixture project.&#xA;An instruction like &amp;quot;you know what Claude Code supports&amp;quot; is a mistake, because the judge&amp;rsquo;s knowledge is frozen at training time.&#xA;Same goes for any fact your judge couldn&amp;rsquo;t have learned in training: your internal rules, your data, whatever shipped last month.&lt;/p&gt;&#xA;&lt;p&gt;Stale knowledge doesn&amp;rsquo;t only hide in the judge&amp;rsquo;s training.&#xA;One of my tests described, in prose, what one of the plugin&amp;rsquo;s data files should contain.&#xA;That file changes weekly by design, and the test failed three correct plugin answers in a row.&#xA;Prose descriptions go stale the moment the file changes, so now the judge gets the file itself instead of my description of it.&lt;/p&gt;&#xA;&lt;h2 id=&#34;lesson-3-measure-your-judge-before-trusting-it&#34;&gt;Lesson 3: measure your judge before trusting it&lt;/h2&gt;&#xA;&lt;p&gt;Handing the judge files fixed what it knew.&#xA;It did nothing for how it reasoned.&lt;/p&gt;&#xA;&lt;p&gt;It took me weeks to check the judge itself, because &lt;strong&gt;a broken judge doesn&amp;rsquo;t look broken.&lt;/strong&gt;&#xA;Its wrong verdicts look like product failures, so every red result sent me to fix the plugin instead of questioning the grader.&#xA;Eventually I blind-labeled a sample of the judge&amp;rsquo;s verdicts: reviewer agents read each answer and formed their own verdict before seeing the judge&amp;rsquo;s, and I settled the disagreements myself.&#xA;I used AI to audit the AI.&#xA;The &lt;a href=&#34;https://arxiv.org/pdf/2306.05685&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;textbook version&lt;/a&gt; has a human label everything.&#xA;Letting AI reviewers do the first pass is what made it a couple hours of my time instead of a day.&#xA;Measuring and correcting a judge this way is called calibrating it.&lt;/p&gt;&#xA;&lt;p&gt;The judge turned out to be right 75 percent of the time, meaning one verdict in four was wrong.&lt;/p&gt;&#xA;&lt;p&gt;My own spec, the written rules for how the plugin must answer, required every recommendation to carry a &amp;quot;do it now&amp;quot; offer, and the judge failed answers for containing exactly that offer.&#xA;It passed an answer that skipped a required warning label, because a similar-looking phrase nearby fooled it.&#xA;And it excused some failures by citing exceptions that nobody had written anywhere.&#xA;Every error came from one sentence in the judge&amp;rsquo;s instructions or one ambiguous sentence in my spec, and every fix was one sentence long.&lt;/p&gt;&#xA;&lt;p&gt;False greens, answers that broke the rules but passed anyway, were the expensive kind.&#xA;A wrong failure gets investigated.&#xA;A false green stays quiet: nobody checks a passing test, so the bug survives.&#xA;The couple hours I spent calibrating earned more trust in the suite than anything else in the project, and I did it two weeks late.&#xA;Two days after the one-sentence fixes, the same blind check hit 100 percent on a fresh sample of 24 verdicts.&lt;/p&gt;&#xA;&lt;h2 id=&#34;lesson-4-your-test-environment-misleads-you-too&#34;&gt;Lesson 4: your test environment misleads you too&lt;/h2&gt;&#xA;&lt;p&gt;The judge had misled me more than once by then, so I got suspicious of the one component I had never questioned: the fixture project, the sample codebase Claude had generated at the start.&#xA;That suspicion was justified.&lt;/p&gt;&#xA;&lt;p&gt;The fixture&amp;rsquo;s own docs claimed it was a web service built with &lt;a href=&#34;https://expressjs.com/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Express&lt;/a&gt;, a popular Node.js framework.&#xA;It had no routes and no server, and the Express dependency sat unused.&#xA;One test asked the plugin to document &amp;quot;our orders endpoints&amp;quot;, endpoints that didn&amp;rsquo;t exist.&#xA;One earlier failure I&amp;rsquo;d blamed on the plugin was actually the plugin correctly catching the fixture&amp;rsquo;s false claim, and getting punished for it.&#xA;Better yet, Claude had left a comment in the fixture&amp;rsquo;s source code: &amp;quot;eval cases need real paths to ground against&amp;quot;.&#xA;In plain words: a note that this codebase exists to be tested.&#xA;Every test run, the plugin under test could read that it was inside a test.&#xA;That matters more than it sounds: &lt;a href=&#34;https://arxiv.org/pdf/2505.23836&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;models often detect when they are being evaluated&lt;/a&gt;, and may behave differently when they do.&#xA;The fix is two cheap checks.&#xA;&lt;strong&gt;Verify every claim the fixture makes about itself against its own files, and search it for anything that admits it&amp;rsquo;s a test.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;By that point the judge had invented exceptions, my spec had proven ambiguous, and the fixture had lied about what it was.&#xA;All three failures shared the same shape: something that sounded right until it was checked.&lt;/p&gt;&#xA;&lt;h2 id=&#34;the-discovery-that-changed-my-strategy&#34;&gt;The discovery that changed my strategy&lt;/h2&gt;&#xA;&lt;p&gt;Around week four I got tired of iterating: twenty-ish pull requests, each fixing one eval failure, and some introducing regressions.&#xA;I told Claude there has to be a better approach.&lt;/p&gt;&#xA;&lt;p&gt;The audit that followed found what I should have seen earlier.&#xA;Most failures lived in one layer: the judge interpreting prose.&#xA;A few checks skipped the judge entirely, plain code like greps and file comparisons, and they&amp;rsquo;d never produced a wrong verdict.&lt;/p&gt;&#xA;&lt;p&gt;That&amp;rsquo;s when I realized &lt;strong&gt;I didn&amp;rsquo;t need to make the judge better, I needed to rely on it less.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;So I gave the plugin a receipt to append to its answers: one HTML comment, a machine-readable summary of what it just did.&lt;/p&gt;&#xA;&lt;figure class=&#34;code&#34; data-pagefind-weight=&#34;0.5&#34;&gt;&#xA;  &lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&amp;lt;!-- mentor mode=problem goal=debugging move=autonomous-loops surprise=hooks-as-workflow --&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/figure&gt;&#xA;&lt;p&gt;Users never see it: the plugin only emits the receipt when an environment variable enables it, and only the eval runner sets that variable.&#xA;The fields are the plugin&amp;rsquo;s own vocabulary: the mode it ran in, the goal it classified, the move it recommended, and the surprise, a bonus capability it taught along the way.&#xA;The eval runner reads it, and suddenly the hard questions become string comparisons.&#xA;Did it classify correctly?&#xA;Just check if the goal equals &amp;quot;debugging&amp;quot;.&#xA;Did it re-offer the capability the user declined?&#xA;Just grep for it.&#xA;Same verdict every time.&lt;/p&gt;&#xA;&lt;aside class=&#34;adm adm-important&#34;&gt;&lt;div class=&#34;adm-label&#34; data-pagefind-ignore&gt;IMPORTANT&lt;/div&gt;&lt;p&gt;This works because the plugin&amp;rsquo;s decisions come from a fixed menu of goals and moves.&#xA;The receipt only works if your product&amp;rsquo;s answers fit a short vocabulary.&lt;/p&gt;&lt;/aside&gt;&lt;p&gt;The judge didn&amp;rsquo;t disappear.&#xA;A few cases genuinely need judgment, like the fabrication trap: ask for a feature that doesn&amp;rsquo;t exist and check that the plugin says so instead of playing along.&#xA;Everywhere else, the judge now answers exactly one question: does the answer match its receipt?&#xA;That one still needs a judge, because a model could write a receipt claiming one thing while the answer does another, and only a reader can catch the mismatch.&#xA;But one question is a far easier job than before, when my written expectations asked the judge to verify over a dozen separate things per answer.&#xA;A calibrated judge scores well, but only for a moment.&#xA;New cases can reintroduce the old biases, and I would have to keep re-checking it forever.&#xA;A string comparison never needs calibrating.&lt;/p&gt;&#xA;&lt;aside class=&#34;adm adm-warning&#34;&gt;&lt;div class=&#34;adm-label&#34; data-pagefind-ignore&gt;WARNING&lt;/div&gt;&lt;p&gt;Adding the receipt changes the model you&amp;rsquo;re measuring.&#xA;This is a documented pattern: &lt;a href=&#34;https://arxiv.org/pdf/2408.02442&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;format requirements measurably degrade model output&lt;/a&gt;.&#xA;I A/B tested the same cases with and without the receipt, and saw no effect at first.&#xA;Then my busiest test case, the one whose answers already carried the most work, started failing more often: producing the receipt cost the model effort exactly where it had none to spare.&#xA;Shrinking the receipt from five fields to the four you saw above recovered most of the loss.&#xA;So run this comparison on your most loaded case, not an easy one.&lt;/p&gt;&lt;/aside&gt;&lt;h2 id=&#34;lesson-5-your-rules-can-fight-each-other&#34;&gt;Lesson 5: your rules can fight each other&lt;/h2&gt;&#xA;&lt;p&gt;One rule in my plugin says: never mention a capability the user has declined.&#xA;One test checks it.&#xA;The gate runs every case three times per release, because a single run can pass by luck, and this test kept failing for two weeks, at first roughly one run in three.&lt;/p&gt;&#xA;&lt;p&gt;Six fixes lowered the failure rate, but none reached zero.&#xA;The model kept finding new sentences for the same leak, and at one point the investigation revealed why: another of my own rules was demanding the model justify its choice, and the only honest justification named the declined capability.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;When a model keeps violating an instruction in creative new ways, look for the second instruction rewarding it.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;h2 id=&#34;lesson-6-not-every-failure-can-reach-zero&#34;&gt;Lesson 6: not every failure can reach zero&lt;/h2&gt;&#xA;&lt;p&gt;The last lesson is the one I resisted longest.&lt;/p&gt;&#xA;&lt;p&gt;Even after resolving the rules conflict, a residual failure rate remained: about 15 to 20 percent, stable, measured across dozens of individual runs.&#xA;What should a release gate do with a test like that, when no prompt engineering can remove the failures?&lt;/p&gt;&#xA;&lt;p&gt;Failing every release would be honest but useless.&#xA;It would block a third or more of releases without surfacing anything new.&#xA;Retrying until green would be worse than no test at all, because a green earned by retries just means I got lucky.&#xA;So I split tests into two kinds:&lt;/p&gt;&#xA;&lt;div class=&#34;table-wrap&#34;&gt;&#xA;&lt;table&gt;&#xA;  &lt;colgroup&gt;&lt;col style=&#34;width: 20%&#34;&gt;&lt;col style=&#34;width: 40%&#34;&gt;&lt;col style=&#34;width: 40%&#34;&gt;&lt;/colgroup&gt;&#xA;  &lt;thead&gt;&#xA;    &lt;tr&gt;&#xA;      &lt;th&gt;Kind&lt;/th&gt;&#xA;      &lt;th&gt;Example&lt;/th&gt;&#xA;      &lt;th&gt;Gate policy&lt;/th&gt;&#xA;    &lt;/tr&gt;&#xA;  &lt;/thead&gt;&#xA;  &lt;tbody&gt;&#xA;    &lt;tr&gt;&#xA;      &lt;td&gt;Promises&lt;/td&gt;&#xA;      &lt;td&gt;never invent a feature, never corrupt the user&amp;rsquo;s data&lt;/td&gt;&#xA;      &lt;td&gt;Must pass every single run. One failure blocks the release.&lt;/td&gt;&#xA;    &lt;/tr&gt;&#xA;    &lt;tr&gt;&#xA;      &lt;td&gt;Rates&lt;/td&gt;&#xA;      &lt;td&gt;wording rules, like never naming a capability the user declined&lt;/td&gt;&#xA;      &lt;td&gt;Compared with the same test&amp;rsquo;s own recent failure rate. The gate goes red only when the rate &lt;em&gt;worsens&lt;/em&gt;.&lt;/td&gt;&#xA;    &lt;/tr&gt;&#xA;  &lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&lt;/div&gt;&#xA;&lt;p&gt;I made the suite compute each flaky check&amp;rsquo;s baseline from the last five runs and ask a boring statistical question: is today&amp;rsquo;s failure count surprising, given the known rate?&#xA;The idea is anything but new: Google was already &lt;a href=&#34;https://testing.googleblog.com/2016/05/flaky-tests-at-google-and-how-we.html&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;treating its known-flaky tests this way&lt;/a&gt; back in 2016.&#xA;Bad luck within the rate still passes, with a printed warning saying so.&#xA;A genuine regression stays red.&#xA;The test that blocked two releases became a monitored number that has not caused a crisis since.&lt;/p&gt;&#xA;&lt;h2 id=&#34;starting-from-scratch&#34;&gt;If you are starting from scratch&lt;/h2&gt;&#xA;&lt;p&gt;Eight things I&amp;rsquo;d tell myself a month ago:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Before adopting an eval framework, count the lines it would actually save you. State is the hard part, and fixtures and rules are yours to write either way.&lt;/li&gt;&#xA;&lt;li&gt;Hand the judge files, never facts from memory. The judge&amp;rsquo;s memory is frozen at training time, and yours goes stale the moment the thing you described changes, like a prose description of a file that changes weekly.&lt;/li&gt;&#xA;&lt;li&gt;Start with 10 cases and a judge, but calibrate the judge in week one. Blind-label a sample of verdicts. The result will surprise you, and every disagreement is a one-sentence fix.&lt;/li&gt;&#xA;&lt;li&gt;Move every check you can into plain code. Counting, greps, file diffs. If your product&amp;rsquo;s answers fit a short vocabulary, ask the model to emit a structured receipt instead, enabled by an environment variable only your eval runner sets. Reserve the judge for questions that need judgment.&lt;/li&gt;&#xA;&lt;li&gt;When a model repeatedly breaks a rule, audit your other rules first. The contradiction may be yours.&lt;/li&gt;&#xA;&lt;li&gt;Log every run to a file you keep. Per-case history is how you tell a flaky test from a stable 15 percent failure rate wearing a flaky costume. Without it, you can&amp;rsquo;t tell the difference.&lt;/li&gt;&#xA;&lt;li&gt;Decide which tests are promises and which are rates, and give them different gates. One policy for both will either block good releases or let real failures slip through.&lt;/li&gt;&#xA;&lt;li&gt;Make every eval-fix PR prove its fix in the PR. Run the target case several times before merging. Without that, &amp;quot;the diff looks right&amp;quot; quietly becomes &amp;quot;fixed&amp;quot;.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;h2 id=&#34;dig-deeper&#34;&gt;Dig deeper&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://platform.claude.com/docs/en/test-and-evaluate/develop-tests&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Anthropic&amp;rsquo;s guide to building evals&lt;/a&gt; covers eval design and grading options, including code-based and model-based grading.&lt;/li&gt;&#xA;&lt;li&gt;Hamel Husain&amp;rsquo;s &lt;a href=&#34;https://hamel.dev/blog/posts/evals/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Your AI Product Needs Evals&lt;/a&gt; is the best practitioner introduction I know, and his follow-up on &lt;a href=&#34;https://hamel.dev/blog/posts/llm-judge/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;LLM-as-judge&lt;/a&gt; walks through judge calibration with a domain expert, the technique that caught my broken judge.&lt;/li&gt;&#xA;&lt;li&gt;The evals section of Eugene Yan&amp;rsquo;s &lt;a href=&#34;https://eugeneyan.com/writing/llm-patterns/#evals-to-measure-performance&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Patterns for Building LLM-based Systems &amp;amp; Products&lt;/a&gt; surveys eval patterns and their tradeoffs.&lt;/li&gt;&#xA;&lt;li&gt;The &lt;a href=&#34;https://arxiv.org/pdf/2005.04118&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;CheckList paper&lt;/a&gt; (Ribeiro et al.) inspired how I picked cases: cover each capability and each rule systematically instead of adding cases as they occur to you.&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://arxiv.org/pdf/2406.12045&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;τ-bench&lt;/a&gt; introduced &lt;code&gt;pass^k&lt;/code&gt;, the &amp;quot;must pass every run&amp;quot; metric this post calls promises, and shows how badly single-run pass rates overstate agent reliability.&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://arxiv.org/pdf/2411.00640&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Adding Error Bars to Evals&lt;/a&gt; argues that eval numbers should come with uncertainty estimates, the statistics behind treating failures as rates.&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://inspect.aisi.org.uk/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Inspect&lt;/a&gt; natively supports repeated runs per case and rules for combining their verdicts, if you want rates without building them yourself.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;I&amp;rsquo;m one month into evals, and still learning.&#xA;It took me most of that month to stop fixing failures that don&amp;rsquo;t matter.&#xA;I worked through all of it with Claude Fable 5, and we checked every claim in this post against the suite&amp;rsquo;s code and run logs.&#xA;The whole suite is &lt;a href=&#34;https://github.com/gwenneg/ai-mentor&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;open source&lt;/a&gt; if you want to see any of it for real.&lt;/p&gt;&#xA;&lt;p&gt;If you&amp;rsquo;ve built evals for your own product, or you&amp;rsquo;re about to, I&amp;rsquo;m curious how it compares: share your experience, tips, or corrections in the comments.&lt;/p&gt;&#xA;</content>
    <author><name>Gwenneg Lepage</name></author>
    <category term="ai"/>
    <category term="claude code"/>
    <category term="evals"/>
    <category term="llm"/>
    <category term="testing"/>
    <summary type="html">You can’t unit-test an AI. Notes from a month of building evals instead.</summary>
  </entry>
  <entry>
    <title type="html">Which 80% of Claude Code are you missing?</title>
    <link href="https://gwenneg.com/2026/07/13/which-80-percent-of-claude-code-are-you-missing.html" rel="alternate" type="text/html" title="Which 80% of Claude Code are you missing?"/>
    <published>2026-07-13T00:00:00+02:00</published>
    <updated>2026-07-13T00:00:00+02:00</updated>
    <id>https://gwenneg.github.io/2026/07/13/which-80-percent-of-claude-code-are-you-missing</id>
    <content type="html" xml:base="https://gwenneg.com/2026/07/13/which-80-percent-of-claude-code-are-you-missing.html">&lt;aside class=&#34;adm adm-note&#34; data-pagefind-ignore&gt;&lt;div class=&#34;adm-label&#34; data-pagefind-ignore&gt;NOTE&lt;/div&gt;&lt;p&gt;This post was written with the help of AI.&lt;/p&gt;&lt;/aside&gt;&lt;p&gt;You&amp;rsquo;re probably using 20% of Claude Code, and you have no way of knowing which 80% you&amp;rsquo;re missing.&lt;/p&gt;&#xA;&lt;p&gt;Did you know the &lt;code&gt;/rewind&lt;/code&gt; menu can bring back the conversation you just wiped with &lt;code&gt;/clear&lt;/code&gt;?&#xA;That &lt;code&gt;/usage&lt;/code&gt; can tell you which plugin or MCP server is eating your rate limit?&#xA;That &lt;code&gt;/goal&lt;/code&gt; keeps Claude working unattended, across as many turns as it takes, until a condition you stated holds?&#xA;If any of those are news to you, that&amp;rsquo;s your 80%.&#xA;And none of it is hidden: everything is in Claude Code&amp;rsquo;s docs, and something new lands nearly every week.&#xA;The problem is that you cannot search for a capability you don&amp;rsquo;t know exists.&lt;/p&gt;&#xA;&lt;p&gt;Even if you know a Claude Code feature exists, nothing reminds you of it when a problem shows up.&#xA;A developer whose test fails one time in five doesn&amp;rsquo;t wonder whether an autonomous loop with a machine-checkable finish line would help.&#xA;They wonder how to fix the flaky test, and they retry the pipeline for another week.&lt;/p&gt;&#xA;&lt;p&gt;I built &lt;a href=&#34;https://github.com/gwenneg/ai-mentor&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;AI Mentor&lt;/a&gt; to close that gap.&#xA;It&amp;rsquo;s a Claude Code plugin that reads your setup, your session and your repo, computes the difference between what Claude Code offers and what you actually use, and teaches you the most valuable thing you&amp;rsquo;re missing.&lt;/p&gt;&#xA;&lt;h2 id=&#34;what-a-session-with-ai-mentor-looks-like&#34;&gt;What a session with AI Mentor looks like&lt;/h2&gt;&#xA;&lt;p&gt;Say a CVE just dropped against a library you depend on:&lt;/p&gt;&#xA;&lt;figure class=&#34;code&#34; data-pagefind-weight=&#34;0.5&#34;&gt;&#xA;  &lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;/ai-mentor:mentor Our scanner flagged jackson-databind for CVE-2022-42003. Do we need the upgrade and what breaks if we bump it?&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/figure&gt;&#xA;&lt;h3 id=&#34;grounded-in-your-repo&#34;&gt;Grounded in your repo&lt;/h3&gt;&#xA;&lt;p&gt;Before recommending anything, the mentor reads your dependency file and finds the exact version you&amp;rsquo;re pinned to.&#xA;The answer names that version, not a generic &amp;quot;check whether you are affected&amp;quot;.&lt;/p&gt;&#xA;&lt;h3 id=&#34;one-move-with-the-why&#34;&gt;One move, with the why&lt;/h3&gt;&#xA;&lt;p&gt;The mentor recommends a single approach, with the reasoning behind it, instead of a list of options to compare.&#xA;Here the move is deep research, with a research question the mentor drafts from the repo: affected version ranges, what an attacker actually needs, and the breaking-change history between your exact pin and the fixed release.&lt;/p&gt;&#xA;&lt;p&gt;A routine CVE doesn&amp;rsquo;t need this: when the advisory is unambiguous and the fix is a patch bump, you read it and bump.&#xA;The move exists for the other kind, where the severity is disputed, the vulnerable code path may not apply to your usage at all, and the real answer is scattered across changelogs, migration guides and issue threads.&#xA;That&amp;rsquo;s the part of CVE triage that actually takes the time, and it&amp;rsquo;s multi-source, contested-information work: the deep research harness runs parallel searches and adversarially cross-checks claims against each other before citing them.&#xA;Most engineers don&amp;rsquo;t know this harness exists and assume AI research means a single web search.&lt;/p&gt;&#xA;&lt;h3 id=&#34;one-surprise&#34;&gt;One surprise&lt;/h3&gt;&#xA;&lt;p&gt;Every answer also carries one capability you probably didn&amp;rsquo;t know about, picked for you based on what the mentor knows you haven&amp;rsquo;t seen yet.&#xA;Here it might be worktree isolation: try the upgrade in a disposable copy of your repo and get a real damage report, instead of guessing the impact from the changelog.&lt;/p&gt;&#xA;&lt;h3 id=&#34;the-rest-behind-more&#34;&gt;The rest behind &amp;quot;more&amp;quot;&lt;/h3&gt;&#xA;&lt;p&gt;Say &amp;quot;more&amp;quot; and the full ranked list appears, and for this problem it covers the rest of the CVE&amp;rsquo;s lifecycle rather than five variations of one idea: plan mode to map which of your modules actually depend on the vulnerable package before you commit to anything, MCP context to wire your scanner&amp;rsquo;s findings straight into the conversation.&#xA;That wiring is more available than most people realize: GitHub&amp;rsquo;s official MCP server exposes your Dependabot alerts, the open-source scanners Trivy and OSV-Scanner ship MCP servers of their own, and every commercial scanner I checked publishes one too.&lt;/p&gt;&#xA;&lt;p&gt;The mentor also saves you a wrong turn: ask it how to detect CVEs in your dependencies and it won&amp;rsquo;t point you at &lt;code&gt;/security-review&lt;/code&gt;, whose analysis deliberately excludes exactly those findings.&#xA;No built-in Claude Code feature scans dependencies against an advisory database, and the mentor tells you so instead of improvising.&#xA;Detection stays with your scanner, and the MCP wiring above is exactly how its findings reach Claude for the assessment and the fix.&lt;/p&gt;&#xA;&lt;h3 id=&#34;nothing-is-homework&#34;&gt;Nothing is homework&lt;/h3&gt;&#xA;&lt;p&gt;The response ends with the exact &lt;code&gt;/deep-research&lt;/code&gt; line to paste, question already drafted from your repo, and the worktree command if you want the damage report first.&#xA;And when the move is something Claude can set up itself (a hook, a custom agent, a CI workflow), the mentor offers to write it in the same session.&lt;/p&gt;&#xA;&lt;h2 id=&#34;it-never-repeats-itself&#34;&gt;It never repeats itself&lt;/h2&gt;&#xA;&lt;p&gt;The mentor keeps a small markdown file at &lt;code&gt;~/.ai-mentor/profile.md&lt;/code&gt;, one line per capability, marked &lt;code&gt;shown&lt;/code&gt;, &lt;code&gt;adopted&lt;/code&gt; or &lt;code&gt;declined&lt;/code&gt;:&lt;/p&gt;&#xA;&lt;figure class=&#34;code&#34; data-pagefind-weight=&#34;0.5&#34;&gt;&#xA;  &lt;p&gt;&lt;strong&gt;~/.ai-mentor/profile.md&lt;/strong&gt;&lt;/p&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-markdown&#34; data-lang=&#34;markdown&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;gh&#34;&gt;# Mentor Profile&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;*Updated: 2026-07-13*&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;Level: comfortable (daily Claude Code use, no automation yet)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;Last new-capability check: 2026-w28&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;| Capability | Status | Date | Note |&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;|------------|--------|------|------|&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;| plan-mode | adopted | 2026-06-19 | Uses Shift+Tab habitually |&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;| hooks-as-workflow | adopted | 2026-06-26 | PostToolUse test hook in settings |&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;| deep-research | shown | 2026-07-08 | Demoed on the jackson-databind CVE triage |&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;| worktree-isolation | shown | 2026-07-08 | Upgrade damage report in a worktree |&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;| fan-out-workflows | declined | 2026-06-26 | &amp;#34;Too token-heavy for us&amp;#34; |&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/figure&gt;&#xA;&lt;p&gt;This one tells the mentor: never explain plan mode or hooks to this engineer, open the next session by asking whether the deep research demo stuck, and never bring up fan-out again.&#xA;It does not re-teach what it showed you last week, it skips what you already use, and it drops anything you declined.&lt;/p&gt;&#xA;&lt;p&gt;The profile is machine-local and never committed, and it never leaves your machine except as context inside your own Claude sessions.&#xA;You can edit or delete it whenever you want.&#xA;A hand edit always wins over anything the mentor inferred.&#xA;There is no account and no setup.&lt;/p&gt;&#xA;&lt;p&gt;This is also why the mentor becomes more useful over time: every session starts from what you already know and reaches for the next thing you don&amp;rsquo;t.&lt;/p&gt;&#xA;&lt;h2 id=&#34;growth-mode&#34;&gt;Growth mode: teach me something&lt;/h2&gt;&#xA;&lt;p&gt;Everything so far started from a problem you brought, which the plugin calls problem mode.&#xA;Growth mode works in the other direction: invoke the mentor bare, and it finds something worth teaching on its own.&lt;/p&gt;&#xA;&lt;figure class=&#34;code&#34; data-pagefind-weight=&#34;0.5&#34;&gt;&#xA;  &lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;/ai-mentor:mentor&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/figure&gt;&#xA;&lt;p&gt;Depending on what it finds in your setup and your profile, it teaches the most valuable capability you&amp;rsquo;re not using yet, follows up on the last thing it showed you, or opens with what shipped since you last checked.&lt;/p&gt;&#xA;&lt;p&gt;This also changes how you stay up to date.&#xA;Following Claude Code means tracking changelogs, release notes, videos, tutorials and blog posts, and nobody sustains that alongside a day job.&#xA;The mentor collapses all of it into a single interaction, and it only ever shows you the part that matters to you.&lt;/p&gt;&#xA;&lt;h2 id=&#34;whats-in-the-catalog&#34;&gt;What&amp;rsquo;s in the catalog&lt;/h2&gt;&#xA;&lt;p&gt;Under the hood, a playbook for each of 24 engineering goals (debugging, code review, refactoring, migration, incident response, performance, security, and so on) ranks 46 approaches.&#xA;Most of them are technique deep-dives, and the rest are verified records of external tools such as the Claude Code GitHub Action and hands-on-validated plugins from Anthropic&amp;rsquo;s official marketplace.&lt;/p&gt;&#xA;&lt;p&gt;Two parts of the catalog are worth mentioning separately.&lt;/p&gt;&#xA;&lt;p&gt;First, it also serves people building AI, not just people using it.&#xA;Four goal categories cover building AI agents, MCP integrations, skills and plugins, and LLM-powered product features, backed by dedicated catalog entries for the Agent SDK, MCP development tooling and LLM eval methodology.&#xA;If your team is shipping an AI feature, &amp;quot;what&amp;rsquo;s the right approach here?&amp;quot; is a mentor question too.&lt;/p&gt;&#xA;&lt;p&gt;Second, beyond the promoted set, the full &lt;a href=&#34;https://github.com/anthropics/claude-plugins-official&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;official plugin marketplace&lt;/a&gt; (around 250 plugins) is available as a lookup directory.&#xA;Name a technology in your problem, Quarkus or Terraform or Grafana, and the mentor greps the directory and surfaces the purpose-built plugin along with its install command.&#xA;Every entry is labeled with how far it was verified: hands-on (installed and exercised), desk-checked (reviewed but not exercised), or caution (a built-in does it better, or there is a sharp edge to know about).&lt;/p&gt;&#xA;&lt;h2 id=&#34;why-not-just-ask-claude&#34;&gt;Why not just ask Claude?&lt;/h2&gt;&#xA;&lt;p&gt;Claude already knows a lot about Claude Code, so why install a plugin instead of asking &amp;quot;what&amp;rsquo;s the best AI approach for debugging this?&amp;quot;&lt;/p&gt;&#xA;&lt;p&gt;Because a model answering from memory is fine on average and unreliable in the details.&#xA;Claude Code changes every week, so any model&amp;rsquo;s memory of it has gaps, and a model asked about a gap doesn&amp;rsquo;t say &amp;quot;I don&amp;rsquo;t know&amp;quot;.&#xA;It fills the gap with a plausible guess.&lt;/p&gt;&#xA;&lt;h3 id=&#34;a-command-that-does-not-exist&#34;&gt;A command that does not exist&lt;/h3&gt;&#xA;&lt;p&gt;While writing this post, I asked Claude Fable 5, in a session without the plugin, which command searches the plugin marketplace.&#xA;The answer, from memory: &lt;code&gt;claude plugin search &amp;lt;query&amp;gt;&lt;/code&gt;, described with full confidence down to the argument syntax.&#xA;That command does not exist.&#xA;Even the strongest Claude available today fails this way when its memory has a gap.&#xA;The same answer correctly named &lt;code&gt;claude plugin install&lt;/code&gt;, and that is what makes the invented half so hard to spot: the correct and the fabricated command sit side by side, delivered with the same confidence.&lt;/p&gt;&#xA;&lt;h3 id=&#34;same-failure-other-shapes&#34;&gt;Same failure, other shapes&lt;/h3&gt;&#xA;&lt;p&gt;Each guess below follows the same pattern, and each correction was checked against the current official docs:&lt;/p&gt;&#xA;&lt;div class=&#34;table-wrap&#34;&gt;&#xA;&lt;table&gt;&#xA;  &lt;colgroup&gt;&lt;col style=&#34;width: 50%&#34;&gt;&lt;col style=&#34;width: 50%&#34;&gt;&lt;/colgroup&gt;&#xA;  &lt;thead&gt;&#xA;    &lt;tr&gt;&#xA;      &lt;th&gt;The plausible guess&lt;/th&gt;&#xA;      &lt;th&gt;The reality&lt;/th&gt;&#xA;    &lt;/tr&gt;&#xA;  &lt;/thead&gt;&#xA;  &lt;tbody&gt;&#xA;    &lt;tr&gt;&#xA;      &lt;td&gt;An environment variable that feels like it should exist: &lt;code&gt;$CLAUDE_FILE_PATH&lt;/code&gt; in a hook&lt;/td&gt;&#xA;      &lt;td&gt;No such variable exists: hooks receive their input as JSON on stdin&lt;/td&gt;&#xA;    &lt;/tr&gt;&#xA;    &lt;tr&gt;&#xA;      &lt;td&gt;A config format guessed from convention: custom agent &lt;code&gt;tools&lt;/code&gt; as a YAML list&lt;/td&gt;&#xA;      &lt;td&gt;The &lt;code&gt;tools&lt;/code&gt; field is a comma-separated string&lt;/td&gt;&#xA;    &lt;/tr&gt;&#xA;    &lt;tr&gt;&#xA;      &lt;td&gt;A path that mirrors a real one: MCP config in &lt;code&gt;~/.claude/mcp.json&lt;/code&gt;&lt;/td&gt;&#xA;      &lt;td&gt;User-scoped MCP servers live in &lt;code&gt;~/.claude.json&lt;/code&gt;&lt;/td&gt;&#xA;    &lt;/tr&gt;&#xA;    &lt;tr&gt;&#xA;      &lt;td&gt;A behavior assumed from similar features: &amp;quot;checkpoints don&amp;rsquo;t survive a restart&amp;quot;&lt;/td&gt;&#xA;      &lt;td&gt;Checkpoints persist across sessions and are cleaned up after 30 days&lt;/td&gt;&#xA;    &lt;/tr&gt;&#xA;  &lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&lt;/div&gt;&#xA;&lt;h3 id=&#34;a-moving-target&#34;&gt;A moving target&lt;/h3&gt;&#xA;&lt;p&gt;Claude Code moves faster than any model&amp;rsquo;s memory of it.&#xA;A guess that is wrong today can quietly become right after a release, and a correct answer can go stale the same way.&#xA;Whatever the model tells you, you never know which side of that line it is on.&#xA;A catalog that is verified against the docs, and re-verified as they change, takes memory out of the loop.&lt;/p&gt;&#xA;&lt;h2 id=&#34;keeping-the-catalog-accurate&#34;&gt;Keeping the catalog accurate&lt;/h2&gt;&#xA;&lt;p&gt;A catalog loses its value the moment its content stops matching reality, so most of the engineering in this project went into the pipeline that keeps it accurate:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;A linter runs in CI and verifies the catalog&amp;rsquo;s structural invariants on every PR: every playbook ranking points at a real approach file, every tool record is structurally complete, and the compiled capability index stays in sync with its sources.&lt;/li&gt;&#xA;&lt;li&gt;A drift checker compares the catalog against the live official marketplace manifest, so plugins added or removed upstream are flagged instead of the directory silently going stale.&lt;/li&gt;&#xA;&lt;li&gt;A &lt;a href=&#34;https://github.com/gwenneg/ai-mentor/blob/main/.claude/skills/ai-mentor-update/SKILL.md&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;maintenance skill&lt;/a&gt; keeps the content current: every Monday, a headless Claude session runs it in CI, processes the week&amp;rsquo;s Claude Code changelog, syncs the catalog, and opens a pull request for human review. Weeks with nothing to do are detected deterministically and skipped, so quiet weeks cost nothing.&lt;/li&gt;&#xA;&lt;li&gt;The same skill has a deeper mode that re-verifies the claims in each file against current official docs, oldest-verified first. Every file carries its last-verified date, and the full catalog was last re-verified against Claude Code v2.1.206.&lt;/li&gt;&#xA;&lt;li&gt;An automated benchmark suite is wired into CI for every release. It checks classification, grounding, output shape, the never-repeat guarantee, and that recommendations contain zero fabricated commands.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;The pipeline also runs on the same capabilities the catalog teaches: the maintenance passes are headless Claude sessions on a weekly schedule, so the plugin that recommends AI workflows is itself maintained by one.&lt;/p&gt;&#xA;&lt;h2 id=&#34;find-your-80&#34;&gt;Find your 80%&lt;/h2&gt;&#xA;&lt;p&gt;Installation is three lines in Claude Code, no cloning and no file editing.&#xA;The first line adds my plugin marketplace, claude-ichiba, and the next two install the plugin from it:&lt;/p&gt;&#xA;&lt;figure class=&#34;code&#34; data-pagefind-weight=&#34;0.5&#34;&gt;&#xA;  &lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;/plugin marketplace add gwenneg/claude-ichiba&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;/plugin install ai-mentor@claude-ichiba&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;/reload-plugins&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/figure&gt;&#xA;&lt;aside class=&#34;adm adm-note&#34;&gt;&lt;div class=&#34;adm-label&#34; data-pagefind-ignore&gt;NOTE&lt;/div&gt;&lt;p&gt;Installing a plugin usually means letting its author run code on your machine.&#xA;AI Mentor ships no hooks, no MCP servers and no binaries: everything it does goes through Claude&amp;rsquo;s normal permission prompts, and you can audit every file before installing, since it&amp;rsquo;s all markdown.&#xA;And every release is pinned to an immutable commit SHA: what you install is what you keep running, and work in progress on &lt;code&gt;main&lt;/code&gt; never reaches you.&lt;/p&gt;&lt;/aside&gt;&lt;p&gt;Then bring it a real problem, or bring nothing and let &lt;a href=&#34;#growth-mode&#34;&gt;growth mode&lt;/a&gt; pick the lesson:&lt;/p&gt;&#xA;&lt;figure class=&#34;code&#34; data-pagefind-weight=&#34;0.5&#34;&gt;&#xA;  &lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;/ai-mentor:mentor [your problem, or leave empty to learn something you don&amp;#39;t know]&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/figure&gt;&#xA;&lt;p&gt;You don&amp;rsquo;t have to remember to call it either.&#xA;If you ask something mentor-shaped in a normal session, like &amp;quot;what&amp;rsquo;s the best way to use AI for this?&amp;quot;, Claude invokes it on its own.&lt;/p&gt;&#xA;&lt;p&gt;Claude Code disables auto-update for third-party marketplaces by default, but this plugin ships updates regularly, because the catalog tracks a tool that changes weekly.&#xA;Either enable auto-update once (&lt;code&gt;/plugin&lt;/code&gt; → Marketplaces → claude-ichiba), or refresh manually whenever you want the latest catalog:&lt;/p&gt;&#xA;&lt;figure class=&#34;code&#34; data-pagefind-weight=&#34;0.5&#34;&gt;&#xA;  &lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;/plugin marketplace update claude-ichiba&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;/reload-plugins&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/figure&gt;&#xA;&lt;aside class=&#34;adm adm-tip&#34;&gt;&lt;div class=&#34;adm-label&#34; data-pagefind-ignore&gt;TIP&lt;/div&gt;&lt;p&gt;Not sure when to update? &lt;a href=&#34;https://github.com/gwenneg/ai-mentor/subscription&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Subscribe to releases&lt;/a&gt; and GitHub will tell you the moment a new version ships, so you know exactly when to run the update above.&lt;/p&gt;&lt;/aside&gt;&lt;p&gt;If you try it, start with the problem you are actually dealing with today.&#xA;The plugin did its job when the answer contains something you didn&amp;rsquo;t know existed.&#xA;And when it doesn&amp;rsquo;t, tell the mentor: it records what you already know and does better next time.&lt;/p&gt;&#xA;&lt;h2 id=&#34;whats-next&#34;&gt;What&amp;rsquo;s next?&lt;/h2&gt;&#xA;&lt;p&gt;AI Mentor is deliberately Claude Code-first, so every recommendation can be verified against one tool&amp;rsquo;s current reality instead of being vaguely right about five tools.&#xA;Support for other Agent Skills-compatible tools may come later.&lt;/p&gt;&#xA;&lt;p&gt;I&amp;rsquo;m also considering the community plugin marketplace, which holds more than two thousand plugins of very uneven quality.&#xA;If it joins the catalog, it will be through a strict selection: a small set of proven, actively maintained plugins, carrying the same trust tiers as everything else.&lt;/p&gt;&#xA;&lt;p&gt;Everything is open source under Apache-2.0: the catalog, the playbooks, the verification tooling and the eval suite all live at &lt;a href=&#34;https://github.com/gwenneg/ai-mentor&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;github.com/gwenneg/ai-mentor&lt;/a&gt;.&#xA;Issues and pull requests are welcome, especially reports of anything the mentor got wrong.&lt;/p&gt;&#xA;</content>
    <author><name>Gwenneg Lepage</name></author>
    <category term="ai"/>
    <category term="claude code"/>
    <category term="developer experience"/>
    <category term="plugins"/>
    <summary type="html">AI Mentor is a Claude Code plugin that finds the capabilities you don’t know exist and teaches them one at a time, grounded in your real repo.</summary>
  </entry>
  <entry>
    <title type="html">Claude Code plugins and the trust nobody talks about</title>
    <link href="https://gwenneg.com/2026/06/26/claude-code-plugins-and-the-trust-nobody-talks-about.html" rel="alternate" type="text/html" title="Claude Code plugins and the trust nobody talks about"/>
    <published>2026-06-26T00:00:00+02:00</published>
    <updated>2026-06-26T00:00:00+02:00</updated>
    <id>https://gwenneg.github.io/2026/06/26/claude-code-plugins-and-the-trust-nobody-talks-about</id>
    <content type="html" xml:base="https://gwenneg.com/2026/06/26/claude-code-plugins-and-the-trust-nobody-talks-about.html">&lt;aside class=&#34;adm adm-note&#34; data-pagefind-ignore&gt;&lt;div class=&#34;adm-label&#34; data-pagefind-ignore&gt;NOTE&lt;/div&gt;&lt;p&gt;This post was written with the help of AI.&lt;/p&gt;&lt;/aside&gt;&lt;p&gt;I&amp;rsquo;ve been spending a lot of time with Claude Code skills, hooks and plugins lately.&#xA;When I started building &lt;a href=&#34;https://github.com/gwenneg/togi&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;togi&lt;/a&gt; (a friction-capture plugin), I quickly realized the way plugins are published comes with real supply-chain risks.&#xA;I wanted to understand them fully and mitigate them as much as possible before shipping anything.&#xA;Then a second plugin idea came up, and I needed a way to publish both from a single &lt;a href=&#34;https://github.com/gwenneg/claude-ichiba&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;marketplace&lt;/a&gt; while keeping each plugin in its own repo.&#xA;The multi-repo layout and the GitHub Actions plumbing for that are easy to find, but what I couldn&amp;rsquo;t find anywhere was the supply-chain security reasoning behind the design, and a working pipeline built around it.&#xA;The &lt;a href=&#34;https://code.claude.com/docs/en/plugin-marketplaces&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;official docs&lt;/a&gt; describe SHA pinning as a feature but never explain &lt;em&gt;why&lt;/em&gt; you should use it or what happens if you don&amp;rsquo;t.&lt;/p&gt;&#xA;&lt;p&gt;This post is what I learned: the risks, the mitigations, and the pipeline that ties it all together.&lt;/p&gt;&#xA;&lt;h2 id=&#34;a-plugin-is-not-a-library&#34;&gt;A plugin is not a library&lt;/h2&gt;&#xA;&lt;p&gt;A Claude Code plugin is not a passive dependency you import.&#xA;Installing one lets the author run code on your machine, at every session start and end, with no per-update review.&#xA;Hooks can run shell scripts, but they can also execute pre-compiled binaries shipped in the plugin repo.&#xA;Git preserves the executable bit, so a binary committed with &lt;code&gt;chmod +x&lt;/code&gt; is ready to run the moment Claude Code fetches the plugin.&#xA;No additional permission step on the user&amp;rsquo;s machine.&#xA;As of this writing, Claude Code shows no diff when plugin hooks change and asks for no re-approval.&#xA;There is no plugin signing, no checksum verification, no integrity check in the install path.&#xA;That is a lot of trust to hand someone.&lt;/p&gt;&#xA;&lt;p&gt;So the security bar for publishing a plugin is closer to running a software-update service than shipping a package.&#xA;Every design choice in this post follows from that.&lt;/p&gt;&#xA;&lt;h2 id=&#34;what-can-go-wrong&#34;&gt;What can go wrong&lt;/h2&gt;&#xA;&lt;p&gt;A plugin&amp;rsquo;s &lt;code&gt;source&lt;/code&gt; field in &lt;code&gt;marketplace.json&lt;/code&gt; tells Claude Code where to fetch the code.&#xA;The three options (branch, tag and SHA) carry very different risks.&lt;/p&gt;&#xA;&lt;h3 id=&#34;branch&#34;&gt;Branch&lt;/h3&gt;&#xA;&lt;p&gt;A branch (e.g. &lt;code&gt;main&lt;/code&gt;, or a relative &lt;code&gt;&amp;quot;./.&amp;quot;&lt;/code&gt; source) tracks the latest commit silently.&#xA;Every push is an implicit release.&#xA;One bad commit, whether from a compromised account, a force push, or a merged malicious PR, reaches every user on their next marketplace refresh.&#xA;No gate, no review, no rollback signal.&lt;/p&gt;&#xA;&lt;h3 id=&#34;tag&#34;&gt;Tag&lt;/h3&gt;&#xA;&lt;p&gt;Most people assume a tag (&lt;code&gt;v0.3.0&lt;/code&gt;) is immutable.&#xA;It&amp;rsquo;s not: &lt;code&gt;git tag -f v0.3.0 &amp;lt;new-sha&amp;gt;&lt;/code&gt; silently rewrites what the tag points to.&#xA;GitHub repository rulesets can block force-moves and tag deletion, but that protection is a repo-owner setting, not a platform guarantee.&#xA;A compromised account can disable the ruleset, re-point a tag to a different commit, and users fetching the tag get different code with no way to tell.&lt;/p&gt;&#xA;&lt;h3 id=&#34;sha&#34;&gt;SHA&lt;/h3&gt;&#xA;&lt;p&gt;A SHA is content-addressed and immutable.&#xA;It cannot be re-pointed, force-moved, or overwritten.&#xA;Anyone can verify what they run by comparing the pinned SHA against the repository history and inspecting the tree at that commit.&#xA;Not exactly convenient, but in a system with no signing, this is the best you can get.&lt;/p&gt;&#xA;&lt;p&gt;The &lt;a href=&#34;https://code.claude.com/docs/en/plugin-marketplaces&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;official docs&lt;/a&gt; mention the &lt;code&gt;sha&lt;/code&gt; field as &amp;quot;Optional. Full 40-character git commit SHA to pin to an exact version.&amp;quot;&#xA;That undersells it.&#xA;SHA pinning is not a version-management convenience.&#xA;It is the only thing standing between your machine and silent code substitution in a system with no signing.&lt;/p&gt;&#xA;&lt;h2 id=&#34;a-marketplace-plugin-entry&#34;&gt;A marketplace plugin entry&lt;/h2&gt;&#xA;&lt;p&gt;Three fields in each marketplace plugin entry control version detection, code pinning, and release traceability:&lt;/p&gt;&#xA;&lt;figure class=&#34;code&#34; data-pagefind-weight=&#34;0.5&#34;&gt;&#xA;  &lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-json&#34; data-lang=&#34;json&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;p&#34;&gt;{&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nt&#34;&gt;&amp;#34;$schema&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;https://json.schemastore.org/claude-code-marketplace.json&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nt&#34;&gt;&amp;#34;name&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;claude-ichiba&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nt&#34;&gt;&amp;#34;plugins&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;[&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;p&#34;&gt;{&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      &lt;span class=&#34;nt&#34;&gt;&amp;#34;name&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;togi&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      &lt;span class=&#34;nt&#34;&gt;&amp;#34;description&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;Captures AI coding friction...&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      &lt;span class=&#34;nt&#34;&gt;&amp;#34;version&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;0.3.0&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt; (1)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      &lt;span class=&#34;nt&#34;&gt;&amp;#34;source&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;{&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        &lt;span class=&#34;nt&#34;&gt;&amp;#34;source&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;github&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        &lt;span class=&#34;nt&#34;&gt;&amp;#34;repo&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;gwenneg/togi&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        &lt;span class=&#34;nt&#34;&gt;&amp;#34;ref&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;v0.3.0&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt; (2)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        &lt;span class=&#34;nt&#34;&gt;&amp;#34;sha&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;744400ba1d80c69fb9fa078862974e94fc353753&amp;#34;&lt;/span&gt; (3)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      &lt;span class=&#34;p&#34;&gt;}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;p&#34;&gt;}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;p&#34;&gt;]&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;p&#34;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/figure&gt;&#xA;&lt;ol class=&#34;callouts&#34;&gt;&#xA;&lt;li&gt;Claude Code&amp;rsquo;s update cache key. This is how it decides whether a newer version is available.&lt;/li&gt;&#xA;&lt;li&gt;The branch or tag Claude Code fetches the plugin from. When &lt;code&gt;sha&lt;/code&gt; is also set, Claude Code pins to the SHA directly. &lt;code&gt;ref&lt;/code&gt; stays in the entry as a human-readable label: which tag this SHA came from.&lt;/li&gt;&#xA;&lt;li&gt;The immutable security anchor. A SHA cannot be re-pointed, force-moved, or overwritten.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;Both &lt;code&gt;version&lt;/code&gt; and &lt;code&gt;sha&lt;/code&gt; must change together on every release: a version bump without a SHA bump ships the same code, and a SHA bump without a version bump is invisible to Claude Code&amp;rsquo;s update mechanism.&lt;/p&gt;&#xA;&lt;h3 id=&#34;why-version-stays-out-of-plugin-json&#34;&gt;Why version stays out of plugin.json&lt;/h3&gt;&#xA;&lt;p&gt;Claude Code &lt;a href=&#34;https://code.claude.com/docs/en/plugin-marketplaces#version-resolution-and-release-channels&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;resolves a plugin&amp;rsquo;s version&lt;/a&gt; in this order: &lt;code&gt;plugin.json&lt;/code&gt; first, then the marketplace entry, then the source SHA.&lt;/p&gt;&#xA;&lt;p&gt;If &lt;code&gt;plugin.json&lt;/code&gt; sets a version, it silently wins over the marketplace entry.&#xA;A version bump in the marketplace alone changes nothing: Claude Code still sees the old version from &lt;code&gt;plugin.json&lt;/code&gt; and skips the update.&lt;/p&gt;&#xA;&lt;p&gt;Keeping &lt;code&gt;version&lt;/code&gt; only in the marketplace entry means the catalog is the single authority on what gets released.&lt;/p&gt;&#xA;&lt;h2 id=&#34;why-split-the-marketplace-from-the-plugin&#34;&gt;Why split the marketplace from the plugin?&lt;/h2&gt;&#xA;&lt;p&gt;A Claude Code &lt;a href=&#34;https://code.claude.com/docs/en/plugin-marketplaces&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;marketplace&lt;/a&gt; is a JSON catalog that lists plugins and tells Claude Code where to fetch them.&#xA;When the marketplace and the plugin share a repo, &lt;code&gt;source&lt;/code&gt; is typically a relative path or a self-reference.&#xA;That ties the plugin&amp;rsquo;s development to the marketplace&amp;rsquo;s.&#xA;Every plugin commit is a marketplace commit.&#xA;Every collaborator who can touch a plugin can also touch the catalog.&lt;/p&gt;&#xA;&lt;p&gt;Splitting gives you:&lt;/p&gt;&#xA;&lt;div class=&#34;table-wrap&#34;&gt;&#xA;&lt;table&gt;&#xA;  &lt;thead&gt;&#xA;    &lt;tr&gt;&#xA;      &lt;th&gt;Benefit&lt;/th&gt;&#xA;      &lt;th&gt;What it means&lt;/th&gt;&#xA;    &lt;/tr&gt;&#xA;  &lt;/thead&gt;&#xA;  &lt;tbody&gt;&#xA;    &lt;tr&gt;&#xA;      &lt;td&gt;Independent lifecycles&lt;/td&gt;&#xA;      &lt;td&gt;A plugin repo has its own issues, PRs, and releases. The marketplace repo is a thin catalog that changes only when a plugin releases.&lt;/td&gt;&#xA;    &lt;/tr&gt;&#xA;    &lt;tr&gt;&#xA;      &lt;td&gt;Multiple plugins, one catalog&lt;/td&gt;&#xA;      &lt;td&gt;Adding a second plugin means adding an entry to &lt;code&gt;marketplace.json&lt;/code&gt;, not restructuring the repo.&lt;/td&gt;&#xA;    &lt;/tr&gt;&#xA;    &lt;tr&gt;&#xA;      &lt;td&gt;Separate access control&lt;/td&gt;&#xA;      &lt;td&gt;Contributors to a plugin do not need write access to the catalog.&lt;/td&gt;&#xA;    &lt;/tr&gt;&#xA;  &lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&lt;/div&gt;&#xA;&lt;h2 id=&#34;pipeline-layout&#34;&gt;Pipeline layout&lt;/h2&gt;&#xA;&lt;p&gt;I built a release pipeline for Claude Code plugins around two repos, both open source: &lt;a href=&#34;https://github.com/gwenneg/claude-ichiba&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;claude-ichiba&lt;/a&gt; (Japanese for marketplace) is the catalog, and &lt;a href=&#34;https://github.com/gwenneg/togi&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;togi&lt;/a&gt; is the friction-capture plugin.&lt;/p&gt;&#xA;&lt;figure class=&#34;code&#34; data-pagefind-weight=&#34;0.5&#34;&gt;&#xA;  &lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;claude-ichiba/                     # marketplace catalog&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;├── .claude-plugin/&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;│   └── marketplace.json           # references plugins in other repos&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;└── .github/&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    └── workflows/&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        └── update-marketplace.yml # receives release dispatches&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;togi/                              # plugin repo&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;├── .claude-plugin/&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;│   └── plugin.json                # plugin manifest (no version field)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;├── skills/&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;├── hooks/&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;└── .github/&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    └── workflows/&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        └── release.yml            # tags → release → dispatch&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/figure&gt;&#xA;&lt;h2 id=&#34;from-tag-to-release&#34;&gt;From tag to release&lt;/h2&gt;&#xA;&lt;h3 id=&#34;step-1-tag-and-release-plugin-repo&#34;&gt;Step 1: tag and release (plugin repo)&lt;/h3&gt;&#xA;&lt;p&gt;The release flow starts with a signed annotated tag push:&lt;/p&gt;&#xA;&lt;figure class=&#34;code&#34; data-pagefind-weight=&#34;0.5&#34;&gt;&#xA;  &lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;git tag -s v0.3.0 -m &lt;span class=&#34;s2&#34;&gt;&amp;#34;v0.3.0&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;git push origin v0.3.0&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/figure&gt;&#xA;&lt;p&gt;The tag triggers a release workflow, which dispatches to the marketplace repo:&lt;/p&gt;&#xA;&lt;figure class=&#34;code&#34; data-pagefind-weight=&#34;0.5&#34;&gt;&#xA;  &lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-yaml&#34; data-lang=&#34;yaml&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nt&#34;&gt;name&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;Release&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nt&#34;&gt;on&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;  &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;push&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;    &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;tags&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;p&#34;&gt;[&lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;v*&amp;#39;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;]&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nt&#34;&gt;jobs&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;  &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;release&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;    &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;runs-on&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;ubuntu-latest&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;    &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;permissions&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;      &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;contents&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;write&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; (1)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;    &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;steps&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;      &lt;/span&gt;- &lt;span class=&#34;nt&#34;&gt;id&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;tag&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;        &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;name&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;Validate and extract tag&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;        &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;env&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;          &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;GH_TOKEN&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;${{ secrets.GITHUB_TOKEN }}&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;        &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;run&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;p&#34;&gt;|&lt;/span&gt;&lt;span class=&#34;sd&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;sd&#34;&gt;          TAG=&amp;#34;${GITHUB_REF#refs/tags/}&amp;#34;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;sd&#34;&gt;          # Only annotated tags are supported — lightweight tags provide no signing guarantee.&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;sd&#34;&gt;          TYPE=$(gh api &amp;#34;repos/$GITHUB_REPOSITORY/git/ref/tags/$TAG&amp;#34; --jq &amp;#39;.object.type&amp;#39;)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;sd&#34;&gt;          if [ &amp;#34;$TYPE&amp;#34; != &amp;#34;tag&amp;#34; ]; then&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;sd&#34;&gt;            echo &amp;#34;Error: $TAG is not an annotated tag (type=&amp;#39;$TYPE&amp;#39;)&amp;#34;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;sd&#34;&gt;            exit 1&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;sd&#34;&gt;          fi&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;sd&#34;&gt;          echo &amp;#34;value=$TAG&amp;#34; &amp;gt;&amp;gt; &amp;#34;$GITHUB_OUTPUT&amp;#34;&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;      &lt;/span&gt;- &lt;span class=&#34;nt&#34;&gt;id&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;create-release&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;        &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;name&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;Create release&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;        &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;env&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;          &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;GH_TOKEN&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;${{ secrets.GITHUB_TOKEN }}&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;          &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;TAG&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;${{ steps.tag.outputs.value }}&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;        &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;run&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;p&#34;&gt;|&lt;/span&gt;&lt;span class=&#34;sd&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;sd&#34;&gt;          URL=$(gh release create &amp;#34;$TAG&amp;#34; --repo &amp;#34;$GITHUB_REPOSITORY&amp;#34; --title &amp;#34;$TAG&amp;#34; --generate-notes)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;sd&#34;&gt;          echo &amp;#34;url=$URL&amp;#34; &amp;gt;&amp;gt; &amp;#34;$GITHUB_OUTPUT&amp;#34;&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;      &lt;/span&gt;- &lt;span class=&#34;nt&#34;&gt;name&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;Dispatch to marketplace&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;        &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;env&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;          &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;ICHIBA_PAT&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;${{ secrets.ICHIBA_PAT }}&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; (2)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;          &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;RELEASE&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;${{ steps.create-release.outputs.url }}&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;        &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;run&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;p&#34;&gt;|&lt;/span&gt;&lt;span class=&#34;sd&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;sd&#34;&gt;          # Sends a `repository_dispatch` event to the marketplace repo with the release URL as the only payload.&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;sd&#34;&gt;          curl -fsSL -X POST \&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;sd&#34;&gt;            -H &amp;#34;Authorization: token $ICHIBA_PAT&amp;#34; \&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;sd&#34;&gt;            -H &amp;#34;Accept: application/vnd.github+json&amp;#34; \&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;sd&#34;&gt;            &amp;#34;https://api.github.com/repos/gwenneg/claude-ichiba/dispatches&amp;#34; \&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;sd&#34;&gt;            -d &amp;#34;$(jq -n --arg release &amp;#34;$RELEASE&amp;#34; &amp;#39;{event_type: &amp;#34;plugin-release&amp;#34;, client_payload: {release: $release}}&amp;#39;)&amp;#34;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/figure&gt;&#xA;&lt;ol class=&#34;callouts&#34;&gt;&#xA;&lt;li&gt;Required by &lt;code&gt;gh release create&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;See &lt;a href=&#34;#the-bridge-a-fine-grained-pat&#34;&gt;The bridge: a fine-grained PAT&lt;/a&gt;.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;h3 id=&#34;step-2-update-the-catalog-marketplace-repo&#34;&gt;Step 2: update the catalog (marketplace repo)&lt;/h3&gt;&#xA;&lt;p&gt;The marketplace repo receives the dispatch and resolves the plugin, tag, and commit SHA from the release URL.&#xA;It then opens a pull request so every catalog update can be reviewed before it reaches &lt;code&gt;main&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;figure class=&#34;code&#34; data-pagefind-weight=&#34;0.5&#34;&gt;&#xA;  &lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-yaml&#34; data-lang=&#34;yaml&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nt&#34;&gt;name&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;Update Marketplace&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nt&#34;&gt;on&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;  &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;repository_dispatch&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;    &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;types&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;p&#34;&gt;[&lt;/span&gt;&lt;span class=&#34;l&#34;&gt;plugin-release]&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nt&#34;&gt;jobs&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;  &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;update-marketplace&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;    &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;runs-on&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;ubuntu-latest&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;    &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;permissions&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;      &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;contents&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;write&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; (1)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;      &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;pull-requests&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;write&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; (2)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;    &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;steps&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;      &lt;/span&gt;- &lt;span class=&#34;nt&#34;&gt;uses&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;c&#34;&gt;# v7.0.0&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; (3)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;      &lt;/span&gt;- &lt;span class=&#34;nt&#34;&gt;id&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;update-marketplace&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;        &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;name&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;Update marketplace.json&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;        &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;env&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;          &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;GH_TOKEN&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;${{ secrets.GITHUB_TOKEN }}&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;          &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;RELEASE&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;${{ github.event.client_payload.release }}&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;        &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;run&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;|&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;          &lt;/span&gt;&lt;span class=&#34;c&#34;&gt;# Resolve the plugin name by matching the release URL against `source.repo` in marketplace.json.&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;          &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;PLUGIN=$(jq -r --arg u &amp;#34;$RELEASE&amp;#34; \&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;            &lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;.plugins[] | select((&amp;#34;https://github.com/&amp;#34; + .source.repo + &amp;#34;/&amp;#34;) as $prefix | $u | startswith($prefix)) | .name&amp;#39;&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;\&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;            &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;.claude-plugin/marketplace.json)&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;          &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;if [ -z &amp;#34;$PLUGIN&amp;#34; ]; then&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;            &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;echo &amp;#34;Error: no plugin matched $RELEASE&amp;#34;&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;            &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;exit 1&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;          &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;fi&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;          &lt;/span&gt;&lt;span class=&#34;c&#34;&gt;# Extract tag and repo from the release URL (https://github.com/owner/repo/releases/tag/vX.Y.Z).&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;          &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;TAG=$(basename &amp;#34;$RELEASE&amp;#34;)&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;          &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;REPO=$(echo &amp;#34;$RELEASE&amp;#34; | cut -d&amp;#39;/&amp;#39; -f4-5)&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;          &lt;/span&gt;&lt;span class=&#34;c&#34;&gt;# Resolve the commit SHA from the annotated tag — two calls needed to dereference the tag object.&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;          &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;REF=$(gh api &amp;#34;repos/$REPO/git/ref/tags/$TAG&amp;#34;)&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;          &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;if [ &amp;#34;$(echo &amp;#34;$REF&amp;#34; | jq -r &amp;#39;.object.type&amp;#39;)&amp;#34; != &amp;#34;tag&amp;#34; ]; then&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;            &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;echo &amp;#34;Error: $TAG is not an annotated tag&amp;#34;&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;            &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;exit 1&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;          &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;fi&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;          &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;SHA=$(gh api &amp;#34;repos/$REPO/git/tags/$(echo &amp;#34;$REF&amp;#34; | jq -r &amp;#39;.object.sha&amp;#39;)&amp;#34; --jq &amp;#39;.object.sha&amp;#39;)&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;          &lt;/span&gt;&lt;span class=&#34;c&#34;&gt;# Update version, ref, and sha for the matched plugin. Uses a temp file because jq cannot read and write the same file.&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;          &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;jq --arg p &amp;#34;$PLUGIN&amp;#34; --arg v &amp;#34;${TAG#v}&amp;#34; --arg r &amp;#34;$TAG&amp;#34; --arg s &amp;#34;$SHA&amp;#34; \&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;            &lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;(.plugins[] | select(.name == $p)) |= (.version = $v | .source.ref = $r | .source.sha = $s)&amp;#39;&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;\&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;            &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;.claude-plugin/marketplace.json &amp;gt; /tmp/marketplace.json&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;          &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;mv /tmp/marketplace.json .claude-plugin/marketplace.json&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;          &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;echo &amp;#34;plugin=$PLUGIN&amp;#34; &amp;gt;&amp;gt; &amp;#34;$GITHUB_OUTPUT&amp;#34;&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;          &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;echo &amp;#34;tag=$TAG&amp;#34; &amp;gt;&amp;gt; &amp;#34;$GITHUB_OUTPUT&amp;#34;&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;      &lt;/span&gt;- &lt;span class=&#34;nt&#34;&gt;name&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;Create branch and PR&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;        &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;env&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;          &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;GH_TOKEN&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;${{ secrets.GITHUB_TOKEN }}&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;          &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;PLUGIN&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;${{ steps.update-marketplace.outputs.plugin }}&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;          &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;RELEASE&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;${{ github.event.client_payload.release }}&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;          &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;TAG&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;${{ steps.update-marketplace.outputs.tag }}&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;        &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;run&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;p&#34;&gt;|&lt;/span&gt;&lt;span class=&#34;sd&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;sd&#34;&gt;          BRANCH=&amp;#34;release/$PLUGIN-$TAG&amp;#34;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;sd&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;sd&#34;&gt;          # Create the release branch from the current HEAD of main.&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;sd&#34;&gt;          gh api &amp;#34;repos/$GITHUB_REPOSITORY/git/refs&amp;#34; \&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;sd&#34;&gt;            --method POST \&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;sd&#34;&gt;            -f &amp;#34;ref=refs/heads/$BRANCH&amp;#34; \&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;sd&#34;&gt;            -f &amp;#34;sha=$(git rev-parse HEAD)&amp;#34;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;sd&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;sd&#34;&gt;          # Commit the updated marketplace.json via the Contents API, which produces a signed commit.&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;sd&#34;&gt;          gh api &amp;#34;repos/$GITHUB_REPOSITORY/contents/.claude-plugin/marketplace.json&amp;#34; \&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;sd&#34;&gt;            --method PUT \&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;sd&#34;&gt;            -f &amp;#34;message=release: $PLUGIN $TAG&amp;#34; \&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;sd&#34;&gt;            -f &amp;#34;content=$(base64 -w 0 &amp;lt; .claude-plugin/marketplace.json)&amp;#34; \&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;sd&#34;&gt;            -f &amp;#34;sha=$(git rev-parse HEAD:.claude-plugin/marketplace.json)&amp;#34; \&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;sd&#34;&gt;            -f &amp;#34;branch=$BRANCH&amp;#34;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;sd&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;sd&#34;&gt;          gh pr create \&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;sd&#34;&gt;            --title &amp;#34;release: $PLUGIN $TAG&amp;#34; \&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;sd&#34;&gt;            --body &amp;#34;[$TAG]($RELEASE)&amp;#34; \&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;sd&#34;&gt;            --base main \&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;sd&#34;&gt;            --head &amp;#34;$BRANCH&amp;#34;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/figure&gt;&#xA;&lt;ol class=&#34;callouts&#34;&gt;&#xA;&lt;li&gt;Required to create the release branch and commit &lt;code&gt;marketplace.json&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;li&gt;Required to create the pull request.&lt;/li&gt;&#xA;&lt;li&gt;Security tip: always pin GitHub Actions to a commit SHA, not a tag. The same tag-rewriting risk described earlier applies to actions too.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;The triple update (&lt;code&gt;version&lt;/code&gt;, &lt;code&gt;source.ref&lt;/code&gt;, &lt;code&gt;source.sha&lt;/code&gt;) happens in one &lt;code&gt;jq&lt;/code&gt; call and lands in one commit, so the catalog is never in a half-updated state.&lt;/p&gt;&#xA;&lt;h3 id=&#34;the-bridge-a-fine-grained-pat&#34;&gt;The bridge: a fine-grained PAT&lt;/h3&gt;&#xA;&lt;p&gt;Step 1 dispatches from the plugin repo to the marketplace repo.&#xA;The default &lt;code&gt;GITHUB_TOKEN&lt;/code&gt; in a GitHub Actions workflow is scoped to its own repo, so it cannot reach another repository.&#xA;To make the cross-repo dispatch work, you need a token with write access to the target.&lt;/p&gt;&#xA;&lt;p&gt;Create a &lt;a href=&#34;https://github.com/settings/personal-access-tokens/new&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;fine-grained Personal Access Token&lt;/a&gt;:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Repository access:&lt;/strong&gt; only the marketplace repo&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Permissions:&lt;/strong&gt; Contents → Read and write&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Store it as a repository secret (e.g. &lt;code&gt;ICHIBA_PAT&lt;/code&gt;) in the plugin repo.&lt;/p&gt;&#xA;&lt;aside class=&#34;adm adm-warning&#34;&gt;&lt;div class=&#34;adm-label&#34; data-pagefind-ignore&gt;WARNING&lt;/div&gt;&lt;p&gt;This PAT is the most sensitive piece in the pipeline.&#xA;Anyone who obtains it can trigger a dispatch with an arbitrary release URL, opening a rogue pull request against the marketplace repo.&#xA;They cannot inject an arbitrary SHA: the marketplace workflow resolves the commit SHA directly from the GitHub API.&#xA;And they cannot write to &lt;code&gt;main&lt;/code&gt; directly: the dispatch only opens a PR, which still requires review and approval.&#xA;The risk is noise and distraction, not silent code substitution.&#xA;That said: set an expiration, rotate it regularly, monitor the audit log for unexpected dispatch events, and revoke immediately if the plugin repo&amp;rsquo;s secrets are compromised.&lt;/p&gt;&lt;/aside&gt;&lt;h2 id=&#34;what-users-see&#34;&gt;What users see&lt;/h2&gt;&#xA;&lt;p&gt;None of the pipeline complexity surfaces to users.&#xA;Their side stays simple.&#xA;Install with:&lt;/p&gt;&#xA;&lt;figure class=&#34;code&#34; data-pagefind-weight=&#34;0.5&#34;&gt;&#xA;  &lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;/plugin marketplace add gwenneg/claude-ichiba&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;/plugin install togi@claude-ichiba&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;/reload-plugins&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/figure&gt;&#xA;&lt;p&gt;And update with:&lt;/p&gt;&#xA;&lt;figure class=&#34;code&#34; data-pagefind-weight=&#34;0.5&#34;&gt;&#xA;  &lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;/plugin marketplace update claude-ichiba&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;/reload-plugins&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/figure&gt;&#xA;&lt;aside class=&#34;adm adm-warning&#34;&gt;&lt;div class=&#34;adm-label&#34; data-pagefind-ignore&gt;WARNING&lt;/div&gt;&lt;p&gt;&lt;a href=&#34;https://code.claude.com/docs/en/discover-plugins#configure-auto-updates&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Auto-update is off by default&lt;/a&gt; for third-party marketplaces.&#xA;Users pull updates only when they choose to.&#xA;If a user or org admin enables auto-update, a compromised marketplace entry propagates without any user action at all.&#xA;The threat model changes significantly: the refresh becomes silent, not deliberate.&lt;/p&gt;&lt;/aside&gt;&lt;h2 id=&#34;adding-a-second-plugin&#34;&gt;Adding a second plugin&lt;/h2&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Create the plugin repo with its own &lt;code&gt;.claude-plugin/plugin.json&lt;/code&gt;, skills, hooks, etc.&lt;/li&gt;&#xA;&lt;li&gt;Copy &lt;code&gt;release.yml&lt;/code&gt; verbatim: the marketplace resolves the plugin name from the release URL, so nothing is hardcoded per plugin.&lt;/li&gt;&#xA;&lt;li&gt;Add an entry to &lt;code&gt;marketplace.json&lt;/code&gt; in the marketplace repo.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;h2 id=&#34;known-gaps&#34;&gt;Known gaps&lt;/h2&gt;&#xA;&lt;p&gt;This setup is the best I could do with what Claude Code and GitHub offer today. It&amp;rsquo;s not airtight.&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;The catalog lives on &lt;code&gt;main&lt;/code&gt;.&lt;/strong&gt; Every release goes through a pull request before landing. But the branch is the final source of truth: a bad commit that reaches it ships a rewritten SHA on the next refresh. Branch protection, required reviews, and required signed commits reduce this exposure but do not eliminate it.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;No update notification.&lt;/strong&gt; Claude Code does not tell users when a new version exists. They have to watch the plugin repo for releases and refresh manually.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;No platform-level signing.&lt;/strong&gt; Claude Code has no plugin signature verification. SHA pinning gives tamper-evidence (you can verify what you run), but not tamper-prevention (nothing stops a bad SHA from being written to the catalog if &lt;code&gt;main&lt;/code&gt; is compromised). That gap closes only when Claude Code adds signing.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;This pipeline won&amp;rsquo;t solve what Claude Code hasn&amp;rsquo;t built yet.&#xA;But it closes every gap I could find, and it&amp;rsquo;s yours to fork.&lt;/p&gt;&#xA;&lt;p&gt;Plugin consumers: verify what you run.&#xA;Authors: make that easy.&lt;/p&gt;&#xA;</content>
    <author><name>Gwenneg Lepage</name></author>
    <category term="claude code"/>
    <category term="plugins"/>
    <category term="supply chain"/>
    <category term="security"/>
    <summary type="html">The official Claude Code docs describe SHA pinning as a feature but never explain why it matters. This post does, and walks through a release pipeline built to publish Claude Code plugins safely.</summary>
  </entry>
  <entry>
    <title type="html">Your Claude bill called. It wants to talk.</title>
    <link href="https://gwenneg.com/2026/06/18/your-claude-bill-called.html" rel="alternate" type="text/html" title="Your Claude bill called. It wants to talk."/>
    <published>2026-06-18T00:00:00+02:00</published>
    <updated>2026-06-18T00:00:00+02:00</updated>
    <id>https://gwenneg.github.io/2026/06/18/your-claude-bill-called</id>
    <content type="html" xml:base="https://gwenneg.com/2026/06/18/your-claude-bill-called.html">&lt;aside class=&#34;adm adm-note&#34; data-pagefind-ignore&gt;&lt;div class=&#34;adm-label&#34; data-pagefind-ignore&gt;NOTE&lt;/div&gt;&lt;p&gt;This post was written with the help of AI.&lt;/p&gt;&lt;/aside&gt;&lt;p&gt;AI-assisted coding is great. Until you check the bill.&lt;/p&gt;&#xA;&lt;p&gt;The &lt;a href=&#34;https://code.claude.com/docs/en/costs&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Claude Code docs&lt;/a&gt; cover how to reduce costs.&#xA;This post ranks cost reduction practices by impact and tells you which ones to do first.&#xA;Most developers know a few.&#xA;Fewer apply them consistently.&#xA;The ranking weighs three things: how much a practice saves per session, how universally it applies, and how easy it is to start.&#xA;The first seven work for everyone.&#xA;The last three depend on your setup.&lt;/p&gt;&#xA;&lt;p&gt;Each of the 10 practices below is worth 2 points: 1 for knowing it, 1 for applying it.&#xA;Keep score as you read.&lt;/p&gt;&#xA;&lt;aside class=&#34;adm adm-note&#34;&gt;&lt;div class=&#34;adm-label&#34; data-pagefind-ignore&gt;NOTE&lt;/div&gt;&lt;p&gt;This post is focused on Claude.&#xA;Some of it may apply to other leading AI models.&#xA;Local models can also be a valid option to lower costs, but out of scope here.&lt;/p&gt;&lt;/aside&gt;&lt;h2 id=&#34;whats-the-single-biggest-lever-to-reduce-costs&#34;&gt;What&amp;rsquo;s the single biggest lever to reduce costs?&lt;/h2&gt;&#xA;&lt;p&gt;&lt;strong&gt;Model selection.&lt;/strong&gt; First point: free. Second point: when did you last reach for Haiku?&lt;/p&gt;&#xA;&lt;p&gt;Pick the right model for your task:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Haiku&lt;/strong&gt;: simple and fast operations. Formatting, summarization, quick lookups. No heavy reasoning needed.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Sonnet&lt;/strong&gt;: most coding tasks. The sweet spot between capability and cost.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Opus&lt;/strong&gt;: complex reasoning, architectural decisions, tricky bugs.&#xA;Reach for it when the task genuinely needs it.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Fable&lt;/strong&gt;: top of the range, currently unavailable.&#xA;Most capable, most expensive. Use it when nothing else will do, or when it&amp;rsquo;s not your money.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;aside class=&#34;adm adm-note&#34;&gt;&lt;div class=&#34;adm-label&#34; data-pagefind-ignore&gt;NOTE&lt;/div&gt;&lt;p&gt;These suggestions are general guidance. There are many exceptions, and the landscape shifts quickly with every new model release. What matters most is the habit: always weigh capability against cost for the task at hand. That calculation also depends on whether you pay per token through the API or work within a subscription quota.&lt;/p&gt;&lt;/aside&gt;&lt;p&gt;In interactive sessions, use &lt;code&gt;/model&lt;/code&gt; to switch. In skills and agents, set it in frontmatter.&lt;/p&gt;&#xA;&lt;figure class=&#34;code&#34; data-pagefind-weight=&#34;0.5&#34;&gt;&#xA;  &lt;p&gt;&lt;strong&gt;Skill or agent frontmatter&lt;/strong&gt;&lt;/p&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-yaml&#34; data-lang=&#34;yaml&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nn&#34;&gt;---&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nt&#34;&gt;model&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;sonnet&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nn&#34;&gt;---&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/figure&gt;&#xA;&lt;p&gt;&lt;em&gt;Dig deeper:&lt;/em&gt; &lt;a href=&#34;https://platform.claude.com/docs/en/about-claude/pricing&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Models pricing&lt;/a&gt;, &lt;a href=&#34;https://code.claude.com/docs/en/model-config&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Model configuration&lt;/a&gt;, &lt;a href=&#34;https://code.claude.com/docs/en/skills#frontmatter-reference&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Skill frontmatter&lt;/a&gt;, &lt;a href=&#34;https://code.claude.com/docs/en/sub-agents#supported-frontmatter-fields&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Sub-agent frontmatter&lt;/a&gt;&lt;/p&gt;&#xA;&lt;h2 id=&#34;your-agent-is-thinking-hard-on-every-task-is-that-a-problem&#34;&gt;Your agent is thinking hard on every task. Is that a problem?&lt;/h2&gt;&#xA;&lt;p&gt;&lt;strong&gt;Yes. Claude is writing a dissertation about your variable renaming.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Thinking tokens count as output tokens.&#xA;The priciest kind.&#xA;A single request can burn tens of thousands of them.&#xA;For a complex architectural decision, worth every token.&#xA;For &amp;quot;add a missing semicolon,&amp;quot; not so much.&lt;/p&gt;&#xA;&lt;p&gt;In interactive sessions, use &lt;code&gt;/effort low&lt;/code&gt; or &lt;code&gt;/effort medium&lt;/code&gt; for straightforward tasks, and &lt;code&gt;/effort high&lt;/code&gt; when it actually matters. In skills and agents, set it in frontmatter so nobody has to remember.&lt;/p&gt;&#xA;&lt;figure class=&#34;code&#34; data-pagefind-weight=&#34;0.5&#34;&gt;&#xA;  &lt;p&gt;&lt;strong&gt;Skill or agent frontmatter&lt;/strong&gt;&lt;/p&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-yaml&#34; data-lang=&#34;yaml&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nn&#34;&gt;---&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nt&#34;&gt;effort&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;low&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nn&#34;&gt;---&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/figure&gt;&#xA;&lt;p&gt;&lt;em&gt;Dig deeper:&lt;/em&gt; &lt;a href=&#34;https://platform.claude.com/docs/en/about-claude/pricing&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Models pricing&lt;/a&gt;, &lt;a href=&#34;https://code.claude.com/docs/en/model-config#adjust-effort-level&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Effort configuration&lt;/a&gt;, &lt;a href=&#34;https://code.claude.com/docs/en/skills#frontmatter-reference&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Skill frontmatter&lt;/a&gt;, &lt;a href=&#34;https://code.claude.com/docs/en/sub-agents#supported-frontmatter-fields&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Sub-agent frontmatter&lt;/a&gt;&lt;/p&gt;&#xA;&lt;h2 id=&#34;what-does-improve-the-codebase-actually-cost&#34;&gt;What does &#39;improve the codebase&#39; actually cost?&lt;/h2&gt;&#xA;&lt;p&gt;&lt;strong&gt;A lot. The fix is simpler than you think: be specific.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Claude starts by figuring out what your codebase even is.&#xA;That means reading files until it has enough context to act.&#xA;And every file it reads stays in context, getting re-sent with every follow-up message.&#xA;You&amp;rsquo;re paying for that exploration whether you asked for it or not.&lt;/p&gt;&#xA;&lt;p&gt;Specificity isn&amp;rsquo;t just for interactive sessions.&#xA;In skills and agents, every word in the spawn prompt loads on top of everything the agent auto-loads, from turn one.&#xA;Vague instructions are just as expensive there.&lt;/p&gt;&#xA;&lt;p&gt;Free points. You&amp;rsquo;re welcome.&lt;/p&gt;&#xA;&lt;h2 id=&#34;your-claude-md-documents-your-entire-architecture-smart-or-not&#34;&gt;Your CLAUDE.md documents your entire architecture. Smart or not?&lt;/h2&gt;&#xA;&lt;p&gt;&lt;strong&gt;Impressive documentation. Expensive documentation.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Everything in CLAUDE.md loads at session start and gets re-sent on every single request, whether it&amp;rsquo;s relevant or not.&#xA;That beautifully written section explaining the history of your repository pattern?&#xA;Claude reads it before fixing a typo.&#xA;Every.&#xA;Single.&#xA;Time.&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Keep CLAUDE.md under 200 lines. Essentials only.&lt;/li&gt;&#xA;&lt;li&gt;Move path-specific guidelines into rules. They load only when Claude works on matching files, not on every turn.&lt;/li&gt;&#xA;&lt;li&gt;Move workflow instructions (PR reviews, deploy steps, migration guides) into skills.&#xA;They load on-demand, not on every turn.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;&lt;em&gt;Dig deeper:&lt;/em&gt; &lt;a href=&#34;https://code.claude.com/docs/en/memory#path-specific-rules&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Path-specific rules&lt;/a&gt;, &lt;a href=&#34;https://code.claude.com/docs/en/skills&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Extend Claude with skills&lt;/a&gt;&lt;/p&gt;&#xA;&lt;h2 id=&#34;you-just-finished-a-task-what-should-you-do-before-starting-the-next-one&#34;&gt;You just finished a task. What should you do before starting the next one?&lt;/h2&gt;&#xA;&lt;p&gt;&lt;strong&gt;&lt;code&gt;/clear&lt;/code&gt;. Seriously.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Every request re-sends the full conversation history as input tokens.&#xA;Once a task is done, that history is dead weight: old file reads, debugging logs, that long exchange where Claude went down the wrong path.&#xA;You&amp;rsquo;re carrying a suitcase full of things you don&amp;rsquo;t need anymore.&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;/clear&lt;/code&gt; drops it.&lt;/p&gt;&#xA;&lt;h2 id=&#34;youre-mid-task-and-the-context-is-getting-heavy-what-do-you-do&#34;&gt;You&amp;rsquo;re mid-task and the context is getting heavy. What do you do?&lt;/h2&gt;&#xA;&lt;p&gt;&lt;strong&gt;&lt;code&gt;/compact&lt;/code&gt;, but with instructions.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Just running &lt;code&gt;/compact&lt;/code&gt; summarizes the conversation, but Claude decides what to keep.&#xA;You can do better: &lt;code&gt;/compact Focus on modified files and unresolved errors&lt;/code&gt; tells Claude exactly what matters.&#xA;You can also make it permanent in CLAUDE.md so it applies every time Claude compacts automatically.&lt;/p&gt;&#xA;&lt;figure class=&#34;code&#34; data-pagefind-weight=&#34;0.5&#34;&gt;&#xA;  &lt;p&gt;&lt;strong&gt;CLAUDE.md compaction instructions&lt;/strong&gt;&lt;/p&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-markdown&#34; data-lang=&#34;markdown&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;== Compact instructions&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;When compacting, focus on modified files and unresolved errors.&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/figure&gt;&#xA;&lt;p&gt;&lt;em&gt;Dig deeper:&lt;/em&gt; &lt;a href=&#34;https://code.claude.com/docs/en/context-window#when-your-context-fills-up&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Compact with a focus&lt;/a&gt;&lt;/p&gt;&#xA;&lt;h2 id=&#34;your-agent-is-running-tests-and-reading-logs-where-does-all-that-output-go&#34;&gt;Your agent is running tests and reading logs. Where does all that output go?&lt;/h2&gt;&#xA;&lt;p&gt;&lt;strong&gt;In the main context, if you&amp;rsquo;re not careful.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;Test runners, log processors, and doc fetchers can generate a lot of output.&#xA;If that output lands in the main session, Claude re-sends it on every subsequent turn.&#xA;Subagents run in their own isolated context window.&#xA;The parent session gets a summary, not the raw output.&lt;/p&gt;&#xA;&lt;p&gt;In skills and agents, structure workflows to delegate verbose operations to subagents.&#xA;The main agent stays lean.&#xA;In interactive sessions, Claude will usually make that call on its own, but you can always ask explicitly.&lt;/p&gt;&#xA;&lt;p&gt;&lt;em&gt;Dig deeper:&lt;/em&gt; &lt;a href=&#34;https://code.claude.com/docs/en/sub-agents#isolate-high-volume-operations&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Isolate high-volume operations&lt;/a&gt;&lt;/p&gt;&#xA;&lt;h2 id=&#34;scripts-and-hooks-helping-claude-process-less&#34;&gt;Scripts and hooks helping Claude process less&lt;/h2&gt;&#xA;&lt;aside class=&#34;adm adm-note&#34;&gt;&lt;div class=&#34;adm-label&#34; data-pagefind-ignore&gt;NOTE&lt;/div&gt;&lt;p&gt;This one is situational: the savings depend on how much output you&amp;rsquo;re actually cutting.&lt;/p&gt;&lt;/aside&gt;&lt;p&gt;Pre-written scripts and hooks let you preprocess data before Claude sees it.&#xA;Feeding Claude a raw test report when all you needed was the failures means Claude processes a lot more than necessary.&lt;/p&gt;&#xA;&lt;p&gt;A 2026 study filtered low-value output from agent trajectories and found 40-60% fewer input tokens and 21-36% lower costs, with no impact on task success. Scripts and hooks are a simpler way to act on the same idea.&#xA;The pattern scales well for agent-heavy workflows, but for small tasks the overhead isn&amp;rsquo;t worth it.&lt;/p&gt;&#xA;&lt;p&gt;&lt;em&gt;Dig deeper:&lt;/em&gt; &lt;a href=&#34;https://arxiv.org/html/2509.23586v2&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;AgentDiet, FSE 2026&lt;/a&gt;&lt;/p&gt;&#xA;&lt;h2 id=&#34;claude-is-about-to-rewrite-half-your-codebase-has-it-seen-a-plan-first&#34;&gt;Claude is about to rewrite half your codebase. Has it seen a plan first?&lt;/h2&gt;&#xA;&lt;p&gt;&lt;strong&gt;It should have.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;aside class=&#34;adm adm-note&#34;&gt;&lt;div class=&#34;adm-label&#34; data-pagefind-ignore&gt;NOTE&lt;/div&gt;&lt;p&gt;This one is situational: it only pays off on complex or ambiguous tasks.&lt;/p&gt;&lt;/aside&gt;&lt;p&gt;Skip the plan and Claude might build the wrong thing entirely.&#xA;You pay for the wrong implementation, then pay to fix it.&#xA;Plan mode makes Claude explore and propose an approach before touching any code.&#xA;You review it, adjust it, then let it implement.&lt;/p&gt;&#xA;&lt;p&gt;In interactive sessions, press Shift+Tab before giving Claude a large or ambiguous task.&#xA;In skills, bake it in: structure the definition to include an explicit planning step before execution.&lt;/p&gt;&#xA;&lt;p&gt;&lt;em&gt;Dig deeper:&lt;/em&gt; &lt;a href=&#34;https://code.claude.com/docs/en/permission-modes#analyze-before-you-edit-with-plan-mode&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Plan mode&lt;/a&gt;&lt;/p&gt;&#xA;&lt;h2 id=&#34;did-you-actually-need-that-1m-context-window&#34;&gt;Did you actually need that 1M context window?&lt;/h2&gt;&#xA;&lt;aside class=&#34;adm adm-note&#34;&gt;&lt;div class=&#34;adm-label&#34; data-pagefind-ignore&gt;NOTE&lt;/div&gt;&lt;p&gt;This one is situational.&lt;/p&gt;&lt;/aside&gt;&lt;p&gt;&lt;strong&gt;Surprise: it&amp;rsquo;s not free.&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;p&gt;The 1M context window costs the same per token as the default.&#xA;It just holds 5x more tokens, so sessions stay uncompacted much longer and every turn carries a heavier payload.&#xA;Stick with 200K unless you actually need it.&lt;/p&gt;&#xA;&lt;p&gt;&lt;em&gt;Dig deeper:&lt;/em&gt; &lt;a href=&#34;https://code.claude.com/docs/en/model-config#extended-context&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Extended context&lt;/a&gt;&lt;/p&gt;&#xA;&lt;h2 id=&#34;how-do-you-know-if-its-working&#34; class=&#34;unnumbered&#34;&gt;How do you know if it&amp;rsquo;s working?&lt;/h2&gt;&#xA;&lt;p&gt;You can&amp;rsquo;t improve what you can&amp;rsquo;t measure.&lt;/p&gt;&#xA;&lt;p&gt;Run &lt;code&gt;/usage&lt;/code&gt; in Claude Code to see token usage and cost for the current session.&#xA;Watch those numbers across sessions as you apply these practices.&#xA;The difference is visible.&lt;/p&gt;&#xA;&lt;p&gt;Running the API or tracking team usage?&#xA;The Claude Console breaks it down by model, date, and API key.&lt;/p&gt;&#xA;&lt;p&gt;&lt;em&gt;Dig deeper:&lt;/em&gt; &lt;a href=&#34;https://code.claude.com/docs/en/costs#using-the-/usage-command&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Using the /usage command&lt;/a&gt;, &lt;a href=&#34;https://platform.claude.com/dashboard&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Claude Console&lt;/a&gt;&lt;/p&gt;&#xA;&lt;h2 id=&#34;how-many-points-did-you-get&#34; class=&#34;unnumbered&#34;&gt;How many points did you get?&lt;/h2&gt;&#xA;&lt;p&gt;Scored 15 or above?&#xA;Genuinely impressive.&lt;/p&gt;&#xA;&lt;p&gt;Below that?&#xA;You&amp;rsquo;re one or two practices away from making a real difference.&#xA;Start with model selection, and go from there.&lt;/p&gt;&#xA;&lt;p&gt;Thanks for reading!&lt;/p&gt;&#xA;</content>
    <author><name>Gwenneg Lepage</name></author>
    <category term="ai"/>
    <category term="claude code"/>
    <category term="costs"/>
    <category term="developer experience"/>
    <category term="skills"/>
    <category term="agents"/>
    <summary type="html">10 practices to cut your Claude bill, ranked by impact. Score yourself as you read.</summary>
  </entry>
  <entry>
    <title type="html">Turn AI friction into better docs</title>
    <link href="https://gwenneg.com/2026/05/31/turn-ai-friction-into-better-docs.html" rel="alternate" type="text/html" title="Turn AI friction into better docs"/>
    <published>2026-05-31T00:00:00+02:00</published>
    <updated>2026-05-31T00:00:00+02:00</updated>
    <id>https://gwenneg.github.io/2026/05/31/turn-ai-friction-into-better-docs</id>
    <content type="html" xml:base="https://gwenneg.com/2026/05/31/turn-ai-friction-into-better-docs.html">&lt;aside class=&#34;adm adm-note&#34; data-pagefind-ignore&gt;&lt;div class=&#34;adm-label&#34; data-pagefind-ignore&gt;NOTE&lt;/div&gt;&lt;p&gt;This post was written with the help of AI.&lt;/p&gt;&lt;/aside&gt;&lt;p&gt;In a &lt;a href=&#34;/2026/05/28/the-docs-your-ai-agent-is-missing.html&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;previous post&lt;/a&gt;, I introduced a Claude skill that generates layered context docs for AI-assisted development: domain-specific guidelines, a cross-cutting &lt;code&gt;AGENTS.md&lt;/code&gt;, path-scoped Claude rules, and a thin &lt;code&gt;CLAUDE.md&lt;/code&gt; on top.&lt;/p&gt;&#xA;&lt;p&gt;These files have two problems: they go stale as the codebase evolves, and the initial version is never perfect.&#xA;Some conventions only surface when the agent tries to follow the docs and stumbles: an unnecessary question, a wrong assumption, output that needs correcting.&#xA;Each of these stumbles is a friction event: a signal that the docs failed.&lt;/p&gt;&#xA;&lt;p&gt;I wanted to automate as much of this as possible: capture friction, turn it into doc improvements, and keep developer effort to a minimum.&#xA;What I ended up with is a feedback loop built on git, Claude Code hooks, and shell scripts, no extra platform or infrastructure required.&#xA;Let me walk you through it.&lt;/p&gt;&#xA;&lt;h2 id=&#34;the-feedback-loop&#34;&gt;The feedback loop&lt;/h2&gt;&#xA;&lt;p&gt;The loop has two phases:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Automated friction capture at the end of every Claude Code session&lt;/li&gt;&#xA;&lt;li&gt;A manual step to turn accumulated friction events into context doc improvements&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;figure class=&#34;shot&#34;&gt;&lt;img src=&#34;/assets/images/posts/turn-ai-friction-into-better-docs/feedback-loop.svg&#34; alt=&#34;Feedback loop&#34; width=&#34;729&#34; height=&#34;702&#34; style=&#34;width: 85%&#34; loading=&#34;lazy&#34; decoding=&#34;async&#34;&gt;&#xA;&lt;/figure&gt;&lt;h3 id=&#34;capturing-friction-automatically&#34;&gt;Capturing friction automatically&lt;/h3&gt;&#xA;&lt;p&gt;I wired up a &lt;a href=&#34;https://code.claude.com/docs/en/hooks-guide#how-hooks-work&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;SessionEnd hook&lt;/a&gt; that fires at the end of every Claude Code session, or when the &lt;a href=&#34;https://code.claude.com/docs/en/commands#all-commands&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;/clear command&lt;/a&gt; is run:&lt;/p&gt;&#xA;&lt;figure class=&#34;code&#34; data-pagefind-weight=&#34;0.5&#34;&gt;&#xA;  &lt;p&gt;&lt;strong&gt;.claude/settings.json&lt;/strong&gt;&lt;/p&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-json&#34; data-lang=&#34;json&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;p&#34;&gt;{&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nt&#34;&gt;&amp;#34;hooks&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;{&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;nt&#34;&gt;&amp;#34;SessionEnd&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;[&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      &lt;span class=&#34;p&#34;&gt;{&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        &lt;span class=&#34;nt&#34;&gt;&amp;#34;matcher&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        &lt;span class=&#34;nt&#34;&gt;&amp;#34;hooks&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;[&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;          &lt;span class=&#34;p&#34;&gt;{&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;            &lt;span class=&#34;nt&#34;&gt;&amp;#34;type&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;command&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;            &lt;span class=&#34;nt&#34;&gt;&amp;#34;command&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;bash .claude/scripts/friction-capture.sh&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;            &lt;span class=&#34;nt&#34;&gt;&amp;#34;timeout&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;mi&#34;&gt;5000&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;          &lt;span class=&#34;p&#34;&gt;}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        &lt;span class=&#34;p&#34;&gt;]&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      &lt;span class=&#34;p&#34;&gt;}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;p&#34;&gt;]&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;p&#34;&gt;}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;p&#34;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/figure&gt;&#xA;&lt;p&gt;When that happens, the &lt;a href=&#34;https://github.com/gwenneg/blog-ai-friction-loop/blob/main/skills/setup-friction-capture/scripts/friction-capture.sh&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;friction-capture.sh&lt;/a&gt; script runs in a background subshell, so it doesn&amp;rsquo;t block the user.&#xA;The script receives the transcript from the ended session and sends the last 200KB to Claude Haiku with a prompt asking it to identify friction events.&#xA;A &lt;code&gt;flock&lt;/code&gt;-based lock inside the background block prevents concurrent runs.&#xA;Haiku is cheap enough that the cost per session stays under a few cents.&lt;/p&gt;&#xA;&lt;aside class=&#34;adm adm-note&#34;&gt;&lt;div class=&#34;adm-label&#34; data-pagefind-ignore&gt;NOTE&lt;/div&gt;&lt;p&gt;&lt;code&gt;flock&lt;/code&gt; is not available on macOS. The script currently requires Linux or a &lt;code&gt;flock&lt;/code&gt; package like the one from Homebrew.&lt;/p&gt;&lt;/aside&gt;&lt;aside class=&#34;adm adm-warning&#34;&gt;&lt;div class=&#34;adm-label&#34; data-pagefind-ignore&gt;WARNING&lt;/div&gt;&lt;p&gt;The conversation between the user and Claude is sent to the Anthropic API at the end of each session, using the developer&amp;rsquo;s existing Claude Code credentials. Tool call outputs (file contents, command output) are not included, but anything discussed in the conversational text is. Injected content in the transcript could also produce friction events targeting arbitrary files. Review the resulting PR diff carefully, and exclude any suspicious events when the skill presents them. Friction capture is enabled by default after the setup PR merges. Developers can opt out with &lt;a href=&#34;https://github.com/gwenneg/blog-ai-friction-loop/blob/main/skills/disable-friction-capture/SKILL.md&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;&lt;code&gt;/disable-friction-capture&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;&lt;/aside&gt;&lt;h4 id=&#34;what-counts-as-friction&#34;&gt;What counts as friction&lt;/h4&gt;&#xA;&lt;p&gt;The prompt tells Haiku to scan the transcript for four types of events:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Corrections&lt;/strong&gt;: the user corrected the agent&amp;rsquo;s output&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Clarifications&lt;/strong&gt;: the agent asked a question the docs should have answered&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Mistakes&lt;/strong&gt;: the agent made a wrong assumption about the codebase&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Denials&lt;/strong&gt;: a tool call was denied, revealing a standing project policy (e.g., &amp;quot;don&amp;rsquo;t skip the OWASP dependency check&amp;quot;)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Not everything qualifies. The prompt applies two filters: would a doc rule have prevented it, and is it likely to happen again? If either answer is no, the event is dropped. For example, user errors, one-off denials, scope changes, transient failures, and case-specific corrections are excluded.&#xA;For example, &amp;quot;all REST endpoints use kebab-case&amp;quot; is a doc gap, but &amp;quot;no, I meant the other endpoint&amp;quot; is not.&lt;/p&gt;&#xA;&lt;p&gt;Each event must also name a specific target file (e.g., &lt;code&gt;docs/api-guidelines.md&lt;/code&gt;) and state the missing rule in a few sentences max.&#xA;Otherwise it is excluded.&lt;/p&gt;&#xA;&lt;h4 id=&#34;friction-event-format&#34;&gt;Friction event format&lt;/h4&gt;&#xA;&lt;p&gt;For each event, the script writes a markdown file to &lt;code&gt;.claude/friction/{session-id}/&lt;/code&gt;.&#xA;These files accumulate silently across sessions.&#xA;Sessions with zero friction produce no files.&lt;/p&gt;&#xA;&lt;figure class=&#34;code&#34; data-pagefind-weight=&#34;0.5&#34;&gt;&#xA;  &lt;p&gt;&lt;strong&gt;.claude/friction/{session-id}/&amp;lt;event-name&amp;gt;.md&lt;/strong&gt;&lt;/p&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-markdown&#34; data-lang=&#34;markdown&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nn&#34;&gt;---&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nt&#34;&gt;type&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;correction&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nt&#34;&gt;doc_gap&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;docs/api-guidelines.md&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nt&#34;&gt;date&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;ld&#34;&gt;2026-05-19&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nn&#34;&gt;---&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;The agent used snake_case for a new REST endpoint path. The user corrected it to kebab-case,&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;which is the convention for all API routes in this project.&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/figure&gt;&#xA;&lt;h3 id=&#34;the-startup-reminder&#34;&gt;The startup reminder&lt;/h3&gt;&#xA;&lt;p&gt;On the next session start, a &lt;code&gt;SessionStart&lt;/code&gt; hook runs the &lt;a href=&#34;https://github.com/gwenneg/blog-ai-friction-loop/blob/main/skills/setup-friction-capture/scripts/friction-reminder.sh&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;friction-reminder.sh&lt;/a&gt; script to check how many sessions have unprocessed friction:&lt;/p&gt;&#xA;&lt;figure class=&#34;code&#34; data-pagefind-weight=&#34;0.5&#34;&gt;&#xA;  &lt;p&gt;&lt;strong&gt;.claude/settings.json&lt;/strong&gt;&lt;/p&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-json&#34; data-lang=&#34;json&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;p&#34;&gt;{&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nt&#34;&gt;&amp;#34;hooks&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;{&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;nt&#34;&gt;&amp;#34;SessionStart&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;[&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      &lt;span class=&#34;p&#34;&gt;{&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        &lt;span class=&#34;nt&#34;&gt;&amp;#34;matcher&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        &lt;span class=&#34;nt&#34;&gt;&amp;#34;hooks&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;[&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;          &lt;span class=&#34;p&#34;&gt;{&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;            &lt;span class=&#34;nt&#34;&gt;&amp;#34;type&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;command&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;            &lt;span class=&#34;nt&#34;&gt;&amp;#34;command&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;bash .claude/scripts/friction-reminder.sh&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;            &lt;span class=&#34;nt&#34;&gt;&amp;#34;timeout&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;mi&#34;&gt;2000&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;          &lt;span class=&#34;p&#34;&gt;}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        &lt;span class=&#34;p&#34;&gt;]&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;      &lt;span class=&#34;p&#34;&gt;}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;p&#34;&gt;]&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;p&#34;&gt;}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;p&#34;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/figure&gt;&#xA;&lt;p&gt;Once a configurable threshold is reached (default: 3 sessions), Claude Code displays a reminder at startup:&lt;/p&gt;&#xA;&lt;figure class=&#34;code&#34; data-pagefind-weight=&#34;0.5&#34;&gt;&#xA;  &lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-markdown&#34; data-lang=&#34;markdown&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;╔══════════════════════════════════════════════════╗&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;║  🤖 BEEP BOOP IMPORTANT MESSAGE                  ║&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;╠══════════════════════════════════════════════════╣&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;║                                                  ║&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;║  5 sessions, 12 stumbles. I&amp;#39;m not proud.         ║&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;║  Update the docs. For both our sakes.            ║&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;║                                                  ║&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;║  → /update-context-docs                          ║&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;║                                                  ║&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;║  Not your thing? Run /disable-friction-capture.  ║&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;╚══════════════════════════════════════════════════╝&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/figure&gt;&#xA;&lt;p&gt;The messages rotate randomly from a set of five.&#xA;Nothing is blocked. The developer can ignore the reminder, act on it by running &lt;a href=&#34;https://github.com/gwenneg/blog-ai-friction-loop/blob/main/skills/update-context-docs/SKILL.md&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;&lt;code&gt;/update-context-docs&lt;/code&gt;&lt;/a&gt;, or opt out entirely with &lt;a href=&#34;https://github.com/gwenneg/blog-ai-friction-loop/blob/main/skills/disable-friction-capture/SKILL.md&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;&lt;code&gt;/disable-friction-capture&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;h3 id=&#34;turning-friction-into-doc-edits&#34;&gt;Turning friction into doc edits&lt;/h3&gt;&#xA;&lt;p&gt;When the developer runs &lt;a href=&#34;https://github.com/gwenneg/blog-ai-friction-loop/blob/main/skills/update-context-docs/SKILL.md&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;&lt;code&gt;/update-context-docs&lt;/code&gt;&lt;/a&gt;, the skill first checks for toolkit updates and lets the developer decide whether to install them. If an update changes a skill definition, Claude Code needs to be restarted before it can continue. Otherwise, the skill proceeds to process the accumulated friction files.&lt;/p&gt;&#xA;&lt;aside class=&#34;adm adm-warning&#34;&gt;&lt;div class=&#34;adm-label&#34; data-pagefind-ignore&gt;WARNING&lt;/div&gt;&lt;p&gt;Each time &lt;code&gt;/update-context-docs&lt;/code&gt; detects a new toolkit version, it &lt;a href=&#34;https://github.com/gwenneg/blog-ai-friction-loop/blob/main/skills/setup-friction-capture/scripts/install-friction-capture.sh&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;re-downloads and executes scripts&lt;/a&gt; from GitHub with no integrity verification. This is fine for a demo but would need checksums or signatures for production use.&lt;/p&gt;&lt;/aside&gt;&lt;p&gt;The skill groups events by target file and presents a numbered list. The developer can exclude any that look like noise.&lt;/p&gt;&#xA;&lt;p&gt;For each remaining event, the skill assesses severity (low, medium, or high), edits the target doc, and enforces a 200-line cap per file. It only touches files that already exist and follows their existing formatting.&lt;/p&gt;&#xA;&lt;p&gt;If a &lt;a href=&#34;https://www.promptfoo.dev/docs/intro/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;&lt;code&gt;promptfoo.yaml&lt;/code&gt;&lt;/a&gt; file exists in the repo, the skill can also propose eval test cases based on the friction events.&lt;/p&gt;&#xA;&lt;p&gt;The skill then creates a branch, commits, and opens a pull request with a friction metrics summary:&lt;/p&gt;&#xA;&lt;figure class=&#34;code&#34; data-pagefind-weight=&#34;0.5&#34;&gt;&#xA;  &lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-markdown&#34; data-lang=&#34;markdown&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;gu&#34;&gt;## Friction Metrics&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;gu&#34;&gt;### Events&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;|      Type      | Count |&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;|----------------|-------|&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;| Corrections    |   2   |&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;| Clarifications |   1   |&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;| Denials        |   1   |&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;| Mistakes       |   1   |&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;| &lt;span class=&#34;gs&#34;&gt;**Total**&lt;/span&gt;      | &lt;span class=&#34;gs&#34;&gt;**5**&lt;/span&gt; |&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;gu&#34;&gt;### Outcomes&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;|      Result      | Count |&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;|------------------|-------|&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;| Docs improved    |   3   |&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;| Eval cases added |   1   |&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;| Skipped by user  |   1   |&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;gs&#34;&gt;**Docs improved:**&lt;/span&gt; &lt;span class=&#34;sb&#34;&gt;`docs/api-guidelines.md`&lt;/span&gt;, &lt;span class=&#34;sb&#34;&gt;`AGENTS.md`&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/figure&gt;&#xA;&lt;p&gt;After processing, the friction files are deleted from &lt;code&gt;.claude/friction/&lt;/code&gt;.&lt;/p&gt;&#xA;&lt;h2 id=&#34;configuration&#34;&gt;Configuration&lt;/h2&gt;&#xA;&lt;p&gt;Set the following variables under the &lt;code&gt;env&lt;/code&gt; key in &lt;code&gt;.claude/settings.json&lt;/code&gt; for team-wide use, or in &lt;code&gt;.claude/settings.local.json&lt;/code&gt; to keep them local.&lt;/p&gt;&#xA;&lt;div class=&#34;table-wrap&#34;&gt;&#xA;&lt;table&gt;&#xA;  &lt;thead&gt;&#xA;    &lt;tr&gt;&#xA;      &lt;th&gt;Variable&lt;/th&gt;&#xA;      &lt;th&gt;Description&lt;/th&gt;&#xA;      &lt;th&gt;Default&lt;/th&gt;&#xA;    &lt;/tr&gt;&#xA;  &lt;/thead&gt;&#xA;  &lt;tbody&gt;&#xA;    &lt;tr&gt;&#xA;      &lt;td&gt;&lt;code&gt;FRICTION_CAPTURE&lt;/code&gt;&lt;/td&gt;&#xA;      &lt;td&gt;Controls whether friction capture is active. Run &lt;a href=&#34;https://github.com/gwenneg/blog-ai-friction-loop/blob/main/skills/disable-friction-capture/SKILL.md&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;&lt;code&gt;/disable-friction-capture&lt;/code&gt;&lt;/a&gt; to opt out locally in a repo where friction capture is enabled.&lt;/td&gt;&#xA;      &lt;td&gt;&lt;code&gt;1&lt;/code&gt; (enabled)&lt;/td&gt;&#xA;    &lt;/tr&gt;&#xA;    &lt;tr&gt;&#xA;      &lt;td&gt;&lt;code&gt;FRICTION_SESSION_THRESHOLD&lt;/code&gt;&lt;/td&gt;&#xA;      &lt;td&gt;Number of sessions with unprocessed friction before the startup reminder is displayed in Claude Code.&lt;/td&gt;&#xA;      &lt;td&gt;&lt;code&gt;3&lt;/code&gt;&lt;/td&gt;&#xA;    &lt;/tr&gt;&#xA;  &lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&lt;/div&gt;&#xA;&lt;h2 id=&#34;try-it-yourself&#34;&gt;Try it yourself&lt;/h2&gt;&#xA;&lt;p&gt;All skills and scripts described in this post and the &lt;a href=&#34;/2026/05/28/the-docs-your-ai-agent-is-missing.html&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;previous one&lt;/a&gt; are available as a Claude Code plugin in the &lt;a href=&#34;https://github.com/gwenneg/blog-ai-friction-loop&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;gwenneg/blog-ai-friction-loop&lt;/a&gt; repository.&lt;/p&gt;&#xA;&lt;aside class=&#34;adm adm-warning&#34;&gt;&lt;div class=&#34;adm-label&#34; data-pagefind-ignore&gt;WARNING&lt;/div&gt;&lt;p&gt;This repository is intended for experimentation. The toolkit periodically re-downloads and executes scripts from GitHub with no signature verification. If the repository or a release were compromised, malicious code would run on the developer&amp;rsquo;s machine at the next update. Do not use it on projects with sensitive or proprietary code until artifact signing is in place.&lt;/p&gt;&lt;/aside&gt;&lt;p&gt;Clone it and start Claude Code with the plugin from your target project:&lt;/p&gt;&#xA;&lt;figure class=&#34;code&#34; data-pagefind-weight=&#34;0.5&#34;&gt;&#xA;  &lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;git clone https://github.com/gwenneg/blog-ai-friction-loop.git&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nb&#34;&gt;cd&lt;/span&gt; /path/to/your-project&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;claude --plugin-dir /path/to/blog-ai-friction-loop&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/figure&gt;&#xA;&lt;p&gt;Then run &lt;a href=&#34;https://github.com/gwenneg/blog-ai-friction-loop/blob/main/skills/setup-friction-capture/SKILL.md&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;&lt;code&gt;/setup-friction-capture&lt;/code&gt;&lt;/a&gt;, which handles the full installation:&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Downloads the scripts and skill definitions from the latest &lt;a href=&#34;https://github.com/gwenneg/blog-ai-friction-loop/releases&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;gwenneg/blog-ai-friction-loop release&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;Installs the &lt;code&gt;SessionStart&lt;/code&gt; and &lt;code&gt;SessionEnd&lt;/code&gt; hooks shown earlier into &lt;code&gt;.claude/settings.json&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;Updates &lt;code&gt;.gitignore&lt;/code&gt; with an allowlist pattern for the &lt;code&gt;.claude/&lt;/code&gt; directory&lt;/li&gt;&#xA;&lt;li&gt;Commits everything and opens a PR&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;The &lt;code&gt;.claude/&lt;/code&gt; directory mixes things that should be committed (hooks, scripts, skills, shared settings) with things that should never be (friction logs, local settings, worktrees, lock files).&#xA;The allowlist pattern looks like this:&lt;/p&gt;&#xA;&lt;figure class=&#34;code&#34; data-pagefind-weight=&#34;0.5&#34;&gt;&#xA;  &lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;/.claude/* (1)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;!/.claude/settings.json (2)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;!/.claude/scripts/ (3)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;!/.claude/skills/ (4)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;!/.claude/.friction-capture-version (5)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/figure&gt;&#xA;&lt;ol class=&#34;callouts&#34;&gt;&#xA;&lt;li&gt;Ignore everything in &lt;code&gt;.claude/&lt;/code&gt; by default.&lt;/li&gt;&#xA;&lt;li&gt;Shared settings are committed so the team gets the same hooks.&lt;/li&gt;&#xA;&lt;li&gt;Scripts are committed so the hooks work for everyone.&lt;/li&gt;&#xA;&lt;li&gt;Skills provide &lt;code&gt;/update-context-docs&lt;/code&gt; and &lt;code&gt;/disable-friction-capture&lt;/code&gt; to all developers.&lt;/li&gt;&#xA;&lt;li&gt;Tracks the installed toolkit version for update detection.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;The PR includes a note for reviewers about what data is sent and how to opt out.&lt;/p&gt;&#xA;&lt;h2 id=&#34;whats-next&#34;&gt;What&amp;rsquo;s next&lt;/h2&gt;&#xA;&lt;p&gt;As AI agents take on more of the coding work, keeping context docs accurate becomes critical. Friction will always exist. The question is whether it gets captured and fixed, or silently repeated across sessions.&lt;/p&gt;&#xA;&lt;p&gt;I&amp;rsquo;m deploying this across several repositories at Red Hat and collecting feedback. This is one approach to the problem, and I expect it to change as teams adapt it to their own workflows.&lt;/p&gt;&#xA;&lt;p&gt;The capture is purely reactive right now: it catches what went wrong, not what could go wrong. A major refactor can silently invalidate parts of the guidelines, and the loop only notices once an agent stumbles. That&amp;rsquo;s a known gap and something I want to address.&lt;/p&gt;&#xA;&lt;p&gt;I&amp;rsquo;m also working on the developer experience, exploring ways to further minimize the effort required from devs while keeping the docs updated automatically. That could eventually mean getting rid of the manual step entirely.&lt;/p&gt;&#xA;&lt;p&gt;If you try this or build something different, I&amp;rsquo;d love to hear about it. What breaks, what works, and what the next step looks like for your team.&#xA;Feel free to share in the comments.&lt;/p&gt;&#xA;</content>
    <author><name>Gwenneg Lepage</name></author>
    <category term="agents.md"/>
    <category term="ai"/>
    <category term="claude code"/>
    <category term="context engineering"/>
    <category term="developer experience"/>
    <category term="documentation"/>
    <summary type="html">An experiment using automated friction capture to continuously improve AI context docs, fixing both codebase drift and gaps in initially generated content.</summary>
  </entry>
  <entry>
    <title type="html">The docs your AI agent is missing</title>
    <link href="https://gwenneg.com/2026/05/28/the-docs-your-ai-agent-is-missing.html" rel="alternate" type="text/html" title="The docs your AI agent is missing"/>
    <published>2026-05-28T00:00:00+02:00</published>
    <updated>2026-05-28T00:00:00+02:00</updated>
    <id>https://gwenneg.github.io/2026/05/28/the-docs-your-ai-agent-is-missing</id>
    <content type="html" xml:base="https://gwenneg.com/2026/05/28/the-docs-your-ai-agent-is-missing.html">&lt;aside class=&#34;adm adm-note&#34; data-pagefind-ignore&gt;&lt;div class=&#34;adm-label&#34; data-pagefind-ignore&gt;NOTE&lt;/div&gt;&lt;p&gt;This post was written with the help of AI.&lt;/p&gt;&lt;/aside&gt;&lt;p&gt;In LangChain&amp;rsquo;s &lt;a href=&#34;https://www.langchain.com/state-of-agent-engineering&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;2026 survey of 1,300 AI professionals&lt;/a&gt;, large enterprises cited context engineering and managing context at scale as one of their biggest challenges in ensuring agent quality.&#xA;The term &amp;quot;context engineering&amp;quot; is barely a year old, and most organizations are still figuring it out.&lt;/p&gt;&#xA;&lt;p&gt;The challenge is no longer whether AI can write code.&#xA;It&amp;rsquo;s whether it knows enough about &lt;em&gt;your&lt;/em&gt; project to write the right code.&#xA;And even when teams invest in writing context docs, keeping them accurate is its own problem.&#xA;A &lt;a href=&#34;https://arxiv.org/pdf/2510.21413&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;study of 10,000 open-source repositories&lt;/a&gt; found that half of the &lt;code&gt;AGENTS.md&lt;/code&gt; files it identified were never modified after creation.&lt;/p&gt;&#xA;&lt;p&gt;I&amp;rsquo;ve been experimenting with this at Red Hat, trying different ways to structure and maintain context docs for AI agents.&#xA;In this post, I&amp;rsquo;ll walk through &lt;a href=&#34;https://github.com/gwenneg/blog-ai-friction-loop/blob/main/skills/init-context-docs/SKILL.md&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;a Claude Code skill&lt;/a&gt; I built to help bootstrap the documentation agents need to work effectively on a project.&#xA;Here&amp;rsquo;s a before/after on a real project:&lt;/p&gt;&#xA;&lt;figure class=&#34;shot&#34;&gt;&lt;img src=&#34;/assets/images/posts/the-docs-your-ai-agent-is-missing/before-after.png&#34; alt=&#34;Before/after comparison&#34; width=&#34;980&#34; height=&#34;279&#34; style=&#34;width: 90%&#34; loading=&#34;lazy&#34; decoding=&#34;async&#34;&gt;&#xA;&lt;/figure&gt;&lt;aside class=&#34;adm adm-note&#34;&gt;&lt;div class=&#34;adm-label&#34; data-pagefind-ignore&gt;NOTE&lt;/div&gt;&lt;p&gt;An agent can get context from many sources: static files loaded at startup, dynamic retrieval (RAG), memory systems and more.&#xA;This post only covers the first: repo-level documentation that describes conventions, pitfalls, architectural decisions and other project knowledge not visible in the code.&lt;/p&gt;&lt;/aside&gt;&lt;h2 id=&#34;initiating-context-docs-with-a-claude-skill&#34;&gt;Initiating context docs with a Claude skill&lt;/h2&gt;&#xA;&lt;p&gt;The &lt;code&gt;/init-context-docs&lt;/code&gt; skill assesses a repository&amp;rsquo;s readiness for AI-assisted development, then bootstraps a layered set of context files.&#xA;While &lt;code&gt;AGENTS.md&lt;/code&gt; and the guideline files work with any tool that supports the standard, the loading behaviors described here are specific to Claude Code:&lt;/p&gt;&#xA;&lt;div class=&#34;table-wrap&#34;&gt;&#xA;&lt;table&gt;&#xA;  &lt;colgroup&gt;&lt;col style=&#34;width: 25%&#34;&gt;&lt;col style=&#34;width: 50%&#34;&gt;&lt;col style=&#34;width: 25%&#34;&gt;&lt;/colgroup&gt;&#xA;  &lt;thead&gt;&#xA;    &lt;tr&gt;&#xA;      &lt;th&gt;File&lt;/th&gt;&#xA;      &lt;th&gt;Role&lt;/th&gt;&#xA;      &lt;th&gt;Loading behavior&lt;/th&gt;&#xA;    &lt;/tr&gt;&#xA;  &lt;/thead&gt;&#xA;  &lt;tbody&gt;&#xA;    &lt;tr&gt;&#xA;      &lt;td&gt;&lt;code&gt;docs/*-guidelines.md&lt;/code&gt;&lt;/td&gt;&#xA;      &lt;td&gt;Domain-specific guidelines (e.g., security, testing, database). Capped at 200 lines.&lt;/td&gt;&#xA;      &lt;td&gt;At Claude&amp;rsquo;s discretion via &lt;code&gt;AGENTS.md&lt;/code&gt; index&lt;/td&gt;&#xA;    &lt;/tr&gt;&#xA;    &lt;tr&gt;&#xA;      &lt;td&gt;&lt;code&gt;AGENTS.md&lt;/code&gt;&lt;/td&gt;&#xA;      &lt;td&gt;Cross-cutting conventions and index to guideline files. Agent-agnostic. Capped at 200 lines.&lt;/td&gt;&#xA;      &lt;td&gt;At Claude&amp;rsquo;s discretion by default; unconditional when imported via &lt;code&gt;@AGENTS.md&lt;/code&gt; in &lt;code&gt;CLAUDE.md&lt;/code&gt;&lt;/td&gt;&#xA;    &lt;/tr&gt;&#xA;    &lt;tr&gt;&#xA;      &lt;td&gt;&lt;code&gt;.claude/rules/*.md&lt;/code&gt;&lt;/td&gt;&#xA;      &lt;td&gt;Path-scoped loaders that force a guideline into context for matching files.&lt;/td&gt;&#xA;      &lt;td&gt;Path-scoped deterministic load&lt;/td&gt;&#xA;    &lt;/tr&gt;&#xA;    &lt;tr&gt;&#xA;      &lt;td&gt;&lt;code&gt;CLAUDE.md&lt;/code&gt;&lt;/td&gt;&#xA;      &lt;td&gt;Thin Claude Code-specific layer. Imports &lt;code&gt;AGENTS.md&lt;/code&gt; via &lt;code&gt;@AGENTS.md&lt;/code&gt;. Capped at 100 lines.&lt;/td&gt;&#xA;      &lt;td&gt;Unconditional load (every session)&lt;/td&gt;&#xA;    &lt;/tr&gt;&#xA;    &lt;tr&gt;&#xA;      &lt;td&gt;&lt;code&gt;README.md&lt;/code&gt;&lt;/td&gt;&#xA;      &lt;td&gt;High-level project context for humans and agents alike.&lt;/td&gt;&#xA;      &lt;td&gt;At Claude&amp;rsquo;s discretion&lt;/td&gt;&#xA;    &lt;/tr&gt;&#xA;  &lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&lt;/div&gt;&#xA;&lt;figure class=&#34;shot titled&#34;&gt;&lt;figcaption&gt;Context docs loading layers&lt;/figcaption&gt;&lt;img src=&#34;/assets/images/posts/the-docs-your-ai-agent-is-missing/context-docs-loading-layers.svg&#34; alt=&#34;Context docs loading layers&#34; width=&#34;861&#34; height=&#34;496&#34; style=&#34;width: 85%&#34; loading=&#34;lazy&#34; decoding=&#34;async&#34;&gt;&#xA;&lt;/figure&gt;&lt;p&gt;The unconditional layer is the most expensive in terms of context window tokens: it&amp;rsquo;s loaded every session regardless of the task.&#xA;Files loaded at Claude&amp;rsquo;s discretion are the cheapest, but come with no guarantee.&#xA;Path-scoped rules sit in between: deterministic loading, but only for matching files.&lt;/p&gt;&#xA;&lt;h2 id=&#34;why-size-and-ordering-matter&#34;&gt;Why size and ordering matter&lt;/h2&gt;&#xA;&lt;p&gt;Several studies point in the same direction: longer context alone hurts LLM performance, even when the content is relevant (&lt;a href=&#34;https://arxiv.org/pdf/2510.05381&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Du et al., 2025&lt;/a&gt;).&#xA;Models pay the most attention to the beginning and end of their input; everything in the middle gets less (&lt;a href=&#34;https://arxiv.org/pdf/2307.03172&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Liu et al., 2024&lt;/a&gt;; &lt;a href=&#34;https://arxiv.org/pdf/2502.01951&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Wu et al., 2025&lt;/a&gt;).&#xA;Anthropic frames context as &lt;a href=&#34;https://www.anthropic.com/engineering/effective-context-engineering-for-ai-agents&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;&amp;quot;a precious, finite resource&amp;quot;&lt;/a&gt;.&#xA;On the flip side, well-formed &lt;code&gt;AGENTS.md&lt;/code&gt; files are associated with ~29% faster execution (&lt;a href=&#34;https://arxiv.org/pdf/2601.20404&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Lulla et al., 2026&lt;/a&gt;).&#xA;But more isn&amp;rsquo;t better: LLM-generated context files with unnecessary content actually reduce task success rates compared to no context at all (&lt;a href=&#34;https://arxiv.org/pdf/2602.11988&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Gloaguen et al., 2026&lt;/a&gt;).&lt;/p&gt;&#xA;&lt;p&gt;This is why every file in the system is capped (200 lines for guidelines and &lt;code&gt;AGENTS.md&lt;/code&gt;, 100 for &lt;code&gt;CLAUDE.md&lt;/code&gt;), the most critical rules go first, verification commands go last, and everything in between is kept ruthlessly short.&lt;/p&gt;&#xA;&lt;h2 id=&#34;why-each-layer-matters&#34;&gt;Why each layer matters&lt;/h2&gt;&#xA;&lt;p&gt;Every layer is a tradeoff between loading guarantee and token cost. The question for each file is: does the agent need this every session, only for certain files, or only sometimes?&lt;/p&gt;&#xA;&lt;h3 id=&#34;guidelines&#34;&gt;Guidelines&lt;/h3&gt;&#xA;&lt;p&gt;This is the deepest layer: concrete rules about how &lt;em&gt;this&lt;/em&gt; codebase does things (e.g., &amp;quot;use &lt;code&gt;middleware/validator.ts&lt;/code&gt; for input validation&amp;quot;), not general best practices (e.g., &amp;quot;always validate user input&amp;quot;).&#xA;Each guideline targets a specific domain (e.g., security, testing, database), determined dynamically based on what the skill finds in the repo.&lt;/p&gt;&#xA;&lt;p&gt;Anthropic calls self-verification &lt;a href=&#34;https://code.claude.com/docs/en/best-practices#give-claude-a-way-to-verify-its-work&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;&amp;quot;the single highest-leverage thing you can do&amp;quot;&lt;/a&gt;, so every guideline ends with a Verification section listing commands the agent can run to check its own work.&lt;/p&gt;&#xA;&lt;h3 id=&#34;agents-md&#34;&gt;AGENTS.md&lt;/h3&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://agents.md/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;AGENTS.md&lt;/a&gt; is an open standard stewarded by the Linux Foundation, supported by all major AI coding tools and adopted by 60K+ open-source projects.&#xA;It serves as the agent-agnostic onboarding doc: cross-cutting conventions plus an index pointing to the detailed guidelines.&lt;/p&gt;&#xA;&lt;p&gt;Claude uses this index to decide which guidelines to load based on the current task.&#xA;This is a judgment call by the agent, not a guaranteed mechanism.&#xA;In practice, Claude sometimes skips a guideline it should have loaded, especially when the relevance isn&amp;rsquo;t obvious from the file names alone.&#xA;Path-scoped rules (covered below) exist to address that.&lt;/p&gt;&#xA;&lt;h3 id=&#34;path-scoped-rules&#34;&gt;Path-scoped rules&lt;/h3&gt;&#xA;&lt;p&gt;&lt;code&gt;.claude/rules/*.md&lt;/code&gt; files let you force a guideline into context only when Claude works with matching files.&#xA;This addresses the gap mentioned above: when Claude&amp;rsquo;s own judgment about which guidelines to load isn&amp;rsquo;t reliable enough, a rule makes the loading deterministic.&lt;/p&gt;&#xA;&lt;figure class=&#34;code&#34; data-pagefind-weight=&#34;0.5&#34;&gt;&#xA;  &lt;p&gt;&lt;strong&gt;.claude/rules/testing.md&lt;/strong&gt;&lt;/p&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-markdown&#34; data-lang=&#34;markdown&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;paths:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;k&#34;&gt;-&lt;/span&gt; &amp;#34;**/test/**&amp;#34;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;ni&#34;&gt;@docs/testing&lt;/span&gt;-guidelines.md&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/figure&gt;&#xA;&lt;p&gt;The benefit is precision: a guideline only consumes tokens when the agent actually needs it.&lt;/p&gt;&#xA;&lt;p&gt;But use rules sparingly.&#xA;Broad globs like &lt;code&gt;**/*&lt;/code&gt; make a guideline effectively always-loaded. Multiple rules can stack up on the same file.&#xA;Patterns can go stale if the codebase restructures.&#xA;And rules are Claude Code-specific; other tools don&amp;rsquo;t support them.&lt;/p&gt;&#xA;&lt;aside class=&#34;adm adm-warning&#34;&gt;&lt;div class=&#34;adm-label&#34; data-pagefind-ignore&gt;WARNING&lt;/div&gt;&lt;p&gt;If &lt;code&gt;.claude/rules/&lt;/code&gt; is gitignored, rules won&amp;rsquo;t be committed and other developers won&amp;rsquo;t benefit from them.&#xA;Make sure the rules directory is explicitly allowed in your &lt;code&gt;.gitignore&lt;/code&gt;.&#xA;The skill checks for this and offers to add an exception.&lt;/p&gt;&lt;/aside&gt;&lt;h3 id=&#34;claude-md&#34;&gt;CLAUDE.md&lt;/h3&gt;&#xA;&lt;p&gt;This is the thinnest layer: only what applies exclusively to Claude Code.&#xA;It&amp;rsquo;s loaded unconditionally at the start of every session, so every line consumes context window tokens regardless of the task.&#xA;Anthropic&amp;rsquo;s guidance is blunt: &lt;a href=&#34;https://code.claude.com/docs/en/best-practices#write-an-effective-claude-md&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;&amp;quot;Bloated CLAUDE.md files cause Claude to ignore your actual instructions!&amp;quot;&lt;/a&gt;&lt;/p&gt;&#xA;&lt;p&gt;Adding &lt;code&gt;@AGENTS.md&lt;/code&gt; near the top guarantees Claude always has the agent guidance available.&#xA;Without it, Claude may or may not read &lt;code&gt;AGENTS.md&lt;/code&gt; on its own. Loading is not guaranteed.&#xA;The tradeoff: the import makes loading deterministic, at the cost of consuming &lt;code&gt;AGENTS.md&lt;/code&gt; tokens unconditionally every session.&lt;/p&gt;&#xA;&lt;aside class=&#34;adm adm-warning&#34;&gt;&lt;div class=&#34;adm-label&#34; data-pagefind-ignore&gt;WARNING&lt;/div&gt;&lt;p&gt;Avoid importing guideline files directly from &lt;code&gt;CLAUDE.md&lt;/code&gt;.&#xA;That would make them always-loaded, defeating the on-demand architecture the rest of the system is built around.&lt;/p&gt;&lt;/aside&gt;&lt;h3 id=&#34;readme&#34;&gt;README&lt;/h3&gt;&#xA;&lt;p&gt;A well-structured README can answer &amp;quot;what does this project do and how do I build it?&amp;quot; without the agent exploring dozens of files.&#xA;The skill generates one that front-loads the essentials (project purpose, tech stack, build instructions) and links to &lt;code&gt;AGENTS.md&lt;/code&gt; and &lt;code&gt;docs/&lt;/code&gt; for the deeper layers.&lt;/p&gt;&#xA;&lt;h2 id=&#34;how-the-skill-works&#34;&gt;How the skill works&lt;/h2&gt;&#xA;&lt;figure class=&#34;shot titled&#34;&gt;&lt;figcaption&gt;Skill execution flow&lt;/figcaption&gt;&lt;img src=&#34;/assets/images/posts/the-docs-your-ai-agent-is-missing/skill-execution-flow.svg&#34; alt=&#34;Skill execution flow&#34; width=&#34;796&#34; height=&#34;1045&#34; style=&#34;width: 85%&#34; loading=&#34;lazy&#34; decoding=&#34;async&#34;&gt;&#xA;&lt;/figure&gt;&lt;aside class=&#34;adm adm-note&#34;&gt;&lt;div class=&#34;adm-label&#34; data-pagefind-ignore&gt;NOTE&lt;/div&gt;&lt;p&gt;At each phase, the skill asks whether to proceed, lets you skip layers, and offers customization before generating anything.&lt;/p&gt;&lt;/aside&gt;&lt;p&gt;The skill starts by scanning the repo against the five layers described above and presents a baseline status showing what already exists and what&amp;rsquo;s missing.&#xA;It then matches the repo against a curated list of guideline domains (e.g., security, testing, database), drops any that aren&amp;rsquo;t relevant, identifies additional domains not on the list (e.g., GraphQL, machine learning), and lets you adjust the final selection.&lt;/p&gt;&#xA;&lt;p&gt;Once the domains selection is final, the skill launches one generation agent per domain, each focused exclusively on its area.&#xA;An agent that only needs to produce a testing guideline can dig deep into your test patterns, rather than spreading its attention across the entire project.&#xA;The same pattern applies to &lt;code&gt;AGENTS.md&lt;/code&gt;, &lt;code&gt;CLAUDE.md&lt;/code&gt;, and &lt;code&gt;README&lt;/code&gt;: each gets its own generation agent.&#xA;If a file already exists, the generation agent reads the existing content first and incorporates it, updating with new findings while preserving what&amp;rsquo;s still accurate.&lt;/p&gt;&#xA;&lt;p&gt;Each generation agent reads a &lt;a href=&#34;https://github.com/gwenneg/blog-ai-friction-loop/tree/main/skills/init-context-docs/checklists&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;quality checklist&lt;/a&gt; before writing anything.&#xA;The checklists enforce constraints like the 200-line cap, the necessity test (&amp;quot;Would removing this cause an agent to make a mistake?&amp;quot;), a ban on absolute language without evidence, and the requirement that every file reference actually exists in the codebase.&#xA;Generation and verification agents share the same checklists, so both are measured against the same standard.&lt;/p&gt;&#xA;&lt;p&gt;A separate agent handles verification. The one that wrote the content is biased toward believing it&amp;rsquo;s correct: research shows that &lt;a href=&#34;https://arxiv.org/pdf/2404.13076&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;LLMs systematically favor their own output&lt;/a&gt; (Panickssery et al., 2024) and &lt;a href=&#34;https://arxiv.org/pdf/2507.02778&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;fail to correct their own errors&lt;/a&gt; while successfully correcting identical ones from external sources (Tsui, 2025).&#xA;There&amp;rsquo;s a catch, though: both studies examine self-bias within a single model.&#xA;The skill uses a different model for verification (Sonnet instead of Opus), but both belong to the same Claude family, so some bias may carry over.&#xA;Still, a fresh agent with a clean context checks file references against the actual codebase, validates factual claims with &lt;code&gt;WebSearch&lt;/code&gt;, looks for contradictions across files, and flags duplication across layers.&#xA;It only corrects inaccuracies.&#xA;It doesn&amp;rsquo;t add new content.&lt;/p&gt;&#xA;&lt;p&gt;After all agents finish, an &lt;a href=&#34;https://github.com/gwenneg/blog-ai-friction-loop/blob/main/skills/init-context-docs/scripts/automated-checks.sh&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;&lt;code&gt;automated-checks.sh&lt;/code&gt;&lt;/a&gt; script validates the generated files (line counts, imports, docs index, secret detection) and re-runs until all checks pass.&lt;/p&gt;&#xA;&lt;p&gt;The skill finally offers to create a pull request with all the changes, so the generated docs go through the team&amp;rsquo;s normal review process.&lt;/p&gt;&#xA;&lt;h2 id=&#34;try-it-yourself&#34;&gt;Try it yourself&lt;/h2&gt;&#xA;&lt;p&gt;Want to see how this works on your own project? Clone the &lt;a href=&#34;https://github.com/gwenneg/blog-ai-friction-loop&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;gwenneg/blog-ai-friction-loop&lt;/a&gt; repository, then start Claude Code with the plugin from your target project:&lt;/p&gt;&#xA;&lt;figure class=&#34;code&#34; data-pagefind-weight=&#34;0.5&#34;&gt;&#xA;  &lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;git clone https://github.com/gwenneg/blog-ai-friction-loop.git&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nb&#34;&gt;cd&lt;/span&gt; /path/to/your-project&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;claude --plugin-dir /path/to/blog-ai-friction-loop&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/figure&gt;&#xA;&lt;p&gt;Then type &lt;code&gt;/init-context-docs&lt;/code&gt;.&#xA;The skill will walk you through each layer, ask what to include, and let you skip anything that doesn&amp;rsquo;t apply.&#xA;Expect it to take anywhere from a few minutes to about half an hour depending on the size of your codebase.&lt;/p&gt;&#xA;&lt;h2 id=&#34;whats-next&#34;&gt;What&amp;rsquo;s next&lt;/h2&gt;&#xA;&lt;p&gt;In my own testing, the generated docs clearly improved how agents work with projects: fewer wrong assumptions, less time spent correcting output.&#xA;I don&amp;rsquo;t have metrics to back that up yet.&#xA;It&amp;rsquo;s based on what I observed across a handful of repositories.&lt;/p&gt;&#xA;&lt;p&gt;But even after all of this, the output is imperfect.&#xA;Guidelines can sound plausible while being wrong about specifics, and some conventions only reveal themselves when the agent actually tries to follow the docs.&lt;/p&gt;&#xA;&lt;p&gt;These are &lt;em&gt;friction events&lt;/em&gt;, moments where the docs failed the agent:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;The user corrected the agent&amp;rsquo;s output&lt;/li&gt;&#xA;&lt;li&gt;The agent asked a question the docs should have answered&lt;/li&gt;&#xA;&lt;li&gt;The agent made a wrong assumption about the codebase&lt;/li&gt;&#xA;&lt;li&gt;A tool call was denied because it violated a project policy the agent didn&amp;rsquo;t know about&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Each one is a signal that the docs have a gap, something a concrete rule or example could have prevented.&lt;/p&gt;&#xA;&lt;p&gt;In a &lt;a href=&#34;/2026/05/31/turn-ai-friction-into-better-docs.html&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;follow-up post&lt;/a&gt;, I introduce an experiment to capture these friction events automatically at the end of every session and turn them into targeted doc improvements.&lt;/p&gt;&#xA;&lt;p&gt;If you try &lt;code&gt;/init-context-docs&lt;/code&gt; on your own codebase, I&amp;rsquo;m curious what it gets right, what it misses, and what you end up changing.&#xA;Feel free to share your experience in the comments.&lt;/p&gt;&#xA;&lt;h2 id=&#34;sources&#34;&gt;Sources&lt;/h2&gt;&#xA;&lt;div class=&#34;table-wrap&#34;&gt;&#xA;&lt;table&gt;&#xA;  &lt;colgroup&gt;&lt;col style=&#34;width: 60%&#34;&gt;&lt;col style=&#34;width: 20%&#34;&gt;&lt;col style=&#34;width: 20%&#34;&gt;&lt;/colgroup&gt;&#xA;  &lt;thead&gt;&#xA;    &lt;tr&gt;&#xA;      &lt;th&gt;Source&lt;/th&gt;&#xA;      &lt;th&gt;Author&lt;/th&gt;&#xA;      &lt;th&gt;Date&lt;/th&gt;&#xA;    &lt;/tr&gt;&#xA;  &lt;/thead&gt;&#xA;  &lt;tbody&gt;&#xA;    &lt;tr&gt;&#xA;      &lt;td&gt;&lt;a href=&#34;https://arxiv.org/pdf/2602.11988&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Evaluating AGENTS.md: Are Repository-Level Context Files Helpful for Coding Agents?&lt;/a&gt;&lt;/td&gt;&#xA;      &lt;td&gt;Gloaguen et al. (ETH Zurich)&lt;/td&gt;&#xA;      &lt;td&gt;Feb 2026&lt;/td&gt;&#xA;    &lt;/tr&gt;&#xA;    &lt;tr&gt;&#xA;      &lt;td&gt;&lt;a href=&#34;https://arxiv.org/pdf/2601.20404&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;On the Impact of AGENTS.md Files on the Efficiency of AI Coding Agents&lt;/a&gt;&lt;/td&gt;&#xA;      &lt;td&gt;Lulla et al.&lt;/td&gt;&#xA;      &lt;td&gt;Jan 2026&lt;/td&gt;&#xA;    &lt;/tr&gt;&#xA;    &lt;tr&gt;&#xA;      &lt;td&gt;&lt;a href=&#34;https://www.langchain.com/state-of-agent-engineering&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;State of Agent Engineering&lt;/a&gt;&lt;/td&gt;&#xA;      &lt;td&gt;LangChain&lt;/td&gt;&#xA;      &lt;td&gt;Early 2026&lt;/td&gt;&#xA;    &lt;/tr&gt;&#xA;    &lt;tr&gt;&#xA;      &lt;td&gt;&lt;a href=&#34;https://arxiv.org/pdf/2510.21413&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Context Engineering for AI Agents in Open-Source Software&lt;/a&gt; (peer-reviewed, MSR 2026)&lt;/td&gt;&#xA;      &lt;td&gt;Mohsenimofidi et al.&lt;/td&gt;&#xA;      &lt;td&gt;Oct 2025&lt;/td&gt;&#xA;    &lt;/tr&gt;&#xA;    &lt;tr&gt;&#xA;      &lt;td&gt;&lt;a href=&#34;https://arxiv.org/pdf/2510.05381&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Context Length Alone Hurts LLM Performance Despite Perfect Retrieval&lt;/a&gt; (peer-reviewed, EMNLP Findings 2025)&lt;/td&gt;&#xA;      &lt;td&gt;Du et al.&lt;/td&gt;&#xA;      &lt;td&gt;Oct 2025&lt;/td&gt;&#xA;    &lt;/tr&gt;&#xA;    &lt;tr&gt;&#xA;      &lt;td&gt;&lt;a href=&#34;https://www.anthropic.com/engineering/effective-context-engineering-for-ai-agents&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Effective Context Engineering for AI Agents&lt;/a&gt;&lt;/td&gt;&#xA;      &lt;td&gt;Anthropic&lt;/td&gt;&#xA;      &lt;td&gt;Sep 2025&lt;/td&gt;&#xA;    &lt;/tr&gt;&#xA;    &lt;tr&gt;&#xA;      &lt;td&gt;&lt;a href=&#34;https://agents.md/&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;AGENTS.md open standard&lt;/a&gt;&lt;/td&gt;&#xA;      &lt;td&gt;Linux Foundation&lt;/td&gt;&#xA;      &lt;td&gt;Aug 2025&lt;/td&gt;&#xA;    &lt;/tr&gt;&#xA;    &lt;tr&gt;&#xA;      &lt;td&gt;&lt;a href=&#34;https://arxiv.org/pdf/2507.02778&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Self-Correction Bench: Uncovering and Addressing the Self-Correction Blind Spot in Large Language Models&lt;/a&gt;&lt;/td&gt;&#xA;      &lt;td&gt;Tsui&lt;/td&gt;&#xA;      &lt;td&gt;Jul 2025&lt;/td&gt;&#xA;    &lt;/tr&gt;&#xA;    &lt;tr&gt;&#xA;      &lt;td&gt;&lt;a href=&#34;https://code.claude.com/docs/en/best-practices&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Best practices for Claude Code&lt;/a&gt;&lt;/td&gt;&#xA;      &lt;td&gt;Anthropic&lt;/td&gt;&#xA;      &lt;td&gt;May 2025 (updated regularly)&lt;/td&gt;&#xA;    &lt;/tr&gt;&#xA;    &lt;tr&gt;&#xA;      &lt;td&gt;&lt;a href=&#34;https://arxiv.org/pdf/2502.01951&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;On the Emergence of Position Bias in Transformers&lt;/a&gt; (peer-reviewed, ICML 2025)&lt;/td&gt;&#xA;      &lt;td&gt;Wu et al. (MIT)&lt;/td&gt;&#xA;      &lt;td&gt;Feb 2025&lt;/td&gt;&#xA;    &lt;/tr&gt;&#xA;    &lt;tr&gt;&#xA;      &lt;td&gt;&lt;a href=&#34;https://arxiv.org/pdf/2404.13076&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;LLM Evaluators Recognize and Favor Their Own Generations&lt;/a&gt; (peer-reviewed, NeurIPS 2024)&lt;/td&gt;&#xA;      &lt;td&gt;Panickssery et al.&lt;/td&gt;&#xA;      &lt;td&gt;Apr 2024&lt;/td&gt;&#xA;    &lt;/tr&gt;&#xA;    &lt;tr&gt;&#xA;      &lt;td&gt;&lt;a href=&#34;https://arxiv.org/pdf/2307.03172&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Lost in the Middle: How Language Models Use Long Contexts&lt;/a&gt; (peer-reviewed, TACL 2024)&lt;/td&gt;&#xA;      &lt;td&gt;Liu et al. (Stanford)&lt;/td&gt;&#xA;      &lt;td&gt;Feb 2024&lt;/td&gt;&#xA;    &lt;/tr&gt;&#xA;  &lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&lt;/div&gt;&#xA;&lt;h2 id=&#34;special-thanks&#34;&gt;Special thanks&lt;/h2&gt;&#xA;&lt;p&gt;Thanks to Jiří Bönsch for helping me test and improve the &lt;code&gt;/init-context-docs&lt;/code&gt; skill.&lt;/p&gt;&#xA;</content>
    <author><name>Gwenneg Lepage</name></author>
    <category term="agents.md"/>
    <category term="ai"/>
    <category term="claude code"/>
    <category term="context engineering"/>
    <category term="developer experience"/>
    <category term="documentation"/>
    <summary type="html">A Claude Code skill that builds the context docs your AI agent needs, backed by research on how LLMs process context.</summary>
  </entry>
  <entry>
    <title type="html">Teaching Claude Code skills to improve themselves</title>
    <link href="https://gwenneg.com/2026/05/04/self-improving-claude-code-skills.html" rel="alternate" type="text/html" title="Teaching Claude Code skills to improve themselves"/>
    <published>2026-05-04T00:00:00+02:00</published>
    <updated>2026-05-04T00:00:00+02:00</updated>
    <id>https://gwenneg.github.io/2026/05/04/self-improving-claude-code-skills</id>
    <content type="html" xml:base="https://gwenneg.com/2026/05/04/self-improving-claude-code-skills.html">&lt;aside class=&#34;adm adm-note&#34; data-pagefind-ignore&gt;&lt;div class=&#34;adm-label&#34; data-pagefind-ignore&gt;NOTE&lt;/div&gt;&lt;p&gt;This post was written with the help of AI.&lt;/p&gt;&lt;/aside&gt;&lt;p&gt;I&amp;rsquo;ve been so deep into AI tooling lately that blogging fell off the radar — things move too fast to stop and write about them.&#xA;But this one is such a quick win that I had to share it, even if someone else has probably had the same idea before.&lt;/p&gt;&#xA;&lt;p&gt;If you&amp;rsquo;re using &lt;a href=&#34;https://docs.anthropic.com/en/docs/claude-code/skills&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Claude Code skills&lt;/a&gt;, you&amp;rsquo;ve probably noticed that getting them right takes a few iterations.&#xA;A skill might miss a step, produce something slightly off, or lack context that your &lt;code&gt;CLAUDE.md&lt;/code&gt; should have provided.&#xA;The usual fix is to notice the problem, remember to update the skill later, and then&amp;hellip; forget about it.&lt;/p&gt;&#xA;&lt;p&gt;What if the skill itself could flag those issues for you?&lt;/p&gt;&#xA;&lt;h2 id=&#34;the-idea&#34;&gt;The idea&lt;/h2&gt;&#xA;&lt;p&gt;Add an optional final step to your skills that asks Claude to look back at what just happened and suggest improvements.&#xA;Not to the code it produced — to the skill definition, &lt;code&gt;CLAUDE.md&lt;/code&gt;, or any other project documentation that would have made the execution smoother.&lt;/p&gt;&#xA;&lt;p&gt;Think of it as a mini retrospective that runs every time, at near-zero cost.&lt;/p&gt;&#xA;&lt;h2 id=&#34;the-instruction&#34;&gt;The instruction&lt;/h2&gt;&#xA;&lt;p&gt;Here&amp;rsquo;s what I append to my skills:&lt;/p&gt;&#xA;&lt;figure class=&#34;code&#34; data-pagefind-weight=&#34;0.5&#34;&gt;&#xA;  &lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-markdown&#34; data-lang=&#34;markdown&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;gu&#34;&gt;## Optional: Self-Improvement Review&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;After completing the skill, use AskUserQuestion to ask the user if they want to run the self-improvement review.&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;If they decline, skip it entirely.&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;If they accept, reflect on your execution:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;k&#34;&gt;-&lt;/span&gt; Did anything fail, feel awkward, or require unnecessary retries?&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;k&#34;&gt;-&lt;/span&gt; Were you missing context that CLAUDE.md or another project doc should have provided?&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;k&#34;&gt;-&lt;/span&gt; Is there a step in this skill that was unclear, redundant, or in the wrong order?&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;If you identify a concrete improvement, present it as a &lt;span class=&#34;gs&#34;&gt;**diff to the relevant file**&lt;/span&gt; (skill definition, CLAUDE.md, AGENTS.md, etc.) and offer to apply it. Do NOT just list observations — every finding must come with an actionable diff.&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;Do not apply changes without approval.&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;If nothing stands out, say so briefly and move on — do not force feedback.&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/figure&gt;&#xA;&lt;p&gt;A few things worth noting:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Asking for a &lt;strong&gt;diff&lt;/strong&gt; prevents vague suggestions like &amp;quot;consider improving the error handling step.&amp;quot; It forces something actionable.&lt;/li&gt;&#xA;&lt;li&gt;The &amp;quot;if nothing stands out, move on&amp;quot; line is important. Without it, Claude will invent problems to fill the step every single time.&lt;/li&gt;&#xA;&lt;li&gt;The scope covers both the skill &lt;em&gt;and&lt;/em&gt; project docs. A skill might work perfectly but still struggle because &lt;code&gt;CLAUDE.md&lt;/code&gt; is missing a convention or a path.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;does-it-actually-work&#34;&gt;Does it actually work?&lt;/h2&gt;&#xA;&lt;p&gt;In my experience, most executions produce no suggestion — which is the right outcome.&#xA;But when it does flag something, it&amp;rsquo;s usually a missing convention in &lt;code&gt;CLAUDE.md&lt;/code&gt; or a step in the skill that assumed context Claude didn&amp;rsquo;t have.&#xA;Those are exactly the kind of issues you&amp;rsquo;d never bother tracking down yourself.&lt;/p&gt;&#xA;&lt;p&gt;It won&amp;rsquo;t revolutionize your workflow, but it&amp;rsquo;s a small investment that compounds over time.&lt;/p&gt;&#xA;</content>
    <author><name>Gwenneg Lepage</name></author>
    <category term="ai"/>
    <category term="claude code"/>
    <summary type="html">A simple instruction you can append to your Claude Code skills to make them suggest improvements to themselves and your project docs.</summary>
  </entry>
  <entry>
    <title type="html">Easing the maintenance of Konflux build pipelines</title>
    <link href="https://gwenneg.com/2025/04/11/konflux-remote-pipeline.html" rel="alternate" type="text/html" title="Easing the maintenance of Konflux build pipelines"/>
    <published>2025-04-11T00:00:00+02:00</published>
    <updated>2025-04-11T00:00:00+02:00</updated>
    <id>https://gwenneg.github.io/2025/04/11/konflux-remote-pipeline</id>
    <content type="html" xml:base="https://gwenneg.com/2025/04/11/konflux-remote-pipeline.html">&lt;p&gt;&lt;a href=&#34;https://konflux-ci.dev&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Konflux&lt;/a&gt; is an open source, cloud-native software factory developed by Red Hat and focused on software supply chain security.&lt;/p&gt;&#xA;&lt;p&gt;When a component is &lt;a href=&#34;https://konflux-ci.dev/docs/building/creating&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;onboarded to Konflux&lt;/a&gt;, the &lt;a href=&#34;https://github.com/apps/red-hat-konflux&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Red Hat Konflux app&lt;/a&gt; automatically creates two build pipelines in the Git repository:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;${component.name}-pull-request.yaml&lt;/code&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;${component.name}-push.yaml&lt;/code&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Then, every once in a while, &lt;a href=&#34;https://github.com/konflux-ci/mintmaker&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;MintMaker&lt;/a&gt; — a Konflux hosted instance of the &lt;a href=&#34;https://github.com/renovatebot/renovate&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Renovate bot&lt;/a&gt; — will open PRs to update the Konflux task references in the pipelines.&#xA;Some of these PRs may also include &lt;a href=&#34;https://github.com/RedHatInsights/konflux-pipelines/pull/58&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;migration notes&lt;/a&gt; and require additional work.&lt;/p&gt;&#xA;&lt;p&gt;If you&amp;rsquo;re managing multiple repositories onboarded to Konflux, keeping all the pipelines up to date can require significant effort over time.&#xA;In this post, I&amp;rsquo;ll show you different ways to make pipeline maintenance easier by using remote pipelines and tweaking MintMaker&amp;rsquo;s settings.&lt;/p&gt;&#xA;&lt;aside class=&#34;adm adm-warning&#34;&gt;&lt;div class=&#34;adm-label&#34; data-pagefind-ignore&gt;WARNING&lt;/div&gt;&lt;p&gt;This post includes multiple references to the &lt;a href=&#34;https://github.com/RedHatInsights/konflux-pipelines&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;RedHatInsights/konflux-pipelines&lt;/a&gt; repository.&#xA;If you&amp;rsquo;re not a member of the RedHatInsights organization on GitHub, please consider forking the repository before using the remote pipelines it contains, as they may be modified at any time without prior notice.&lt;/p&gt;&lt;/aside&gt;&lt;h2 id=&#34;introducing-remote-pipelines&#34;&gt;Introducing remote pipelines&lt;/h2&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://tekton.dev/docs/pipelines/resolution&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Remote pipelines&lt;/a&gt; from Tekton let you reference pipeline definitions stored in external Git repositories instead of defining them locally in each project.&#xA;They make it easier to share and maintain pipelines across multiple repositories.&lt;/p&gt;&#xA;&lt;p&gt;Konflux is built on top of Tekton.&#xA;Let&amp;rsquo;s see how we can leverage remote pipelines in a Konflux build pipeline!&lt;/p&gt;&#xA;&lt;p&gt;Nothing shows it better than a good PR: &lt;a href=&#34;https://github.com/gwenneg/blog-remote-konflux-pipeline/pull/2/files&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;gwenneg/blog-remote-konflux-pipeline#2&lt;/a&gt;.&#xA;If you don&amp;rsquo;t have time to review the whole thing, here&amp;rsquo;s the TL;DR:&lt;/p&gt;&#xA;&lt;figure class=&#34;code&#34; data-pagefind-weight=&#34;0.5&#34;&gt;&#xA;  &lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-yaml&#34; data-lang=&#34;yaml&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nt&#34;&gt;apiVersion&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;tekton.dev/v1&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nt&#34;&gt;kind&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;PipelineRun&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nt&#34;&gt;metadata&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;  &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;annotations&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;    &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;pipelinesascode.tekton.dev/pipeline&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;p&#34;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&#34;sd&#34;&gt; (1)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;sd&#34;&gt;      https://github.com/RedHatInsights/konflux-pipelines/raw/main/pipelines/docker-build-oci-ta.yaml&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;    &lt;/span&gt;&lt;span class=&#34;c&#34;&gt;# Additional annotations omitted for brevity&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;  &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;labels&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;...&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;c&#34;&gt;# Omitted for brevity&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;  &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;name&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;remote-konflux-pipeline-on-pull-request&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;  &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;namespace&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;glepage-tenant&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nt&#34;&gt;spec&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;  &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;params&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;...&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;c&#34;&gt;# Omitted for brevity&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;  &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;pipelineRef&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; (2)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;    &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;name&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;docker-build-oci-ta&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; (3)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;  &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;workspaces&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;...&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;c&#34;&gt;# Omitted for brevity&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/figure&gt;&#xA;&lt;ol class=&#34;callouts&#34;&gt;&#xA;&lt;li&gt;This annotation comes from &lt;a href=&#34;https://pipelinesascode.com/docs/guide/resolver/#remote-pipeline-annotations&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Pipelines as Code&lt;/a&gt; and references a remote pipeline from the &lt;a href=&#34;https://github.com/RedHatInsights/konflux-pipelines&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;RedHatInsights/konflux-pipelines&lt;/a&gt; repository.&lt;/li&gt;&#xA;&lt;li&gt;The entire &lt;code&gt;pipelineSpec&lt;/code&gt; section from the default Konflux pipeline is replaced with a minimal &lt;code&gt;pipelineRef&lt;/code&gt; section.&lt;/li&gt;&#xA;&lt;li&gt;This value needs to match the &lt;code&gt;metadata.name&lt;/code&gt; value from the remote pipeline.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;h3 id=&#34;why-go-remote&#34;&gt;Why go remote?&lt;/h3&gt;&#xA;&lt;p&gt;After applying the changes shown above:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;MintMaker will no longer open PRs in your repository to update Konflux task references or request pipeline migrations.&lt;/li&gt;&#xA;&lt;li&gt;Your pipeline runs will automatically depend on the latest version of the remote pipelines, thanks to the dependency on the &lt;code&gt;main&lt;/code&gt; branch.&lt;/li&gt;&#xA;&lt;li&gt;MintMaker will still open PRs unrelated to pipelines, such as &lt;a href=&#34;https://github.com/RedHatInsights/sources-api-go/pull/835&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;RedHatInsights/sources-api-go#835&lt;/a&gt;, to update dependencies.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;aside class=&#34;adm adm-tip&#34;&gt;&lt;div class=&#34;adm-label&#34; data-pagefind-ignore&gt;TIP&lt;/div&gt;&lt;p&gt;If you want to test a change in a remote pipeline or roll back to an earlier version if something breaks, just point to a different Git branch or SHA.&lt;/p&gt;&lt;/aside&gt;&lt;h3 id=&#34;theres-a-catch&#34;&gt;There&amp;rsquo;s a catch&lt;/h3&gt;&#xA;&lt;p&gt;This approach almost entirely removes the need to maintain pipelines, but there&amp;rsquo;s a catch.&#xA;Since MintMaker won&amp;rsquo;t open PRs to update your pipelines anymore, any changes in the remote pipelines will go untested in your repository until you open another unrelated PR that triggers a pipeline run.&lt;/p&gt;&#xA;&lt;p&gt;The next section explains how to work around this limitation.&lt;/p&gt;&#xA;&lt;h2 id=&#34;depending-on-a-specific-release-of-remote-pipelines&#34;&gt;Depending on a specific release of remote pipelines&lt;/h2&gt;&#xA;&lt;p&gt;If the repository that hosts the remote pipelines publishes releases on GitHub, your repository can depend on a specific release instead of always using the latest version.&lt;/p&gt;&#xA;&lt;figure class=&#34;code&#34; data-pagefind-weight=&#34;0.5&#34;&gt;&#xA;  &lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-yaml&#34; data-lang=&#34;yaml&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nt&#34;&gt;apiVersion&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;tekton.dev/v1&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nt&#34;&gt;kind&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;PipelineRun&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nt&#34;&gt;metadata&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;  &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;annotations&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;    &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;pipelinesascode.tekton.dev/pipeline&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;p&#34;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&#34;sd&#34;&gt; (1)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;sd&#34;&gt;      https://github.com/RedHatInsights/konflux-pipelines/raw/v1.2.0/pipelines/docker-build-oci-ta.yaml&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;    &lt;/span&gt;&lt;span class=&#34;c&#34;&gt;# Additional annotations omitted for brevity&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;  &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;labels&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;...&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;c&#34;&gt;# Omitted for brevity&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;  &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;name&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;remote-konflux-pipeline-on-pull-request&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;  &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;namespace&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;glepage-tenant&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;nt&#34;&gt;spec&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;  &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;params&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;...&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;c&#34;&gt;# Omitted for brevity&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;  &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;pipelineRef&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;    &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;name&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;docker-build-oci-ta&lt;/span&gt;&lt;span class=&#34;w&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;w&#34;&gt;  &lt;/span&gt;&lt;span class=&#34;nt&#34;&gt;workspaces&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;l&#34;&gt;...&lt;/span&gt;&lt;span class=&#34;w&#34;&gt; &lt;/span&gt;&lt;span class=&#34;c&#34;&gt;# Omitted for brevity&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/figure&gt;&#xA;&lt;ol class=&#34;callouts&#34;&gt;&#xA;&lt;li&gt;The local pipeline now depends on version &lt;code&gt;v1.2.0&lt;/code&gt; of the remote pipeline instead of &lt;code&gt;main&lt;/code&gt;.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;With this approach:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;MintMaker will automatically open PRs such as &lt;a href=&#34;https://github.com/gwenneg/blog-remote-konflux-pipeline/pull/4&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;gwenneg/blog-remote-konflux-pipeline#4&lt;/a&gt; in your repository every time a new release of the remote pipelines is published.&lt;/li&gt;&#xA;&lt;li&gt;Any changes in the remote pipelines will be immediately tested in your repository and you will catch issues as early as possible.&lt;/li&gt;&#xA;&lt;li&gt;You still won&amp;rsquo;t have to worry about Konflux task reference updates or pipeline migrations.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;customizing-mintmakers-settings&#34;&gt;Customizing MintMaker&amp;rsquo;s settings&lt;/h2&gt;&#xA;&lt;aside class=&#34;adm adm-tip&#34;&gt;&lt;div class=&#34;adm-label&#34; data-pagefind-ignore&gt;TIP&lt;/div&gt;&lt;p&gt;You can use the tips from this section whether or not you&amp;rsquo;re using remote pipelines.&lt;/p&gt;&lt;/aside&gt;&lt;p&gt;MintMaker works out of the box in repositories onboarded to Konflux and doesn&amp;rsquo;t require any additional configuration files.&#xA;However, it is possible to customize MintMaker&amp;rsquo;s settings by adding a &lt;a href=&#34;https://github.com/gwenneg/blog-remote-konflux-pipeline/blob/main/renovate.json&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;renovate.json&lt;/a&gt; file at the root of your repository.&#xA;The default configuration is detailed in the &lt;a href=&#34;https://konflux-ci.dev/docs/mintmaker/default-config&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Konflux doc&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;h3 id=&#34;changing-when-mintmaker-runs&#34;&gt;Changing when MintMaker runs&lt;/h3&gt;&#xA;&lt;p&gt;The Renovate configuration lets you control when and how often MintMaker may open PRs in your repository:&lt;/p&gt;&#xA;&lt;figure class=&#34;code&#34; data-pagefind-weight=&#34;0.5&#34;&gt;&#xA;  &lt;p&gt;&lt;strong&gt;renovate.json&lt;/strong&gt;&lt;/p&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-json&#34; data-lang=&#34;json&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;p&#34;&gt;{&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nt&#34;&gt;&amp;#34;$schema&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;https://docs.renovatebot.com/renovate-schema.json&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nt&#34;&gt;&amp;#34;extends&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;[&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;github&amp;gt;konflux-ci/mintmaker//config/renovate/renovate.json&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;],&lt;/span&gt; (1)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nt&#34;&gt;&amp;#34;tekton&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;{&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;nt&#34;&gt;&amp;#34;schedule&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;[&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;on Tuesday after 3am and before 10am&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;]&lt;/span&gt; (2)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;p&#34;&gt;}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;p&#34;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/figure&gt;&#xA;&lt;ol class=&#34;callouts&#34;&gt;&#xA;&lt;li&gt;This snippet extends &lt;a href=&#34;https://github.com/konflux-ci/mintmaker/blob/main/config/renovate/renovate.json&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;https://github.com/konflux-ci/mintmaker/blob/main/config/renovate/renovate.json&lt;/a&gt;.&lt;/li&gt;&#xA;&lt;li&gt;Renovate supports both natural language and cron-based scheduling.&#xA;See the &lt;a href=&#34;https://docs.renovatebot.com/configuration-options/#schedule&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Renovate doc&lt;/a&gt; for more details.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;h3 id=&#34;automatically-approving-and-merging-mintmakers-prs&#34;&gt;Automatically approving and merging MintMaker&amp;rsquo;s PRs&lt;/h3&gt;&#xA;&lt;p&gt;You can also tweak your Renovate settings to automatically approve or &lt;a href=&#34;https://github.com/gwenneg/blog-remote-konflux-pipeline/pull/11&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;merge&lt;/a&gt; PRs opened by MintMaker:&lt;/p&gt;&#xA;&lt;figure class=&#34;code&#34; data-pagefind-weight=&#34;0.5&#34;&gt;&#xA;  &lt;p&gt;&lt;strong&gt;renovate.json&lt;/strong&gt;&lt;/p&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-json&#34; data-lang=&#34;json&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;p&#34;&gt;{&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nt&#34;&gt;&amp;#34;$schema&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;https://docs.renovatebot.com/renovate-schema.json&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nt&#34;&gt;&amp;#34;extends&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;[&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;github&amp;gt;konflux-ci/mintmaker//config/renovate/renovate.json&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;],&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nt&#34;&gt;&amp;#34;tekton&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;{&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;nt&#34;&gt;&amp;#34;autoApprove&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;kc&#34;&gt;true&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt; (1)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;nt&#34;&gt;&amp;#34;automerge&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;kc&#34;&gt;true&lt;/span&gt; (2)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;p&#34;&gt;}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;p&#34;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/figure&gt;&#xA;&lt;ol class=&#34;callouts&#34;&gt;&#xA;&lt;li&gt;Auto-approving only works in GitLab, not in GitHub. Find more details in the &lt;a href=&#34;https://docs.renovatebot.com/configuration-options/#autoapprove&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Renovate doc&lt;/a&gt;.&lt;/li&gt;&#xA;&lt;li&gt;Auto-merging works in both GitHub and GitLab. Find more details in the &lt;a href=&#34;https://docs.renovatebot.com/configuration-options/#automerge&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Renovate doc&lt;/a&gt;.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;h2 id=&#34;hosting-remote-konflux-pipelines&#34;&gt;Hosting remote Konflux pipelines&lt;/h2&gt;&#xA;&lt;p&gt;If you plan on creating a repository to host remote pipelines, there are two things you&amp;rsquo;ll need to do:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Onboard the repository to Konflux as a component.&lt;/li&gt;&#xA;&lt;li&gt;Let MintMaker know where to find the remote pipelines so it can keep them updated.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;figure class=&#34;code&#34; data-pagefind-weight=&#34;0.5&#34;&gt;&#xA;  &lt;p&gt;&lt;strong&gt;renovate.json&lt;/strong&gt;&lt;/p&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-json&#34; data-lang=&#34;json&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;p&#34;&gt;{&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nt&#34;&gt;&amp;#34;$schema&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;s2&#34;&gt;&amp;#34;https://docs.renovatebot.com/renovate-schema.json&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nt&#34;&gt;&amp;#34;extends&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;[&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;github&amp;gt;konflux-ci/mintmaker//config/renovate/renovate.json&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;],&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;nt&#34;&gt;&amp;#34;tekton&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;{&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;nt&#34;&gt;&amp;#34;includePaths&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;[&lt;/span&gt;&lt;span class=&#34;s2&#34;&gt;&amp;#34;pipelines/**&amp;#34;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;]&lt;/span&gt; (1)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  &lt;span class=&#34;p&#34;&gt;}&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;p&#34;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/figure&gt;&#xA;&lt;ol class=&#34;callouts&#34;&gt;&#xA;&lt;li&gt;By default, MintMaker only updates pipelines found in the &lt;code&gt;.tekton&lt;/code&gt; folder.&#xA;To use a different location, you must specify where the remote pipelines are located.&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;h2 id=&#34;special-thanks&#34;&gt;Special thanks&lt;/h2&gt;&#xA;&lt;p&gt;Special thanks to &lt;a href=&#34;https://github.com/jpopelka&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Jiri Popelka&lt;/a&gt; for suggesting the &lt;a href=&#34;https://pipelinesascode.com/docs/guide/resolver/#remote-pipeline-annotations&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Pipelines as Code annotation&lt;/a&gt; as an alternative to the &lt;a href=&#34;https://tekton.dev/docs/pipelines/git-resolver/#pipeline-resolution&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Tekton Git resolver&lt;/a&gt;.&lt;/p&gt;&#xA;</content>
    <author><name>Gwenneg Lepage</name></author>
    <category term="konflux"/>
    <summary type="html">Maintaining Konflux pipelines doesn’t have to be a pain. I’ve got a few tips to help you out.</summary>
  </entry>
</feed>
