<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
<title type="text">code.dblock.org | tech blog</title>
<generator uri="https://github.com/mojombo/jekyll">Jekyll</generator>
<link rel="self" type="application/atom+xml" href="https://code.dblock.org/feed.xml" />
<link rel="alternate" type="text/html" href="https://code.dblock.org" />
<updated>2026-11-27T18:45:20+00:00</updated>
<id>https://code.dblock.org/</id>
<author>
  <name>Daniel Doubrovkine</name>
  <uri>https://code.dblock.org/</uri>
  <email>dblock@dblock.org</email>
</author>


<entry>
  <title type="html"><![CDATA[Naming Claude Code and Copilot Sessions After Their Project]]></title>
 <link rel="alternate" type="text/html" href="https://code.dblock.org/2026/11/27/naming-claude-code-and-copilot-sessions-after-their-project.html" />
  <id>https://code.dblock.org/2026/11/27/naming-claude-code-and-copilot-sessions-after-their-project</id>
  <published>2026-11-27T00:00:00+00:00</published>
  <updated>2026-11-27T00:00:00+00:00</updated>
  <author>
    <name>Daniel Doubrovkine</name>
    <uri>https://code.dblock.org</uri>
    <email>dblock@dblock.org</email>
  </author>
  <content type="html">&lt;p&gt;I run a lot of Claude Code and GitHub Copilot CLI sessions in parallel, and both tools title a session with a summary of its first prompt. That’s fine until you have three sessions called something like “improve test sharding performance” and can’t tell which project any of them is about.&lt;/p&gt;

&lt;p&gt;So I made sessions name themselves after their project, with an emoji. I type “let’s add some emojis to our dotfiles” and get &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;🏠 dotfiles&lt;/code&gt; in either tool.&lt;/p&gt;

&lt;h3 id=&quot;claude-code&quot;&gt;Claude Code&lt;/h3&gt;

&lt;video controls=&quot;&quot; preload=&quot;metadata&quot; width=&quot;700&quot; style=&quot;display: block; margin-bottom: 1.5em;&quot; poster=&quot;/images/posts/2026/2026-11-27-naming-claude-code-and-copilot-sessions-after-their-project/claude-session-title.png&quot;&gt;
  &lt;source src=&quot;/images/posts/2026/2026-11-27-naming-claude-code-and-copilot-sessions-after-their-project/claude-session-title.mp4&quot; type=&quot;video/mp4&quot; /&gt;
&lt;/video&gt;

&lt;p&gt;Claude Code &lt;a href=&quot;https://code.claude.com/docs/en/hooks&quot;&gt;hooks&lt;/a&gt; support this out of the box. A &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;UserPromptSubmit&lt;/code&gt; hook receives the prompt, and if it prints &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;hookSpecificOutput.sessionTitle&lt;/code&gt;, that becomes the session title, same as &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;/rename&lt;/code&gt;. The hook also gets &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;session_title&lt;/code&gt; when the session already has one, so it only renames on the first prompt and never overrides a manual &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;/rename&lt;/code&gt;.&lt;/p&gt;

&lt;div class=&quot;language-json highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
  &lt;/span&gt;&lt;span class=&quot;nl&quot;&gt;&quot;hookSpecificOutput&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;nl&quot;&gt;&quot;hookEventName&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;UserPromptSubmit&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;nl&quot;&gt;&quot;sessionTitle&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;🧪 testlanes&quot;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
  &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;github-copilot-cli&quot;&gt;GitHub Copilot CLI&lt;/h3&gt;

&lt;video controls=&quot;&quot; preload=&quot;metadata&quot; width=&quot;700&quot; style=&quot;display: block; margin-bottom: 1.5em;&quot; poster=&quot;/images/posts/2026/2026-11-27-naming-claude-code-and-copilot-sessions-after-their-project/copilot-session-title.png&quot;&gt;
  &lt;source src=&quot;/images/posts/2026/2026-11-27-naming-claude-code-and-copilot-sessions-after-their-project/copilot-session-title.mp4&quot; type=&quot;video/mp4&quot; /&gt;
&lt;/video&gt;

&lt;p&gt;Copilot CLI &lt;a href=&quot;https://docs.github.com/en/copilot/how-tos/copilot-cli/customize-copilot/use-hooks&quot;&gt;hooks&lt;/a&gt; can’t set a title; a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;userPromptSubmitted&lt;/code&gt; hook can only add context for the model. The agent, however, can rename its own session with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;rename_session&lt;/code&gt; once you enable the session management tools. The tool leaves user-chosen names alone.&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;copilot config sessionManagementTools.scope &lt;span class=&quot;k&quot;&gt;in&lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;-process&lt;/span&gt;
copilot config sessionManagementTools.enabled on
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;So the two meet halfway. On the first prompt of a session, &lt;a href=&quot;https://github.com/dblock/dotfiles/blob/master/agents/copilot/hooks/session-title/session-title.sh&quot;&gt;a hook&lt;/a&gt; runs the same title script as Claude Code and hands the agent the exact name.&lt;/p&gt;

&lt;div class=&quot;language-json highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;nl&quot;&gt;&quot;additionalContext&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;Before anything else, call rename_session with name &lt;/span&gt;&lt;span class=&quot;se&quot;&gt;\&quot;&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;🧪 testlanes&lt;/span&gt;&lt;span class=&quot;se&quot;&gt;\&quot;&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;. Do not mention the rename. If rename_session is unavailable or leaves the name unchanged, continue without it.&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The name is computed outside the model, and the model’s only job is one tool call. The hook remembers which sessions it has seen, so later prompts and resumed sessions are left alone. Starting a session with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;/new speed up the testlanes CI&lt;/code&gt; works too, which is how the third session in the video begins. It’s still best effort until Copilot lets hooks set the title directly, and non-interactive &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;-p&lt;/code&gt; runs, which don’t have the tool, skip it.&lt;/p&gt;

&lt;h3 id=&quot;picking-the-name&quot;&gt;Picking the Name&lt;/h3&gt;

&lt;p&gt;Both hooks call &lt;a href=&quot;https://github.com/dblock/dotfiles/blob/master/agents/session-title/session-title.sh&quot;&gt;one shared bash script&lt;/a&gt; that prints a name, picked in this order.&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;A project under &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;~/source&lt;/code&gt; mentioned in the prompt, longest match first, so “excalc-rs” beats “excalc”. Repos inside organization folders count, while &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;master&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;upstream-*&lt;/code&gt;, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;dblock-*&lt;/code&gt; checkouts don’t.&lt;/li&gt;
  &lt;li&gt;The project of the working directory.&lt;/li&gt;
  &lt;li&gt;Otherwise, Haiku writes a short topic, such as &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;🔊 loud-laptop-fan&lt;/code&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Names are lowercase and hyphenated, because that’s how I name things. Haiku picks an emoji the first time a project shows up, and it’s cached, so &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;testlanes&lt;/code&gt; is always &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;🧪&lt;/code&gt;. I pin the ones I care about in &lt;a href=&quot;https://github.com/dblock/dotfiles/blob/master/agents/session-title/session-emojis.txt&quot;&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;session-emojis.txt&lt;/code&gt;&lt;/a&gt;. The list of ~380 projects is cached too, so a cached run takes 40ms.&lt;/p&gt;

&lt;h3 id=&quot;asking-haiku-from-a-hook&quot;&gt;Asking Haiku From a Hook&lt;/h3&gt;

&lt;p&gt;The shared script doesn’t know about either tool; each hook hands it a command that asks Haiku. In Claude Code, that’s &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;claude -p --model haiku&lt;/code&gt;, which starts a new Claude Code session, which runs the same hook, which calls &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;claude -p&lt;/code&gt;, and so on. The &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;--bare&lt;/code&gt; flag skips hooks, but it only accepts an API key and I sign in with OAuth. The fix is to disable hooks for the nested call and not save it as a session.&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;claude &lt;span class=&quot;nt&quot;&gt;-p&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;--model&lt;/span&gt; haiku &lt;span class=&quot;nt&quot;&gt;--no-session-persistence&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;--settings&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;{&quot;disableAllHooks&quot;:true}&apos;&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;--tools&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&quot;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Copilot CLI can ask Haiku too, but it has no flag to skip hooks or saving the session, so &lt;a href=&quot;https://github.com/dblock/dotfiles/blob/master/agents/copilot/hooks/session-title/ask-haiku.sh&quot;&gt;its helper&lt;/a&gt; runs it in a throwaway &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;COPILOT_HOME&lt;/code&gt; with no tools. The sign-in lives in the keychain, so it still works.&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nv&quot;&gt;COPILOT_HOME&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;$(&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;mktemp&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;-d&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt; copilot &lt;span class=&quot;nt&quot;&gt;-p&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$question&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;-s&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;--model&lt;/span&gt; claude-haiku-4.5 &lt;span class=&quot;nt&quot;&gt;--available-tools&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&quot;&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;--no-custom-instructions&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;receipts&quot;&gt;Receipts&lt;/h3&gt;

&lt;p&gt;The &lt;a href=&quot;https://github.com/dblock/dotfiles/blob/master/agents/session-title/session-title.test.sh&quot;&gt;shared script&lt;/a&gt; is tested against a fake &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;~/source&lt;/code&gt; and a fake model, and the &lt;a href=&quot;https://github.com/dblock/dotfiles/blob/master/agents/claude/hooks/session-title/session-title.test.sh&quot;&gt;Claude&lt;/a&gt; and &lt;a href=&quot;https://github.com/dblock/dotfiles/blob/master/agents/copilot/hooks/session-title/session-title.test.sh&quot;&gt;Copilot&lt;/a&gt; hooks against a fake title script. The videos were recorded with &lt;a href=&quot;https://github.com/charmbracelet/vhs&quot;&gt;VHS&lt;/a&gt; from tapes saved next to the hooks, with the demo sessions in plan mode so they couldn’t go and actually add emojis to my dotfiles. The Copilot ones get one more demo-only instruction: after renaming, say in a sentence what you’d look at first, and stop. That shows each session picking up its request, such as “Starting: I’ll look at testlanes’ CI workflows and test setup first”, without letting it loose.&lt;/p&gt;

&lt;p&gt;It’s all in my dotfiles: &lt;a href=&quot;https://github.com/dblock/dotfiles/commit/7d2ce562512ae56d1b636521e9104f971f909842&quot;&gt;the Claude Code hook&lt;/a&gt;, &lt;a href=&quot;https://github.com/dblock/dotfiles/commit/f3adf0b7d3e6edbfb15af121315a6bd222c2440b&quot;&gt;the Copilot hook&lt;/a&gt;, and &lt;a href=&quot;https://github.com/dblock/dotfiles/commit/2af6bee1aaedc56e75e57c3ff69dcfeb810a9195&quot;&gt;the shared script&lt;/a&gt;. Copy them, change &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;~/source&lt;/code&gt; to wherever you keep your code, and pick your own emojis.&lt;/p&gt;

  &lt;p&gt;&lt;a href=&quot;https://code.dblock.org/2026/11/27/naming-claude-code-and-copilot-sessions-after-their-project.html&quot;&gt;Naming Claude Code and Copilot Sessions After Their Project&lt;/a&gt; was originally published by Daniel Doubrovkine at &lt;a href=&quot;https://code.dblock.org&quot;&gt;code.dblock.org | tech blog&lt;/a&gt; on November 27, 2026.&lt;/p&gt;</content>
</entry>


<entry>
  <title type="html"><![CDATA[Automatic JavaScript Test Sharding on GitHub Actions]]></title>
 <link rel="alternate" type="text/html" href="https://code.dblock.org/2026/11/26/automatic-javascript-test-sharding-on-github-actions.html" />
  <id>https://code.dblock.org/2026/11/26/automatic-javascript-test-sharding-on-github-actions</id>
  <published>2026-11-26T00:00:00+00:00</published>
  <updated>2026-11-26T00:00:00+00:00</updated>
  <author>
    <name>Daniel Doubrovkine</name>
    <uri>https://code.dblock.org</uri>
    <email>dblock@dblock.org</email>
  </author>
  <content type="html">&lt;p&gt;Last week I wrote about &lt;a href=&quot;/2026/11/19/automatic-rspec-sharding-on-github-actions.html&quot;&gt;automatic RSpec sharding on GitHub Actions&lt;/a&gt; with &lt;a href=&quot;https://github.com/dblock/parallel_tests-ci&quot;&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;parallel_tests-ci&lt;/code&gt;&lt;/a&gt;, a Ruby project. Claude ported this approach to JavaScript and we called it &lt;a href=&quot;https://github.com/dblock/testlanes&quot;&gt;testlanes&lt;/a&gt;. It splits Vitest, Jest, and node:test suites into shards balanced by how long each test file took in earlier runs, on Linux, macOS, and Windows.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/dblock/testlanes&quot;&gt;&lt;img src=&quot;/images/posts/2026/2026-11-26-automatic-javascript-test-sharding-on-github-actions/testlanes-logo.svg&quot; alt=&quot;testlanes logo: four lanes of differently sized green test blocks that all end at the same edge&quot; width=&quot;160&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3 id=&quot;real-project-benchmarks&quot;&gt;Real Project Benchmarks&lt;/h3&gt;

&lt;p&gt;The tests of &lt;a href=&quot;https://github.com/dblock/npm-package-release&quot;&gt;npm-package-release&lt;/a&gt; took more than three minutes on Windows and almost as long on macOS. Each bar shows the slowest worker’s test step in one of the five Test environments, excluding setup. The &lt;a href=&quot;https://github.com/dblock/npm-package-release/actions/runs/45908637236&quot;&gt;unsharded run&lt;/a&gt; took 199 seconds on Windows and 170 seconds on macOS. I then ran the same pull request four times with four shards per environment, balanced by timings recorded before the split. The slowest worker took 27 to 48 seconds on Ubuntu, 57 to 58 seconds on macOS, and 74 to 110 seconds on Windows, whose runners vary the most from run to run.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/images/posts/2026/2026-11-26-automatic-javascript-test-sharding-on-github-actions/npm-package-release-test-overview.png&quot; alt=&quot;Slowest worker test time per environment: unsharded 46 to 199 seconds, and the median of four runs with four shards 31 to 90 seconds.&quot; /&gt;&lt;/p&gt;

&lt;h3 id=&quot;how-to-use-it&quot;&gt;How to Use It&lt;/h3&gt;

&lt;p&gt;With Node.js 22.12 or newer, add testlanes as a development dependency:&lt;/p&gt;

&lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;npm &lt;span class=&quot;nb&quot;&gt;install&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;--save-dev&lt;/span&gt; testlanes@0.3.0
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;In &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;.github/workflows/test.yml&lt;/code&gt;, call the reusable workflow at the same version and set &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;framework&lt;/code&gt; to &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;vitest&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;jest&lt;/code&gt;, or &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;node&lt;/code&gt; for node:test:&lt;/p&gt;

&lt;div class=&quot;language-yaml highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;na&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;Test&lt;/span&gt;
&lt;span class=&quot;na&quot;&gt;on&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;pi&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;push&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;pull_request&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;]&lt;/span&gt;

&lt;span class=&quot;na&quot;&gt;permissions&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
  &lt;span class=&quot;na&quot;&gt;contents&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;read&lt;/span&gt;
  &lt;span class=&quot;na&quot;&gt;actions&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;read&lt;/span&gt;

&lt;span class=&quot;na&quot;&gt;jobs&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
  &lt;span class=&quot;na&quot;&gt;test&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
    &lt;span class=&quot;na&quot;&gt;uses&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;dblock/testlanes/.github/workflows/testlanes.yml@v0.3.0&lt;/span&gt;
    &lt;span class=&quot;na&quot;&gt;with&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
      &lt;span class=&quot;na&quot;&gt;framework&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;node&lt;/span&gt;
      &lt;span class=&quot;na&quot;&gt;shards&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;4&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Use &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;runs-on&lt;/code&gt; to pick Linux, macOS, or Windows, and the workflow’s &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;setup&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;install-node-version&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;test-wrapper&lt;/code&gt;, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;artifacts&lt;/code&gt; &lt;a href=&quot;https://github.com/dblock/testlanes/tree/v0.3.0#configuration&quot;&gt;inputs&lt;/a&gt; to build before testing, install with a different Node.js than you test with, or collect coverage from every shard. The &lt;a href=&quot;https://github.com/dblock/npm-package-release/blob/master/.github/workflows/test.yml&quot;&gt;npm-package-release Test workflow&lt;/a&gt; runs all five environments as one matrix and sends every shard’s coverage to Coveralls.&lt;/p&gt;

&lt;h3 id=&quot;how-it-works&quot;&gt;How It Works&lt;/h3&gt;

&lt;p&gt;Without timing history, testlanes groups test files by size. Each shard runs its files with a small timing reporter for Vitest, Jest, or node:test. After a successful run triggered by a push to the default branch, the workflow combines the shards’ per-file timings into a &lt;a href=&quot;/downloads/posts/2026-11-26-automatic-javascript-test-sharding-on-github-actions/npm-package-release-timings.json&quot;&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;timings.json&lt;/code&gt;&lt;/a&gt; and uploads it as a GitHub Actions artifact. Later runs look for that artifact once, in recent successful runs of the same workflow on the default branch, and every shard downloads it and computes the same plan, giving each shard roughly the same amount of work; a final job checks that all shards agreed on the plan. Pull requests can also download the artifact, but cannot update the timing history.&lt;/p&gt;

&lt;p&gt;Ruby has &lt;a href=&quot;https://github.com/grosser/parallel_tests&quot;&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;parallel_tests&lt;/code&gt;&lt;/a&gt; to do the splitting. I found nothing maintained for JavaScript, so testlanes does it itself, assigning the heaviest file to the lightest shard until every file has a place. The reusable workflow’s own steps run JavaScript with &lt;a href=&quot;https://github.com/actions/github-script&quot;&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;actions/github-script&lt;/code&gt;&lt;/a&gt;, so they need no shell and behave the same on Linux, macOS, and Windows; only your &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;install-command&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;setup&lt;/code&gt; scripts run in the runner’s default shell.&lt;/p&gt;

&lt;p&gt;The test step is only part of the bill. Every shard checks out the code and installs dependencies, so with testlanes 0.2.0 the whole Test workflow took about as long as &lt;a href=&quot;https://github.com/dblock/npm-package-release/actions/runs/45908637236&quot;&gt;the unsharded run&lt;/a&gt; and used more than twice the runner time. testlanes 0.3.0 &lt;a href=&quot;https://github.com/dblock/testlanes/pull/21&quot;&gt;drops the separate planning job&lt;/a&gt;, which cut the whole workflow from 380 to 261 seconds across &lt;a href=&quot;https://github.com/dblock/testlanes/pull/21#issuecomment-7222224999&quot;&gt;four runs of each&lt;/a&gt;.&lt;/p&gt;

  &lt;p&gt;&lt;a href=&quot;https://code.dblock.org/2026/11/26/automatic-javascript-test-sharding-on-github-actions.html&quot;&gt;Automatic JavaScript Test Sharding on GitHub Actions&lt;/a&gt; was originally published by Daniel Doubrovkine at &lt;a href=&quot;https://code.dblock.org&quot;&gt;code.dblock.org | tech blog&lt;/a&gt; on November 26, 2026.&lt;/p&gt;</content>
</entry>


<entry>
  <title type="html"><![CDATA[Launch Agents for My AI Agents]]></title>
 <link rel="alternate" type="text/html" href="https://code.dblock.org/2026/11/25/launch-agents-for-my-ai-agents.html" />
  <id>https://code.dblock.org/2026/11/25/launch-agents-for-my-ai-agents</id>
  <published>2026-11-25T00:00:00+00:00</published>
  <updated>2026-11-25T00:00:00+00:00</updated>
  <author>
    <name>Daniel Doubrovkine</name>
    <uri>https://code.dblock.org</uri>
    <email>dblock@dblock.org</email>
  </author>
  <content type="html">&lt;p&gt;I got 691 email notifications from &lt;a href=&quot;https://docs.renovatebot.com/&quot;&gt;Renovate&lt;/a&gt; and 740 from &lt;a href=&quot;https://github.com/dependabot&quot;&gt;Dependabot&lt;/a&gt; in 2026. Dependabot is great as it automatically PRs dependency updates for you, but it quickly gets too noisy and needs constant rebases. Renovate improves upon Dependabot by letting you group many dependency upgrades into a single PR. At some scale, the amount of attention these notifications require all day long is just too much, and I am not quite ready to roll out &lt;a href=&quot;https://docs.github.com/en/code-security/tutorials/secure-your-dependencies/automate-dependabot-with-actions&quot;&gt;auto-merge of Dependabot PRs&lt;/a&gt;. I wanted to group the work in ways that I can adjust and control across the hundreds of repos I’m involved with.&lt;/p&gt;

&lt;p&gt;My fix is boring. I use the macOS scheduler, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;launchd&lt;/code&gt;, and a LaunchAgent to run a &lt;a href=&quot;https://github.com/dblock/dotfiles/blob/master/agents/skills/update-dependencies/SKILL.md&quot;&gt;dependency update skill&lt;/a&gt; every other Saturday. Claude Code sweeps every project I’m actively working on and opens one PR per project with all the minor and patch updates already tested, stacks PRs on top for the major upgrades it can manage, and lists the rest.&lt;/p&gt;

&lt;h3 id=&quot;implementation-details&quot;&gt;Implementation Details&lt;/h3&gt;

&lt;p&gt;A LaunchAgent is a plist with a label, a command, a schedule, and where to send output. I keep mine in &lt;a href=&quot;https://github.com/dblock/dotfiles/tree/master/scripts/osx/LaunchAgents&quot;&gt;my dotfiles&lt;/a&gt;, next to the instructions and skills I share between &lt;a href=&quot;/2026/11/22/teaching-my-copilot-and-claude-children-to-share.html&quot;&gt;Copilot and Claude&lt;/a&gt;. This one runs every Saturday at 3:00, through a login shell, so that &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;rvm&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;nvm&lt;/code&gt;, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;claude&lt;/code&gt; are on the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;PATH&lt;/code&gt;.&lt;/p&gt;

&lt;div class=&quot;language-xml highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nt&quot;&gt;&amp;lt;key&amp;gt;&lt;/span&gt;Label&lt;span class=&quot;nt&quot;&gt;&amp;lt;/key&amp;gt;&lt;/span&gt;
&lt;span class=&quot;nt&quot;&gt;&amp;lt;string&amp;gt;&lt;/span&gt;com.dblock.update-dependencies&lt;span class=&quot;nt&quot;&gt;&amp;lt;/string&amp;gt;&lt;/span&gt;
&lt;span class=&quot;nt&quot;&gt;&amp;lt;key&amp;gt;&lt;/span&gt;ProgramArguments&lt;span class=&quot;nt&quot;&gt;&amp;lt;/key&amp;gt;&lt;/span&gt;
&lt;span class=&quot;nt&quot;&gt;&amp;lt;array&amp;gt;&lt;/span&gt;
  &lt;span class=&quot;nt&quot;&gt;&amp;lt;string&amp;gt;&lt;/span&gt;/bin/bash&lt;span class=&quot;nt&quot;&gt;&amp;lt;/string&amp;gt;&lt;/span&gt;
  &lt;span class=&quot;nt&quot;&gt;&amp;lt;string&amp;gt;&lt;/span&gt;-l&lt;span class=&quot;nt&quot;&gt;&amp;lt;/string&amp;gt;&lt;/span&gt;
  &lt;span class=&quot;nt&quot;&gt;&amp;lt;string&amp;gt;&lt;/span&gt;/Users/dblock/source/dotfiles/scripts/osx/update-dependencies.sh&lt;span class=&quot;nt&quot;&gt;&amp;lt;/string&amp;gt;&lt;/span&gt;
&lt;span class=&quot;nt&quot;&gt;&amp;lt;/array&amp;gt;&lt;/span&gt;
&lt;span class=&quot;nt&quot;&gt;&amp;lt;key&amp;gt;&lt;/span&gt;StartCalendarInterval&lt;span class=&quot;nt&quot;&gt;&amp;lt;/key&amp;gt;&lt;/span&gt;
&lt;span class=&quot;nt&quot;&gt;&amp;lt;dict&amp;gt;&lt;/span&gt;
  &lt;span class=&quot;nt&quot;&gt;&amp;lt;key&amp;gt;&lt;/span&gt;Weekday&lt;span class=&quot;nt&quot;&gt;&amp;lt;/key&amp;gt;&lt;/span&gt;
  &lt;span class=&quot;nt&quot;&gt;&amp;lt;integer&amp;gt;&lt;/span&gt;6&lt;span class=&quot;nt&quot;&gt;&amp;lt;/integer&amp;gt;&lt;/span&gt;
  &lt;span class=&quot;nt&quot;&gt;&amp;lt;key&amp;gt;&lt;/span&gt;Hour&lt;span class=&quot;nt&quot;&gt;&amp;lt;/key&amp;gt;&lt;/span&gt;
  &lt;span class=&quot;nt&quot;&gt;&amp;lt;integer&amp;gt;&lt;/span&gt;3&lt;span class=&quot;nt&quot;&gt;&amp;lt;/integer&amp;gt;&lt;/span&gt;
  &lt;span class=&quot;nt&quot;&gt;&amp;lt;key&amp;gt;&lt;/span&gt;Minute&lt;span class=&quot;nt&quot;&gt;&amp;lt;/key&amp;gt;&lt;/span&gt;
  &lt;span class=&quot;nt&quot;&gt;&amp;lt;integer&amp;gt;&lt;/span&gt;0&lt;span class=&quot;nt&quot;&gt;&amp;lt;/integer&amp;gt;&lt;/span&gt;
&lt;span class=&quot;nt&quot;&gt;&amp;lt;/dict&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The plist runs &lt;a href=&quot;https://github.com/dblock/dotfiles/blob/master/scripts/osx/update-dependencies.sh&quot;&gt;update-dependencies.sh&lt;/a&gt;, which runs the skill with Claude Code in headless mode and saves its report.&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;caffeinate &lt;span class=&quot;nt&quot;&gt;-i&lt;/span&gt; claude &lt;span class=&quot;nt&quot;&gt;-p&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;/update-dependencies Unattended scheduled run: nobody can answer questions. ...&quot;&lt;/span&gt; &lt;span class=&quot;se&quot;&gt;\&lt;/span&gt;
  &lt;span class=&quot;nt&quot;&gt;--permission-mode&lt;/span&gt; auto &lt;span class=&quot;nt&quot;&gt;--permission-prompts&lt;/span&gt; none &lt;span class=&quot;nt&quot;&gt;--output-format&lt;/span&gt; json &lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$json&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Nothing about this worked on the first try.&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;launchd&lt;/code&gt; can’t express “every other week”, so the job runs every Saturday and the script exits on odd weeks. My first version used ISO week numbers, which would have gone three weeks without a sweep at New Year, because both week 53 and week 1 are odd. It now counts weeks since the Unix epoch.&lt;/li&gt;
  &lt;li&gt;A headless &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;claude -p&lt;/code&gt; &lt;a href=&quot;https://code.claude.com/docs/en/headless&quot;&gt;waits for background subagents&lt;/a&gt; for only 10 idle minutes by default. A sweep starts one agent per project and takes hours, so the script raises &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;CLAUDE_CODE_PRINT_BG_WAIT_CEILING_MS&lt;/code&gt; to 8 hours.&lt;/li&gt;
  &lt;li&gt;The docs reserve &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;bypassPermissions&lt;/code&gt; for &lt;a href=&quot;https://code.claude.com/docs/en/permission-modes&quot;&gt;isolated containers and VMs&lt;/a&gt;. Auto mode with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;--permission-prompts none&lt;/code&gt; approves routine actions with a classifier and denies the rest instead of waiting for me to click something at 3:00.&lt;/li&gt;
  &lt;li&gt;The first dry run died in &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;cd&lt;/code&gt;, because my login shell loads &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;gvm&lt;/code&gt;, which redefines &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;cd&lt;/code&gt;, and it crashes under &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;set -u&lt;/code&gt;. The script now calls &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;builtin cd&lt;/code&gt;.&lt;/li&gt;
  &lt;li&gt;It also left a lock directory behind, which would have blocked every future run. The lock now records a process ID and clears itself when that process is gone.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Linking a plist into &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;~/Library/LaunchAgents&lt;/code&gt; does nothing until it’s loaded with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;launchctl bootstrap&lt;/code&gt;, and a sleeping Mac runs nothing at all. So I wrote &lt;a href=&quot;https://github.com/dblock/dotfiles/blob/master/scripts/osx/schedule.sh&quot;&gt;schedule.sh&lt;/a&gt; for the day my Mac implodes. It installs the tools the jobs need with Homebrew, links and loads every LaunchAgent in my dotfiles, and schedules a wake.&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;k&quot;&gt;for &lt;/span&gt;plist &lt;span class=&quot;k&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$dir&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;/LaunchAgents/&lt;span class=&quot;k&quot;&gt;*&lt;/span&gt;.plist&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;do
  &lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;label&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;$(&lt;/span&gt;/usr/libexec/PlistBuddy &lt;span class=&quot;nt&quot;&gt;-c&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;Print :Label&apos;&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$plist&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;
  &lt;span class=&quot;nb&quot;&gt;link&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$agents_dir&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;$(&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;basename&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$plist&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;
  &lt;span class=&quot;nb&quot;&gt;ln&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;-sfn&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$plist&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$link&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;
  launchctl bootout &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$domain&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$label&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt; 2&amp;gt;/dev/null &lt;span class=&quot;o&quot;&gt;||&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;true
  &lt;/span&gt;launchctl bootstrap &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$domain&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$link&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;done

&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;sudo &lt;/span&gt;pmset repeat wakeorpoweron MTWRFSU 04:55:00
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;It turns out that macOS keeps exactly one repeating wake schedule, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;pmset repeat&lt;/code&gt; replaces whatever was there. Other jobs need a daily wake, so the Mac wakes at 4:55 every day, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;launchd&lt;/code&gt; runs a 3:00 sweep that the Mac slept through as soon as it wakes up.&lt;/p&gt;

&lt;p&gt;When a sweep fails, I want to know. I tried &lt;a href=&quot;https://github.com/julienXX/terminal-notifier&quot;&gt;terminal-notifier&lt;/a&gt;, which can open the report when you click a notification, but on macOS 26 the Homebrew build is ad-hoc signed and never gets permission to post notifications. A failed sweep now shows a plain &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;osascript&lt;/code&gt; alert instead. It stays on screen until I dismiss it, and its &lt;strong&gt;Open&lt;/strong&gt; button opens the report.&lt;/p&gt;

&lt;h3 id=&quot;project-management&quot;&gt;Project Management&lt;/h3&gt;

&lt;p&gt;Deciding what “every project I’m actively working on” means took a few rounds. The skill looks at every repository I can push to, whether it’s mine, an organization’s, or someone else’s where I’m a collaborator, and skips forks and archived ones. A project is active when its default branch has a commit that wasn’t made by a bot in the last 3 months, because bots pushing their own branches would make everything look active. Projects untouched for 3 to 12 months are listed in the report for me to pick from, and older ones are skipped. A &lt;a href=&quot;https://github.com/dblock/dotfiles/blob/master/agents/skills/update-dependencies/projects.yml&quot;&gt;projects.yml&lt;/a&gt; in my dotfiles includes what discovery misses, such as &lt;a href=&quot;https://github.com/dblock/create-a-github-issue&quot;&gt;create-a-github-issue&lt;/a&gt;, a fork that I maintain as a project of its own, and excludes organizations and repositories I don’t want swept, such as everything in &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;opensearch-project&lt;/code&gt;, which I no longer work on. My dotfiles are public, so private repositories go into an untracked &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;projects.local.yml&lt;/code&gt; next to it.&lt;/p&gt;

&lt;h3 id=&quot;the-first-sweep&quot;&gt;The First Sweep&lt;/h3&gt;

&lt;p&gt;A dry run with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;update-dependencies.sh --dry-run&lt;/code&gt; discovers projects, locates their checkouts, and changes nothing. It took 3 minutes, and this is the top of its report.&lt;/p&gt;

&lt;div class=&quot;language-text highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;## Discovery

- Sources: 330 writable repositories (not archived, not forks), plus 16 App Platform apps
  backed by 16 repositories, plus the one include-list entry, `dblock/create-a-github-issue`.
  That entry is a fork, but it&apos;s included explicitly.
- Excluded: 9 writable `opensearch-project/*` repositories, matched by the `exclude` list.
- Counts:
  - Active: 125.
  - Dormant: 11. Normally I&apos;d ask which of these to sweep.
  - Inactive: 195.
- Activity rule: a project&apos;s age is its newest default-branch commit not made by a bot,
  counted from today (2026-11-25). &quot;Active&quot; means a commit since 2026-08-25. &quot;Inactive&quot;
  means none since 2025-11-25.

## Active Projects and Checkouts

118 of the 125 have a checkout ...
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The first real sweep is on December 5, and could open one PR for each of up to 125 projects, plus stacked major upgrades. If the first run holds up, I’ll add instructions to merge those PRs on green.&lt;/p&gt;

&lt;p&gt;I’ll report back after December 5.&lt;/p&gt;

  &lt;p&gt;&lt;a href=&quot;https://code.dblock.org/2026/11/25/launch-agents-for-my-ai-agents.html&quot;&gt;Launch Agents for My AI Agents&lt;/a&gt; was originally published by Daniel Doubrovkine at &lt;a href=&quot;https://code.dblock.org&quot;&gt;code.dblock.org | tech blog&lt;/a&gt; on November 25, 2026.&lt;/p&gt;</content>
</entry>


<entry>
  <title type="html"><![CDATA[The Link Is Not Dead, It's Behind Cloudflare]]></title>
 <link rel="alternate" type="text/html" href="https://code.dblock.org/2026/11/23/the-link-is-not-dead-its-behind-cloudflare.html" />
  <id>https://code.dblock.org/2026/11/23/the-link-is-not-dead-its-behind-cloudflare</id>
  <published>2026-11-23T00:00:00+00:00</published>
  <updated>2026-11-23T00:00:00+00:00</updated>
  <author>
    <name>Daniel Doubrovkine</name>
    <uri>https://code.dblock.org</uri>
    <email>dblock@dblock.org</email>
  </author>
  <content type="html">&lt;p&gt;Most of my Jekyll blogs, including this one, used &lt;a href=&quot;https://github.com/gjtorikian/html-proofer&quot;&gt;html-proofer&lt;/a&gt; from a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;rake check&lt;/code&gt; task that I ran by hand, which means I never ran it. I swapped that for a faster &lt;a href=&quot;https://github.com/dblock/ruby-link-checker&quot;&gt;ruby-link-checker&lt;/a&gt;, and ran it in CI, piling broken links into a GitHub issue that I never looked at. Finally, I made &lt;a href=&quot;https://github.com/dblock/jekyll-ruby-link-checker&quot;&gt;jekyll-ruby-link-checker&lt;/a&gt; and got a hold of the broken links problem with some AI help.&lt;/p&gt;

&lt;h3 id=&quot;a-new-jekyll-plugin&quot;&gt;A New Jekyll Plugin&lt;/h3&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/dblock/jekyll-ruby-link-checker&quot;&gt;&lt;img src=&quot;https://code.dblock.org/images/posts/2026/2026-11-23-the-link-is-not-dead-its-behind-cloudflare/jekyll-ruby-link-checker-logo.svg&quot; width=&quot;96&quot; alt=&quot;jekyll-ruby-link-checker logo&quot; /&gt;&lt;/a&gt; &lt;a href=&quot;https://github.com/dblock/ruby-link-checker&quot;&gt;&lt;img src=&quot;https://code.dblock.org/images/posts/2026/2026-11-23-the-link-is-not-dead-its-behind-cloudflare/ruby-link-checker-logo.svg&quot; width=&quot;96&quot; alt=&quot;ruby-link-checker logo&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The new &lt;a href=&quot;https://github.com/dblock/jekyll-ruby-link-checker&quot;&gt;jekyll-ruby-link-checker&lt;/a&gt; is a Jekyll plugin that checks links during the build, with a cache and two reusable GitHub workflows that comment on pull requests and keep a “Broken Links” issue up to date.&lt;/p&gt;

&lt;h3 id=&quot;what-it-does&quot;&gt;What It Does&lt;/h3&gt;

&lt;p&gt;The plugin uses &lt;a href=&quot;https://github.com/dblock/ruby-link-checker&quot;&gt;ruby-link-checker&lt;/a&gt; for external links, and runs at the end of the Jekyll build, checking 5 external links at a time. It only runs when &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;LINK_CHECKER&lt;/code&gt; is set, so &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;jekyll serve&lt;/code&gt; and the build that deploys the site stay fast.&lt;/p&gt;

&lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nv&quot;&gt;LINK_CHECKER&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;1 bundle &lt;span class=&quot;nb&quot;&gt;exec &lt;/span&gt;jekyll build
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-text highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;LinkChecker: Checked 1 internal and 2 external links (0 cached), skipped 0.
LinkChecker: Found 2 dead links: /missing/ (page not found), linked from _posts/2026-11-23-hello.md https://github.com/dblock/this-does-not-exist-xyz (HTTP 404), linked from _posts/2026-11-23-hello.md
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;It checks links, anchors, images, scripts, stylesheets, video, audio, and iframes, in posts and pages and in layouts and includes, and reports each dead one against the source file that links to it. Sites that answer with 401, 403, 429, 999, or a Cloudflare challenge are reported as &lt;em&gt;unverified&lt;/em&gt; and don’t fail the build: the page probably exists, a bot just isn’t allowed to see it. The first run without a cache checks every external link and is slow, about 3 minutes for this blog; after that, most links come from the cache, and the check takes seconds. Working links are cached for 30 days and unverified ones for 7.&lt;/p&gt;

&lt;p&gt;On GitHub, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;check-links.yml&lt;/code&gt; builds the site with read-only permissions, so it’s safe on pull requests from forks, and pull requests only check the pages they change. A second workflow, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;publish-report.yml&lt;/code&gt;, runs after it to comment on pull requests and keep an issue up to date on the default branch, closing it when everything works. Here’s the first report from this blog.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/images/posts/2026/2026-11-23-the-link-is-not-dead-its-behind-cloudflare/report.png&quot; alt=&quot;A link checker report from code.dblock.org with 5 dead links, each under the post that links to it, 105 unverified links collapsed by site, and suggested exclusions.&quot; /&gt;&lt;/p&gt;

&lt;p&gt;The reusable workflows abstract all the complexity of saving and restoring the cache across runs. Runs on the default branch save their dead links in the Actions cache, and pull requests only fail on &lt;em&gt;new&lt;/em&gt; ones. The report lists new, existing, and fixed links separately, so you can keep fixing old links at your own pace while every pull request is still checked.&lt;/p&gt;

&lt;p&gt;The report also suggests exclusions: a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;_config.yml&lt;/code&gt; snippet with every site and URL it couldn’t check reliably, to paste after looking at them in a browser.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://code.dblock.org/images/posts/2026/2026-11-23-the-link-is-not-dead-its-behind-cloudflare/suggested-exclusions.png&quot; width=&quot;400&quot; alt=&quot;Suggested exclusions in a link checker report: a _config.yml snippet that excludes sites with unverified links, such as www.artsy.net and stackoverflow.com, and individual URLs.&quot; /&gt;&lt;/p&gt;

&lt;p&gt;I didn’t take most of them since unverified links don’t fail the build. These are more useful for the 2,800 GitHub “edit this page” or Twitter’s 3,100 share links.&lt;/p&gt;

&lt;h3 id=&quot;ai-fixes-links&quot;&gt;AI Fixes Links&lt;/h3&gt;

&lt;p&gt;A report of dead links is a to-do list, and fixing links is exactly the kind of tedious work I want to hand off. For each dead link, Claude looked for where the content went, made the change, and ran the checker again until it reported 0 dead links.&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Moved repositories: GitHub redirects a moved repository, but not always the links inside it, and not once a fork takes the old name. For example, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;docker-machine&lt;/code&gt; is now in &lt;a href=&quot;https://github.com/docker-archive-public/docker.machine/issues/1946&quot;&gt;docker-archive-public&lt;/a&gt;, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;danger-pr-comment&lt;/code&gt; moved to the &lt;a href=&quot;https://github.com/danger/danger-pr-comment/pull/15&quot;&gt;danger&lt;/a&gt; organization.&lt;/li&gt;
  &lt;li&gt;Moved projects: Gource left Google Code for &lt;a href=&quot;https://gource.io/&quot;&gt;gource.io&lt;/a&gt;, and the RSpec docs moved to &lt;a href=&quot;https://rspec.info/&quot;&gt;rspec.info&lt;/a&gt;.&lt;/li&gt;
  &lt;li&gt;Pages that no longer exist, such as a Visual Studio 2005 download from Microsoft and the old MongoDB wiki, point to their Wayback Machine snapshots, found with the archive’s availability API.&lt;/li&gt;
  &lt;li&gt;Images that are gone from their sites were saved from the Wayback Machine into &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;images/posts/&lt;/code&gt;, so they can’t disappear again.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;real-world-walkthrough&quot;&gt;Real-World Walkthrough&lt;/h3&gt;

&lt;p&gt;I implemented a link checker on &lt;a href=&quot;https://run.dblock.org&quot;&gt;run.dblock.org&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;In &lt;a href=&quot;https://github.com/dblock/run.dblock.org/pull/56&quot;&gt;#56&lt;/a&gt; I replaced &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;html-proofer&lt;/code&gt; with the plugin, configured under &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;link_checker&lt;/code&gt; in &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;_config.yml&lt;/code&gt;. It excluded the Facebook and Twitter share links and the GitHub “edit this page” link on every post, about 3,100 links that need an account. Checking layouts immediately found two dead references that html-proofer never complained about: a Markdown &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;alternate&lt;/code&gt; link on the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;/photos/&lt;/code&gt; redirect page, which has no Markdown version, and a script on the 404 page from Google’s discontinued link help service.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/dblock/run.dblock.org/actions/runs/45248799938&quot;&gt;The first run on &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;gh-pages&lt;/code&gt;&lt;/a&gt; checked 5,279 internal and 2,532 external links, including Strava’s photo CDN, and found 25 dead links, all in 2018 posts: pages that moved, shops that closed, and nyrr.org redirect loops. The Publish Link Checker Report workflow opened &lt;a href=&quot;https://github.com/dblock/run.dblock.org/issues/59&quot;&gt;#59&lt;/a&gt; with all of them.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://code.dblock.org/images/posts/2026/2026-11-23-the-link-is-not-dead-its-behind-cloudflare/run-dblock-org-broken-links-issue.png&quot; width=&quot;400&quot; alt=&quot;The Broken Links issue on run.dblock.org, opened by GitHub Actions, listing dead links under the posts that link to them.&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Then &lt;a href=&quot;https://github.com/dblock/run.dblock.org/pull/60&quot;&gt;#60&lt;/a&gt; fixed links to a post I had renamed. Its check only looked at the 2 pages it changed, compared them with the dead links that &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;gh-pages&lt;/code&gt; had saved, reported “5 dead links already existed, 1 link fixed”, and passed.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://code.dblock.org/images/posts/2026/2026-11-23-the-link-is-not-dead-its-behind-cloudflare/run-dblock-org-pr-60-report.png&quot; width=&quot;400&quot; alt=&quot;The link checker report of #60: 5 existing dead links, no new ones, and 1 fixed link.&quot; /&gt;&lt;/p&gt;

&lt;h3 id=&quot;setup&quot;&gt;Setup&lt;/h3&gt;

&lt;p&gt;Point your AI to this post or &lt;a href=&quot;https://github.com/dblock/jekyll-ruby-link-checker&quot;&gt;jekyll-ruby-link-checker&lt;/a&gt;. It will set everything up for you and fix your broken links.&lt;/p&gt;

  &lt;p&gt;&lt;a href=&quot;https://code.dblock.org/2026/11/23/the-link-is-not-dead-its-behind-cloudflare.html&quot;&gt;The Link Is Not Dead, It's Behind Cloudflare&lt;/a&gt; was originally published by Daniel Doubrovkine at &lt;a href=&quot;https://code.dblock.org&quot;&gt;code.dblock.org | tech blog&lt;/a&gt; on November 23, 2026.&lt;/p&gt;</content>
</entry>


<entry>
  <title type="html"><![CDATA[Teaching My Copilot and Claude Children to Share]]></title>
 <link rel="alternate" type="text/html" href="https://code.dblock.org/2026/11/22/teaching-my-copilot-and-claude-children-to-share.html" />
  <id>https://code.dblock.org/2026/11/22/teaching-my-copilot-and-claude-children-to-share</id>
  <published>2026-11-22T00:00:00+00:00</published>
  <updated>2026-11-22T00:00:00+00:00</updated>
  <author>
    <name>Daniel Doubrovkine</name>
    <uri>https://code.dblock.org</uri>
    <email>dblock@dblock.org</email>
  </author>
  <content type="html">&lt;p&gt;I use both &lt;a href=&quot;https://docs.github.com/copilot/how-tos/copilot-cli&quot;&gt;GitHub Copilot CLI&lt;/a&gt; with tokens paid for by Microsoft where I work, and &lt;a href=&quot;https://claude.com/claude-code&quot;&gt;Claude Code&lt;/a&gt; using my own subscription. I run Claude on a personal laptop and Copilot at work and use both almost every day, occasionally on the same projects, sometimes at the same time. Both read personal instructions and skills from my home directory, and I keep those in &lt;a href=&quot;https://github.com/dblock/dotfiles&quot;&gt;my dotfiles&lt;/a&gt;, linked into &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;~/.copilot&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;~/.claude&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Copilot got there first. I am happy with Copilot, but I want to keep learning, so more recently I have begun using Claude for personal projects almost exclusively. When I added Claude, I took a shortcut in &lt;a href=&quot;https://github.com/dblock/dotfiles/commit/2f19eb4d95aea02e2890fbfd50efaba3afcdbc12&quot;&gt;2f19eb4&lt;/a&gt;: Claude’s &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;CLAUDE.md&lt;/code&gt; imported Copilot’s instructions with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;@~/...&lt;/code&gt; and then listed exceptions.&lt;/p&gt;

&lt;div class=&quot;language-markdown highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;@~/source/dotfiles/.copilot/copilot-instructions.md

&lt;span class=&quot;gu&quot;&gt;## Claude-Specific Overrides&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;
-&lt;/span&gt; In AI-assisted commits, use &lt;span class=&quot;sb&quot;&gt;`Co-Authored-By: Claude &amp;lt;noreply@anthropic.com&amp;gt;`&lt;/span&gt;
  instead of the Copilot co-author trailer.
&lt;span class=&quot;p&quot;&gt;-&lt;/span&gt; The shared instructions refer to a &lt;span class=&quot;sb&quot;&gt;`pr-stack`&lt;/span&gt; skill. If no such skill is installed, ...
&lt;span class=&quot;p&quot;&gt;-&lt;/span&gt; Shared skills live in &lt;span class=&quot;sb&quot;&gt;`~/source/dotfiles/.copilot/skills`&lt;/span&gt; ...
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This wasn’t fair to Claude. Every session started by reading another tool’s instructions, including a line telling it to credit Copilot in commits, followed by a note saying not to. Skills lived under &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;.copilot/skills&lt;/code&gt; and were linked into Claude from there. Every new rule I added had to be phrased for Copilot first and then patched for Claude. I’d rather not pick a side in the event of a &lt;a href=&quot;https://www.imdb.com/title/tt0086567/&quot;&gt;thermonuclear war&lt;/a&gt; between Copilot and Claude.&lt;/p&gt;

&lt;p&gt;So I asked Claude to propose a layout where neither tool reads the other’s files and it reorganized everything in &lt;a href=&quot;https://github.com/dblock/dotfiles/commit/5503674e859cb43aec26ebfdc5ca9cf9a9869b73&quot;&gt;5503674&lt;/a&gt;.&lt;/p&gt;

&lt;h3 id=&quot;what-each-tool-actually-loads&quot;&gt;What Each Tool Actually Loads&lt;/h3&gt;

&lt;p&gt;Before moving files around, Claude and I checked what each tool reads instead of guessing. Claude Code reads &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;~/.claude/CLAUDE.md&lt;/code&gt;, which can import other files with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;@path&lt;/code&gt;, and skills from &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;~/.claude/skills/&amp;lt;name&amp;gt;&lt;/code&gt;. Copilot CLI doesn’t document a way to import other files from its instructions, but it has a command that lists every instruction source a session would load.&lt;/p&gt;

&lt;div class=&quot;language-text highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;$ copilot instruction list
Personal instructions:
  • Home copilot-instructions.md
      from /Users/dblock/.copilot/copilot-instructions.md
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;To find out what else Copilot would pick up, we pointed &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;COPILOT_HOME&lt;/code&gt; at a scratch directory, dropped in a few candidate files, and listed the sources again.&lt;/p&gt;

&lt;div class=&quot;language-text highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;$ mkdir -p /tmp/copilot-home/instructions
$ echo &apos;# base&apos; &amp;gt; /tmp/copilot-home/copilot-instructions.md
$ echo &apos;# o&apos; &amp;gt; /tmp/copilot-home/instructions/copilot.instructions.md
$ echo &apos;# a&apos; &amp;gt; /tmp/copilot-home/AGENTS.md
$ COPILOT_HOME=/tmp/copilot-home copilot instruction list
Personal instructions:
  • Home copilot-instructions.md
      from /tmp/copilot-home/copilot-instructions.md
  • copilot.instructions.md
      from /tmp/copilot-home/instructions/copilot.instructions.md
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Turns out Copilot loads &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;~/.copilot/copilot-instructions.md&lt;/code&gt; plus every &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;~/.copilot/instructions/*.instructions.md&lt;/code&gt;, and ignores an &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;AGENTS.md&lt;/code&gt; sitting in its home directory. The &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;instructions&lt;/code&gt; folder is the missing piece: it gives Copilot a place for its own overrides, the same way Claude has its own section in &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;CLAUDE.md&lt;/code&gt;. We also tried &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;COPILOT_CUSTOM_INSTRUCTIONS_DIRS&lt;/code&gt;, which only loaded &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;.github/instructions/*.instructions.md&lt;/code&gt; from the extra directory, so I didn’t use it.&lt;/p&gt;

&lt;h3 id=&quot;the-layout&quot;&gt;The Layout&lt;/h3&gt;

&lt;p&gt;Everything agent-related moved into a tool-neutral &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;agents&lt;/code&gt; folder.&lt;/p&gt;

&lt;div class=&quot;language-text highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;agents/
|-- README.md
|-- instructions.md                # shared, tool-neutral
|-- skills/
|   |-- create-project/SKILL.md
|   `-- update-dependencies/SKILL.md
|-- claude/
|   |-- CLAUDE.md                  # @imports instructions.md, Claude overrides
|   `-- settings.json
`-- copilot/
    `-- copilot.instructions.md    # Copilot overrides
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Each tool now gets the same two layers: the shared instructions, then a small file of its own.&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th&gt;Local Path&lt;/th&gt;
      &lt;th&gt;Points To&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;~/.claude/CLAUDE.md&lt;/code&gt;&lt;/td&gt;
      &lt;td&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;agents/claude/CLAUDE.md&lt;/code&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;~/.copilot/copilot-instructions.md&lt;/code&gt;&lt;/td&gt;
      &lt;td&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;agents/instructions.md&lt;/code&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;~/.copilot/instructions/copilot.instructions.md&lt;/code&gt;&lt;/td&gt;
      &lt;td&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;agents/copilot/copilot.instructions.md&lt;/code&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;~/.claude/skills/&amp;lt;name&amp;gt;&lt;/code&gt;&lt;/td&gt;
      &lt;td&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;agents/skills/&amp;lt;name&amp;gt;&lt;/code&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;~/.copilot/skills/&amp;lt;name&amp;gt;&lt;/code&gt;&lt;/td&gt;
      &lt;td&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;agents/skills/&amp;lt;name&amp;gt;&lt;/code&gt;&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;The shared file had to stop talking about either tool. “Include &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Co-authored-by: Copilot&lt;/code&gt;” became “include the co-author trailer that your tool’s instructions specify”, and each overrides file spells out its own. A reference to a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;pr-stack&lt;/code&gt; skill that was never installed, which Claude had been told to work around, became the actual workflow both tools use: &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;gh stack link&lt;/code&gt; and a check of the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;.stack&lt;/code&gt; field in the GitHub API.&lt;/p&gt;

&lt;p&gt;The shared file is called &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;instructions.md&lt;/code&gt; and not &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;AGENTS.md&lt;/code&gt; on purpose. Copilot loads &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;AGENTS.md&lt;/code&gt; files under the working directory as repository instructions, so while I work in the dotfiles repository it would load the same file twice.&lt;/p&gt;

&lt;h3 id=&quot;linking-skills-one-at-a-time&quot;&gt;Linking Skills One at a Time&lt;/h3&gt;

&lt;p&gt;The obvious next question was whether to link the whole skills folder instead of each skill. That doesn’t work for Claude: &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;~/.claude/skills&lt;/code&gt; also contains a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;synced&lt;/code&gt; folder, which Claude Code manages itself, with the skills from my Claude account (&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;pdf&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;docx&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;xlsx&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;deep-research&lt;/code&gt;, and so on).&lt;/p&gt;

&lt;p&gt;I asked whether we could link the whole folder into the repository anyway and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;.gitignore&lt;/code&gt; the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;synced&lt;/code&gt; part. We tested that with Copilot first, by nesting a fake skill two levels down in a scratch skills directory.&lt;/p&gt;

&lt;div class=&quot;language-text highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;$ COPILOT_HOME=/tmp/copilot-home copilot skill list
Personal skills:
  create-project - Create a Ruby gem or JavaScript package ...
  synced-pdf-test - test nested synced skill
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Copilot discovers skills recursively, so a single shared folder would have handed it all of Claude’s account skills, including &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;computer-use&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;chrome-browser&lt;/code&gt;. So each skill gets its own link, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;setup.sh&lt;/code&gt; creates them.&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;link_agent_file&lt;span class=&quot;o&quot;&gt;()&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;nb&quot;&gt;local &lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;target&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$1&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;link&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$2&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;
  &lt;span class=&quot;nb&quot;&gt;mkdir&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;-p&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;$(&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;dirname&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$link&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;
  &lt;span class=&quot;k&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;[[&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;-L&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$link&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;$(&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;readlink&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$link&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$DOTFILES_DIR&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;/&lt;span class=&quot;k&quot;&gt;*&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;]]&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;then
    &lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;ln&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;-sfn&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$target&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$link&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;
  &lt;span class=&quot;k&quot;&gt;elif&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;[[&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;-e&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$link&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;||&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;-L&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$link&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;]]&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;then
    &lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;Skipping &lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$link&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;: it exists and does not point into &lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$DOTFILES_DIR&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;.&quot;&lt;/span&gt;
  &lt;span class=&quot;k&quot;&gt;else
    &lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;ln&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;-s&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$target&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$link&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;
  &lt;span class=&quot;k&quot;&gt;fi&lt;/span&gt;
&lt;span class=&quot;o&quot;&gt;}&lt;/span&gt;

&lt;span class=&quot;k&quot;&gt;for &lt;/span&gt;skill_dir &lt;span class=&quot;k&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$DOTFILES_DIR&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;/agents/skills/&lt;span class=&quot;k&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;do&lt;/span&gt;
  &lt;span class=&quot;o&quot;&gt;[[&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;-f&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$skill_dir&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;/SKILL.md&quot;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;]]&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;||&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;continue
  &lt;/span&gt;link_agent_file &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$skill_dir&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$HOME&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;/.copilot/skills/&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;$(&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;basename&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$skill_dir&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;
  link_agent_file &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$skill_dir&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$HOME&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;/.claude/skills/&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;$(&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;basename&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$skill_dir&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;done&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The script re-points links that already point into the dotfiles repository, and leaves anything else alone. One run moved all 7 links on my machine and added Copilot’s new overrides link. A second run changed nothing.&lt;/p&gt;

&lt;h3 id=&quot;rules-for-working-together&quot;&gt;Rules for Working Together&lt;/h3&gt;

&lt;p&gt;Sharing is caring, but we need rules that help two agents not step on each other’s toes.&lt;/p&gt;

&lt;p&gt;Repositories keep their agent instructions in &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;AGENTS.md&lt;/code&gt;, which Copilot loads automatically. Claude now has an explicit instruction to read the repository’s &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;AGENTS.md&lt;/code&gt;, and any in subdirectories, before changing anything, so both follow the same project rules without a duplicate &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;CLAUDE.md&lt;/code&gt; in every project.&lt;/p&gt;

&lt;p&gt;Working trees need a home they can share. One of my projects had 6 working trees besides the main one, including stale ones in &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;/private/tmp&lt;/code&gt;, one inside Copilot’s own session-state folder, two inside Claude Code’s &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;.claude/worktrees&lt;/code&gt;, and branches checked out in multiple places. The shared instructions now say to create working trees only as siblings under &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;~/source&lt;/code&gt;, never in temporary or tool-managed folders, and to remove them when the work is done. For Claude, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;CLAUDE.md&lt;/code&gt; tells it to create a sibling with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;git worktree add&lt;/code&gt; and enter it by path instead of nesting it under &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;.claude/worktrees&lt;/code&gt;. Both changes are in &lt;a href=&quot;https://github.com/dblock/dotfiles/commit/3490fb44eb2deef9ce4d8e607be63fd860cd4b32&quot;&gt;3490fb4&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Here’s what that looks like for my fork of &lt;a href=&quot;https://github.com/digitalocean/doctl&quot;&gt;doctl&lt;/a&gt; next to its upstream checkout, with a working tree for one task.&lt;/p&gt;

&lt;div class=&quot;language-text highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;~/source/
`-- doctl/
    |-- upstream-doctl/          # digitalocean/doctl
    |-- dblock-doctl/            # my fork, dblock/doctl
    `-- dblock-doctl-&amp;lt;topic&amp;gt;/    # working tree, created with git worktree add
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Finally, the dotfiles themselves. They’re linked into the live configuration, so a topic branch or a working tree hides the change from both tools until it merges. Agents now work directly on &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;master&lt;/code&gt; in &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;~/source/dotfiles&lt;/code&gt; (&lt;a href=&quot;https://github.com/dblock/dotfiles/commit/0a32071e4dbf186e2160a66e92195a2b15281cb7&quot;&gt;0a32071&lt;/a&gt;). That made me nervous about a rule change landing in both agents’ heads without me reading it, so they also have to show me the diff and wait for approval before committing (&lt;a href=&quot;https://github.com/dblock/dotfiles/commit/3968845655123fa6c21655d89b5af3655f2a8381&quot;&gt;3968845&lt;/a&gt;). Claude committed the first of those two rules without asking, which is exactly why the second one exists.&lt;/p&gt;

&lt;h3 id=&quot;i-am-an-only-child&quot;&gt;I Am an Only Child&lt;/h3&gt;

&lt;p&gt;I am an only child, but have two of my own (four if you count Copilot and Claude). So I put the shared rules in one tool-neutral file and gave each child a small file of its own. Now when I teach either agent something that applies to both, it goes into &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;agents/instructions.md&lt;/code&gt; and they both learn it.&lt;/p&gt;

  &lt;p&gt;&lt;a href=&quot;https://code.dblock.org/2026/11/22/teaching-my-copilot-and-claude-children-to-share.html&quot;&gt;Teaching My Copilot and Claude Children to Share&lt;/a&gt; was originally published by Daniel Doubrovkine at &lt;a href=&quot;https://code.dblock.org&quot;&gt;code.dblock.org | tech blog&lt;/a&gt; on November 22, 2026.&lt;/p&gt;</content>
</entry>


<entry>
  <title type="html"><![CDATA[Automatic RSpec Sharding on GitHub Actions]]></title>
 <link rel="alternate" type="text/html" href="https://code.dblock.org/2026/11/19/automatic-rspec-sharding-on-github-actions.html" />
  <id>https://code.dblock.org/2026/11/19/automatic-rspec-sharding-on-github-actions</id>
  <published>2026-11-19T00:00:00+00:00</published>
  <updated>2026-11-19T00:00:00+00:00</updated>
  <author>
    <name>Daniel Doubrovkine</name>
    <uri>https://code.dblock.org</uri>
    <email>dblock@dblock.org</email>
  </author>
  <content type="html">&lt;p&gt;Running RSpec on eight workers got &lt;a href=&quot;https://github.com/dblock/posebook&quot;&gt;Posebook&lt;/a&gt;, a custom Rails CMS, from more than six minutes of RSpec time to about one using &lt;a href=&quot;https://github.com/dblock/parallel_tests-ci&quot;&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;parallel_tests-ci&lt;/code&gt;&lt;/a&gt; that I built to adjust shards automatically as tests get faster or slower, without repeating the GitHub Actions boilerplate for splitting files, running workers, and passing timings between runs.&lt;/p&gt;

&lt;h3 id=&quot;posebook-benchmarks&quot;&gt;Posebook Benchmarks&lt;/h3&gt;

&lt;p&gt;Each bar shows the slowest worker’s RSpec execution time, excluding setup and spec loading. The &lt;a href=&quot;https://github.com/dblock/posebook/actions/runs/44218105420&quot;&gt;serial run&lt;/a&gt; took 395 seconds. With eight workers, every run shown took less than 80 seconds of RSpec time. Sharding improved further capturing data from previous runs.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/images/posts/2026/2026-11-19-automatic-rspec-sharding-on-github-actions/posebook-rspec-overview.png&quot; alt=&quot;Slowest worker RSpec time: 395 seconds on one worker, versus 57.59 to 79.11 seconds on eight workers.&quot; /&gt;&lt;/p&gt;

&lt;h3 id=&quot;how-to-use-it&quot;&gt;How to Use It&lt;/h3&gt;

&lt;p&gt;With Ruby 3.3 or newer, add the gem to your &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Gemfile&lt;/code&gt; and run &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;bundle install&lt;/code&gt;:&lt;/p&gt;

&lt;div class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;gem&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;parallel_tests-ci&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;0.3.0&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;ss&quot;&gt;require: &lt;/span&gt;&lt;span class=&quot;kp&quot;&gt;false&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;In &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;.github/workflows/test.yml&lt;/code&gt;, call the reusable workflow at the same version:&lt;/p&gt;

&lt;div class=&quot;language-yaml highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;na&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;Test&lt;/span&gt;
&lt;span class=&quot;na&quot;&gt;on&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;pi&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;push&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;pull_request&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;]&lt;/span&gt;

&lt;span class=&quot;na&quot;&gt;permissions&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
  &lt;span class=&quot;na&quot;&gt;contents&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;read&lt;/span&gt;
  &lt;span class=&quot;na&quot;&gt;actions&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;read&lt;/span&gt;

&lt;span class=&quot;na&quot;&gt;jobs&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
  &lt;span class=&quot;na&quot;&gt;test&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
    &lt;span class=&quot;na&quot;&gt;uses&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;dblock/parallel_tests-ci/.github/workflows/rspec.yml@v0.3.0&lt;/span&gt;
    &lt;span class=&quot;na&quot;&gt;with&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
      &lt;span class=&quot;na&quot;&gt;shards&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;8&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;If your specs need a database or other setup, use the workflow’s &lt;a href=&quot;https://github.com/dblock/parallel_tests-ci/tree/v0.3.0#suite-and-setup&quot;&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;setup&lt;/code&gt; input&lt;/a&gt; to run those commands on each worker.&lt;/p&gt;

&lt;p&gt;It also works with Minitest: require the gem with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;require: &apos;parallel_tests/ci/minitest&apos;&lt;/code&gt; so it records timings, and call &lt;a href=&quot;https://github.com/dblock/parallel_tests-ci/tree/v0.3.0#minitest&quot;&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;minitest.yml&lt;/code&gt;&lt;/a&gt; instead of &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;rspec.yml&lt;/code&gt;. Use &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;runs-on&lt;/code&gt; to pick Linux, macOS, or Windows; on Windows, write your &lt;a href=&quot;https://github.com/dblock/parallel_tests-ci/tree/v0.3.0#suite-and-setup&quot;&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;setup&lt;/code&gt; scripts&lt;/a&gt; in PowerShell, the runner’s default shell.&lt;/p&gt;

&lt;h3 id=&quot;how-it-works&quot;&gt;How It Works&lt;/h3&gt;

&lt;p&gt;Without timing history, &lt;a href=&quot;https://github.com/grosser/parallel_tests&quot;&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;parallel_tests&lt;/code&gt;&lt;/a&gt; groups spec files by size. After a &lt;a href=&quot;https://github.com/dblock/posebook/actions/runs/44401742212&quot;&gt;successful run triggered by a push to the default branch&lt;/a&gt;, the workflow saves per-file timings in a &lt;a href=&quot;/downloads/posts/2026-11-19-automatic-rspec-sharding-on-github-actions/posebook-runtime.log&quot;&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;runtime.log&lt;/code&gt;&lt;/a&gt; and uploads it as a GitHub Actions artifact. Before splitting the suite, later runs look for that artifact in recent successful runs of the same workflow on the default branch. They download the newest one still available and use its timings to give each worker roughly the same amount of work. Pull requests can also download the artifact, but cannot update the timing history.&lt;/p&gt;

&lt;p&gt;I’ve since ported this to JavaScript for Vitest, Jest, and node:test, see &lt;a href=&quot;/2026/11/26/automatic-javascript-test-sharding-on-github-actions.html&quot;&gt;Automatic JavaScript Test Sharding on GitHub Actions&lt;/a&gt;.&lt;/p&gt;

  &lt;p&gt;&lt;a href=&quot;https://code.dblock.org/2026/11/19/automatic-rspec-sharding-on-github-actions.html&quot;&gt;Automatic RSpec Sharding on GitHub Actions&lt;/a&gt; was originally published by Daniel Doubrovkine at &lt;a href=&quot;https://code.dblock.org&quot;&gt;code.dblock.org | tech blog&lt;/a&gt; on November 19, 2026.&lt;/p&gt;</content>
</entry>


<entry>
  <title type="html"><![CDATA[The Sunk Cost Fallacy of a Vibe-Coded Custom SaaS]]></title>
 <link rel="alternate" type="text/html" href="https://code.dblock.org/2026/11/15/the-sunk-cost-fallacy-of-a-vibe-coded-custom-saas.html" />
  <id>https://code.dblock.org/2026/11/15/the-sunk-cost-fallacy-of-a-vibe-coded-custom-saas</id>
  <published>2026-11-15T00:00:00+00:00</published>
  <updated>2026-11-15T00:00:00+00:00</updated>
  <author>
    <name>Daniel Doubrovkine</name>
    <uri>https://code.dblock.org</uri>
    <email>dblock@dblock.org</email>
  </author>
  <content type="html">&lt;p&gt;I organize a weekly figure-drawing session at &lt;a href=&quot;https://art.dblock.org/2026/05/25/figure-drawing-at-enochs.html&quot;&gt;Enoch’s Arts &amp;amp; Coffee&lt;/a&gt; in Manhattan. It runs every Monday at 6:30pm and costs $20. It’s regularly attended and we were even &lt;a href=&quot;https://w42st.com/post/pencil-me-in-hells-kitchen-artists-gather-for-a-weekly-dose-of-creative-zen/&quot;&gt;written up in W42ST&lt;/a&gt;. Like any small event, it comes with the usual collection of emails, date juggling, private contact details, and calendar invitations.&lt;/p&gt;

&lt;p&gt;So, I decided to build a custom SaaS called &lt;a href=&quot;https://github.com/dblock/posebook&quot;&gt;Posebook&lt;/a&gt; to automate all that.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://code.dblock.org/images/posts/2026/2026-11-15-the-sunk-cost-fallacy-of-a-vibe-coded-custom-saas/posebook-logo.png&quot; alt=&quot;Posebook logo&quot; /&gt;&lt;/p&gt;

&lt;h3 id=&quot;the-plan&quot;&gt;The Plan&lt;/h3&gt;

&lt;p&gt;The original idea was that models would register, choose a date, and get a reminder a week before posing. I chose Rails and MongoDB because I already use both, and started with one venue and one recurring program. The application now organizes venues, recurring programs, organizers, invitations, bookings, attendance, and public schedules. It is open source, and the &lt;a href=&quot;https://posebook.dblock.org/&quot;&gt;hosted instance&lt;/a&gt; serves Enoch’s, but could work for your event, too.&lt;/p&gt;

&lt;p&gt;The organizer creates a venue, adds its location, and sets up one or more recurring programs. A program owns its schedule, booking rules, and managers. The organizer sends a private invitation link to a participant, who creates an account if needed and books an available date. The application checks that the booking is still available, retains its history when it changes, and keeps participant contact information private.&lt;/p&gt;

&lt;p&gt;When a participant books, a configured Google Calendar integration creates one meeting with the participant and organizer on the guest list and the venue address in the location. Transactional emails go through a background worker. Cancellations, rescheduling, consent, opt-outs, retries, and acknowledgments all need to work together.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://code.dblock.org/images/posts/2026/2026-11-15-the-sunk-cost-fallacy-of-a-vibe-coded-custom-saas/calendar.png&quot; alt=&quot;Figure Drawing Mondays calendar at Enoch&apos;s&quot; /&gt;&lt;/p&gt;

&lt;h3 id=&quot;building-it-with-an-agent&quot;&gt;Building It with an Agent&lt;/h3&gt;

&lt;p&gt;I used GitHub Copilot CLI as an implementation partner. I started by asking for a plan and a name, settled the product and data model, and then gave it bounded feature requests. The agent explored the Rails application, changed code and tests on task branches, and opened pull requests. I reviewed the behavior, corrected the requirements when the implementation got too specific, and kept the work moving in small changes.&lt;/p&gt;

&lt;p&gt;The useful loop was to describe one user-visible outcome, inspect the proposed design, implement it with tests, review the pull request, and adjust the next task based on what the previous one taught us. I mostly reviewed screenshots.&lt;/p&gt;

&lt;h3 id=&quot;the-token-count&quot;&gt;The Token Count&lt;/h3&gt;

&lt;p&gt;I looked at the local Copilot usage logs for five Posebook sessions recorded on November 14 and 15. They contain 4,071 model requests:&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th&gt;Token Type&lt;/th&gt;
      &lt;th style=&quot;text-align: right&quot;&gt;Tokens&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td&gt;Non-cached input&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;531,916,854&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Output&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;3,955,356&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Cached input&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;510,797,673&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Cache writes&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;21,102,359&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;h3 id=&quot;maybe-i-shouldnt-have&quot;&gt;Maybe I Shouldn’t Have&lt;/h3&gt;

&lt;p&gt;Posebook now handles a lot more than putting a date on a calendar. But for one weekly event, maybe it is too much software? Should I just be doing this with &lt;a href=&quot;https://openai.com/index/introducing-dots/&quot;&gt;Dots&lt;/a&gt; or &lt;a href=&quot;https://apps.apple.com/ca/app/muse-from-meta/id6760173601&quot;&gt;Muse&lt;/a&gt;? Maybe Posebook is already sunk cost.&lt;/p&gt;

  &lt;p&gt;&lt;a href=&quot;https://code.dblock.org/2026/11/15/the-sunk-cost-fallacy-of-a-vibe-coded-custom-saas.html&quot;&gt;The Sunk Cost Fallacy of a Vibe-Coded Custom SaaS&lt;/a&gt; was originally published by Daniel Doubrovkine at &lt;a href=&quot;https://code.dblock.org&quot;&gt;code.dblock.org | tech blog&lt;/a&gt; on November 15, 2026.&lt;/p&gt;</content>
</entry>


<entry>
  <title type="html"><![CDATA[Use Agent Test Run Claims to Skip CI]]></title>
 <link rel="alternate" type="text/html" href="https://code.dblock.org/2026/11/12/use-agent-test-run-claims-to-skip-ci.html" />
  <id>https://code.dblock.org/2026/11/12/use-agent-test-run-claims-to-skip-ci</id>
  <published>2026-11-12T00:00:00+00:00</published>
  <updated>2026-11-12T00:00:00+00:00</updated>
  <author>
    <name>Daniel Doubrovkine</name>
    <uri>https://code.dblock.org</uri>
    <email>dblock@dblock.org</email>
  </author>
  <content type="html">&lt;p&gt;An AI agent runs the test suite and lints in its local checkout. Then, you open a pull request and GitHub Actions runs the same checks against the same commit. This is wasteful, so I built &lt;a href=&quot;https://github.com/dblock/already-tested&quot;&gt;already-tested&lt;/a&gt; to submit agent claims with PRs and skip CI workflows. This is also called “shift left”.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/images/posts/2026/2026-11-12-use-agent-test-run-claims-to-skip-ci/logo.svg&quot; alt=&quot;Already Tested logo: a green rubber stamp with a check mark&quot; width=&quot;160&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Of course, anyone who can edit the pull-request description can forge a claim. It is not a cryptographic attestation, a test result signed by the machine, or evidence that the tests ran. Don’t ever disable CI on &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;main&lt;/code&gt;.&lt;/p&gt;

&lt;h2 id=&quot;install&quot;&gt;Install&lt;/h2&gt;

&lt;p&gt;Setup takes two project changes: add the gate to the GitHub Actions workflow, then add this to &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;AGENTS.md&lt;/code&gt; or &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;.github/copilot-instructions.md&lt;/code&gt;:&lt;/p&gt;

&lt;div class=&quot;language-markdown highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;gu&quot;&gt;## Local CI Claims&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;
-&lt;/span&gt; Install &lt;span class=&quot;sb&quot;&gt;`already-tested`&lt;/span&gt; using https://github.com/dblock/already-tested/blob/v0.3.0/docs/cli.md#installation.
&lt;span class=&quot;p&quot;&gt;-&lt;/span&gt; Run &lt;span class=&quot;sb&quot;&gt;`already-tested agent-instructions show`&lt;/span&gt; and follow its guidance before generating or updating claims.
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The agent installs the CLI, reads the instructions bundled with that version, and inspects your CI workflows to find the complete checks and required environments. The guidance covers measured run times, committed source, local verification, and publishing claims in the PR description. Keep project-specific environment exceptions in your own instructions. The tool is written in Rust and ships as prebuilt native binaries; its installer selects and verifies the archive for the agent’s OS and CPU.&lt;/p&gt;

&lt;p&gt;To keep a versioned copy of the guidance in your repository, have the agent run &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;already-tested agent-instructions update&lt;/code&gt;. If &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;.github/copilot-instructions.md&lt;/code&gt; exists, this writes &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;.github/instructions/already-tested.instructions.md&lt;/code&gt; and adds a reference to the Copilot instructions. Otherwise, it writes &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;.already-tested/agent-instructions.md&lt;/code&gt; and updates or creates &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;AGENTS.md&lt;/code&gt;. Handwritten policy stays intact. Review and commit the files; repeat the command when upgrading. See &lt;a href=&quot;https://github.com/dblock/already-tested/blob/v0.3.0/docs/agents.md#adopt-in-a-project&quot;&gt;agent setup and upgrades&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;In your GHA workflows, put the gate immediately after checkout and condition every setup, dependency-install, and test step you want to skip. This is the Linux example from the &lt;a href=&quot;https://github.com/dblock/already-tested/blob/v0.3.0/README.md#installation&quot;&gt;v0.3.0 README&lt;/a&gt;:&lt;/p&gt;

&lt;div class=&quot;language-yaml highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;na&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;Test&lt;/span&gt;
&lt;span class=&quot;na&quot;&gt;on&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
  &lt;span class=&quot;na&quot;&gt;push&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
  &lt;span class=&quot;na&quot;&gt;pull_request&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
    &lt;span class=&quot;na&quot;&gt;types&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;pi&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;opened&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;synchronize&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;reopened&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;edited&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;]&lt;/span&gt;
&lt;span class=&quot;na&quot;&gt;permissions&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
  &lt;span class=&quot;na&quot;&gt;contents&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;read&lt;/span&gt;
&lt;span class=&quot;na&quot;&gt;jobs&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
  &lt;span class=&quot;na&quot;&gt;test&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
    &lt;span class=&quot;na&quot;&gt;runs-on&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;ubuntu-latest&lt;/span&gt;
    &lt;span class=&quot;na&quot;&gt;steps&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
      &lt;span class=&quot;pi&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;uses&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;actions/checkout@v7.0.1&lt;/span&gt;
        &lt;span class=&quot;na&quot;&gt;with&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
          &lt;span class=&quot;na&quot;&gt;fetch-depth&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;2&lt;/span&gt;
          &lt;span class=&quot;na&quot;&gt;persist-credentials&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;kc&quot;&gt;false&lt;/span&gt;
      &lt;span class=&quot;pi&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;uses&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;dblock/already-tested@v0.3.0&lt;/span&gt;
        &lt;span class=&quot;na&quot;&gt;id&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;tested&lt;/span&gt;
        &lt;span class=&quot;na&quot;&gt;with&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
          &lt;span class=&quot;na&quot;&gt;check&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;test-linux&lt;/span&gt;
      &lt;span class=&quot;pi&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;Run Tests&lt;/span&gt;
        &lt;span class=&quot;na&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;steps.tested.outputs.skip != &apos;true&apos;&lt;/span&gt;
        &lt;span class=&quot;na&quot;&gt;run&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;./script/ci&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;see-it&quot;&gt;See It&lt;/h2&gt;

&lt;p&gt;I used the released &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;0.1.0&lt;/code&gt; CLI in &lt;a href=&quot;https://github.com/dblock/already-tested/pull/8&quot;&gt;already-tested PR #8&lt;/a&gt;. The four CI jobs went from a total of 3m58s to 29s, an improvement of 87.8%. The rest of CI still did useful work. Test jobs on Ubuntu and Windows ran, the other five package targets ran, and all three Coverage jobs ran on macOS, Ubuntu, and Windows.&lt;/p&gt;

  &lt;p&gt;&lt;a href=&quot;https://code.dblock.org/2026/11/12/use-agent-test-run-claims-to-skip-ci.html&quot;&gt;Use Agent Test Run Claims to Skip CI&lt;/a&gt; was originally published by Daniel Doubrovkine at &lt;a href=&quot;https://code.dblock.org&quot;&gt;code.dblock.org | tech blog&lt;/a&gt; on November 12, 2026.&lt;/p&gt;</content>
</entry>


<entry>
  <title type="html"><![CDATA[Releases as Code]]></title>
 <link rel="alternate" type="text/html" href="https://code.dblock.org/2026/11/12/releases-as-code.html" />
  <id>https://code.dblock.org/2026/11/12/releases-as-code</id>
  <published>2026-11-12T00:00:00+00:00</published>
  <updated>2026-11-12T00:00:00+00:00</updated>
  <author>
    <name>Daniel Doubrovkine</name>
    <uri>https://code.dblock.org</uri>
    <email>dblock@dblock.org</email>
  </author>
  <content type="html">&lt;p&gt;A release needs to be reliable, which means it needs to be testable.&lt;/p&gt;

&lt;p&gt;A typical release selects a version, updates a changelog, builds an artifact, creates a commit and a tag, publishes the package, creates a GitHub Release, and often prepares the next development version. Projects add their own steps, such as updating version references in documentation, and these steps need to agree on what was released.&lt;/p&gt;

&lt;p&gt;If one breaks, the release fails halfway through, leaving a published package without a matching tag or a development version that wasn’t updated. You can’t always undo a published package and start over.&lt;/p&gt;

&lt;p&gt;Test your release code.&lt;/p&gt;

&lt;h2 id=&quot;releases-are-software&quot;&gt;Releases Are Software&lt;/h2&gt;

&lt;p&gt;I’ve spent plenty of time maintaining release instructions, shell scripts, and GitHub Actions YAML. They automate the work, but the interesting logic tends to be spread across commands that are hard to exercise without actually making a release.&lt;/p&gt;

&lt;p&gt;I wanted to treat a release workflow like the rest of the project: write it in code, customize it in code, and test the behavior that matters.&lt;/p&gt;

&lt;p&gt;This idea has become a family of libraries: &lt;a href=&quot;https://github.com/dblock/npm-package-release&quot;&gt;npm-package-release&lt;/a&gt;, &lt;a href=&quot;https://github.com/dblock/ruby-gem-release&quot;&gt;ruby-gem-release&lt;/a&gt;, and &lt;a href=&quot;https://github.com/dblock/rust-crate-release&quot;&gt;rust-crate-release&lt;/a&gt;. Each brings the workflow into the language of the project it releases.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/dblock/npm-package-release&quot;&gt;&lt;img src=&quot;/images/posts/2026/2026-11-12-releases-as-code/npm-package-release.png&quot; alt=&quot;npm-package-release logo&quot; width=&quot;140&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;https://github.com/dblock/ruby-gem-release&quot;&gt;&lt;img src=&quot;/images/posts/2026/2026-11-12-releases-as-code/ruby-gem-release.png&quot; alt=&quot;ruby-gem-release logo&quot; width=&quot;140&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;https://github.com/dblock/rust-crate-release&quot;&gt;&lt;img src=&quot;/images/posts/2026/2026-11-12-releases-as-code/rust-crate-release.png&quot; alt=&quot;rust-crate-release logo&quot; width=&quot;140&quot; /&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;For example, a project’s README on the default branch may describe features that haven’t been released yet. &lt;a href=&quot;https://github.com/ruby-grape/grape#stable-release&quot;&gt;Grape’s README&lt;/a&gt; identifies the upcoming version and links to the stable release so users don’t confuse the two. After a release, I want the development README to say “You’re reading the documentation for the next release, v1.2.3.” The README at the release tag should identify the stable version instead.&lt;/p&gt;

&lt;p&gt;I could do this with a shell script that searches and replaces text, then hope it still works the next time I release. Instead, I can write the release logic in the project’s language and test it.&lt;/p&gt;

&lt;h2 id=&quot;updating-the-readme&quot;&gt;Updating the README&lt;/h2&gt;

&lt;p&gt;These examples assume a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;## Release Status&lt;/code&gt; section in &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;README.md&lt;/code&gt;. Each replaces that section during release preparation and again when preparing the next development iteration. Both edits are included in the corresponding commits; they don’t change the rest of the README.&lt;/p&gt;

&lt;h3 id=&quot;javascript&quot;&gt;JavaScript&lt;/h3&gt;

&lt;p&gt;With &lt;a href=&quot;https://github.com/dblock/npm-package-release&quot;&gt;npm-package-release&lt;/a&gt;, export a workflow from &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;npr.config.js&lt;/code&gt;:&lt;/p&gt;

&lt;div class=&quot;language-js highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;k&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;LifecycleHooks&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;MarkdownSection&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;ReleaseWorkflow&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;}&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;from&lt;/span&gt; &lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;npm-package-release&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;

&lt;span class=&quot;kd&quot;&gt;class&lt;/span&gt; &lt;span class=&quot;nc&quot;&gt;UpdateReadme&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;nx&quot;&gt;id&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;update-readme&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;

  &lt;span class=&quot;k&quot;&gt;async&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;run&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;({&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;context&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;stage&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;})&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
    &lt;span class=&quot;kd&quot;&gt;const&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;release&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;stage&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;===&lt;/span&gt; &lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;next&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;?&lt;/span&gt; &lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;next&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;stable&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
    &lt;span class=&quot;k&quot;&gt;await&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;nc&quot;&gt;MarkdownSection&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;README.md&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;## Release Status&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;).&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;replace&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;
      &lt;span class=&quot;s2&quot;&gt;`You&apos;re reading the documentation for the &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;${&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;release&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt; release, v&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;${&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;context&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;version&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;.`&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;
      &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;cwd&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;context&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;cwd&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;},&lt;/span&gt;
    &lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;
  &lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;

&lt;span class=&quot;k&quot;&gt;export&lt;/span&gt; &lt;span class=&quot;kd&quot;&gt;function&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;createReleaseWorkflow&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;services&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{})&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;k&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;nc&quot;&gt;ReleaseWorkflow&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;({&lt;/span&gt;
    &lt;span class=&quot;na&quot;&gt;hooks&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;nc&quot;&gt;LifecycleHooks&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;().&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;after&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;prepare&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;nc&quot;&gt;UpdateReadme&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()).&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;after&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;next&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;nc&quot;&gt;UpdateReadme&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()),&lt;/span&gt;
    &lt;span class=&quot;p&quot;&gt;...&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;services&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;
  &lt;span class=&quot;p&quot;&gt;});&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;

&lt;span class=&quot;k&quot;&gt;export&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;default&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;createReleaseWorkflow&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;();&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Use that same builder with the &lt;a href=&quot;https://github.com/dblock/npm-package-release/blob/v0.4.0/docs/testing.md&quot;&gt;local test services&lt;/a&gt;. Here &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;project&lt;/code&gt; is a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;ReleaseTestProject&lt;/code&gt; containing the committed package and README:&lt;/p&gt;

&lt;div class=&quot;language-js highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;k&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;assert&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;from&lt;/span&gt; &lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;node:assert/strict&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;createReleaseWorkflow&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;}&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;from&lt;/span&gt; &lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;./npr.config.js&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;

&lt;span class=&quot;kd&quot;&gt;const&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;workflow&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;createReleaseWorkflow&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;project&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;services&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;await&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;workflow&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;run&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;({&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;...&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;project&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;options&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;version&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;1.2.2&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;});&lt;/span&gt;
&lt;span class=&quot;nx&quot;&gt;assert&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;ok&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;((&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;await&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;project&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;remoteFile&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;v1.2.2&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;README.md&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)).&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;includes&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;stable release, v1.2.2.&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;));&lt;/span&gt;
&lt;span class=&quot;nx&quot;&gt;assert&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;ok&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;((&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;await&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;project&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;remoteFile&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;master&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;README.md&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)).&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;includes&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;next release, v1.2.3.&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;));&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;ruby&quot;&gt;Ruby&lt;/h3&gt;

&lt;p&gt;With &lt;a href=&quot;https://github.com/dblock/ruby-gem-release&quot;&gt;ruby-gem-release&lt;/a&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;commonmarker&lt;/code&gt; in your development dependencies (its Markdown helpers need it), add these hooks to the configured &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;workflow&lt;/code&gt; before calling &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;workflow.install_tasks&lt;/code&gt;:&lt;/p&gt;

&lt;div class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nb&quot;&gt;require&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;ruby-gem-release/markdown/section&apos;&lt;/span&gt;

&lt;span class=&quot;n&quot;&gt;section&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;RubyGemRelease&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;no&quot;&gt;Markdown&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;no&quot;&gt;Section&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;new&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;ss&quot;&gt;path: &lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&apos;README.md&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;ss&quot;&gt;heading: &lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&apos;## Release Status&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;workflow&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;after&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;ss&quot;&gt;:prepare_release&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;do&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;|&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;ctx&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;|&lt;/span&gt;
  &lt;span class=&quot;n&quot;&gt;section&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;replace!&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;You&apos;re reading the documentation for the stable release, v&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;#{&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;ctx&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;release&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;version&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;.&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;end&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;workflow&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;after&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;ss&quot;&gt;:prepare_next&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;do&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;|&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;ctx&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;|&lt;/span&gt;
  &lt;span class=&quot;n&quot;&gt;section&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;replace!&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;You&apos;re reading the documentation for the next release, v&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;#{&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;ctx&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;release&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;next_version&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;.&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;end&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Given a &lt;a href=&quot;https://github.com/dblock/ruby-gem-release/blob/v0.9.0/docs/testing.md&quot;&gt;release test fixture&lt;/a&gt; containing the project files and its real workflow builder, test the tag and the next development commit:&lt;/p&gt;

&lt;div class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;project&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;configure_workflow&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;ss&quot;&gt;require: &lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&apos;release_workflow&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;ss&quot;&gt;builder: &lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&apos;ProjectReleaseWorkflow.build&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;project&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;commit!&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;project&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;release!&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;ss&quot;&gt;version: &lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&apos;1.2.2&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;

&lt;span class=&quot;n&quot;&gt;expect&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;project&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;remote_file&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&apos;v1.2.2&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;README.md&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)).&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;to&lt;/span&gt; &lt;span class=&quot;kp&quot;&gt;include&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&apos;stable release, v1.2.2.&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;expect&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;project&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;remote_file&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&apos;master&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;README.md&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)).&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;to&lt;/span&gt; &lt;span class=&quot;kp&quot;&gt;include&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&apos;next release, v1.2.3.&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;rust&quot;&gt;Rust&lt;/h3&gt;

&lt;p&gt;With &lt;a href=&quot;https://github.com/dblock/rust-crate-release&quot;&gt;rust-crate-release&lt;/a&gt;, register typed hooks in a &lt;a href=&quot;https://github.com/dblock/rust-crate-release/blob/master/docs/cli.md#project-runners&quot;&gt;project runner&lt;/a&gt;. The next-development hook does nothing when that phase is disabled:&lt;/p&gt;

&lt;div class=&quot;language-rust highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;k&quot;&gt;use&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;std&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;nn&quot;&gt;path&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;::{&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Path&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;PathBuf&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;};&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;use&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;rust_crate_release&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;::{&lt;/span&gt;
    &lt;span class=&quot;nb&quot;&gt;Result&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;
    &lt;span class=&quot;nn&quot;&gt;engine&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;::{&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Analyzed&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;Edited&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;Hosted&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;NextEdited&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;ReleaseWorkflow&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;},&lt;/span&gt;
    &lt;span class=&quot;nn&quot;&gt;execution&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;ExecutionContext&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;
    &lt;span class=&quot;nn&quot;&gt;hooks&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;LifecycleHook&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;
    &lt;span class=&quot;nn&quot;&gt;markdown&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;MarkdownSection&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;};&lt;/span&gt;

&lt;span class=&quot;k&quot;&gt;struct&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;UpdateReadme&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;PathBuf&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;

&lt;span class=&quot;k&quot;&gt;fn&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;update_readme&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;root&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Path&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;release&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;str&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;version&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;impl&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;std&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;nn&quot;&gt;fmt&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Display&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;-&amp;gt;&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;Result&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
    &lt;span class=&quot;nn&quot;&gt;MarkdownSection&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;new&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;## Release Status&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;?&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;.replace_file&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;
        &lt;span class=&quot;o&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;root&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;.join&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;README.md&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;
        &lt;span class=&quot;o&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span class=&quot;nd&quot;&gt;format!&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;You&apos;re reading the documentation for the {release} release, v{version}.&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;
    &lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;

&lt;span class=&quot;k&quot;&gt;impl&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;LifecycleHook&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Analyzed&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;Edited&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;UpdateReadme&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
    &lt;span class=&quot;k&quot;&gt;fn&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;id&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;-&amp;gt;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;str&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;release-readme&quot;&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
    &lt;span class=&quot;k&quot;&gt;fn&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;after&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;output&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Edited&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;_&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;ExecutionContext&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;-&amp;gt;&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;Result&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
        &lt;span class=&quot;nf&quot;&gt;update_readme&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;.0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;stable&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;output&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;.release&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;.version&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;())&lt;/span&gt;
    &lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;

&lt;span class=&quot;k&quot;&gt;impl&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;LifecycleHook&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Hosted&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;NextEdited&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;UpdateReadme&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
    &lt;span class=&quot;k&quot;&gt;fn&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;id&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;-&amp;gt;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;str&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;next-readme&quot;&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
    &lt;span class=&quot;k&quot;&gt;fn&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;after&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;output&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;NextEdited&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;_&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;ExecutionContext&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;-&amp;gt;&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;Result&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
        &lt;span class=&quot;k&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;let&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;Some&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;version&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;output&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;.next_version&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
            &lt;span class=&quot;nf&quot;&gt;update_readme&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;na&quot;&gt;.0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;next&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;version&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;?&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
        &lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
        &lt;span class=&quot;nf&quot;&gt;Ok&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(())&lt;/span&gt;
    &lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;

&lt;span class=&quot;k&quot;&gt;fn&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;add_readme_hooks&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;workflow&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;mut&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;ReleaseWorkflow&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
    &lt;span class=&quot;k&quot;&gt;let&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;root&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;workflow&lt;/span&gt;&lt;span class=&quot;py&quot;&gt;.components.package&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;.root&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;.to_path_buf&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;();&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;workflow&lt;/span&gt;&lt;span class=&quot;py&quot;&gt;.hooks.prepare&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;workflow&lt;/span&gt;&lt;span class=&quot;py&quot;&gt;.hooks.prepare&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;.with&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;UpdateReadme&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;root&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;.clone&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()));&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;workflow&lt;/span&gt;&lt;span class=&quot;py&quot;&gt;.hooks.next&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;workflow&lt;/span&gt;&lt;span class=&quot;py&quot;&gt;.hooks.next&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;.with&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;UpdateReadme&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;root&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;));&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Use the same &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;add_readme_hooks&lt;/code&gt; function with a &lt;a href=&quot;https://github.com/dblock/rust-crate-release/blob/master/docs/releases.md#test-a-consumer-release&quot;&gt;release fixture&lt;/a&gt; containing the project files:&lt;/p&gt;

&lt;div class=&quot;language-rust highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;fixture&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;.configure_workflow&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(|&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;workflow&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;|&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
    &lt;span class=&quot;nf&quot;&gt;add_readme_hooks&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;workflow&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;
    &lt;span class=&quot;nf&quot;&gt;Ok&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(())&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;});&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;fixture&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;.release&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;Some&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;1.2.2&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;))&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;?&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;let&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;readme&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;Path&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;new&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;README.md&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;
&lt;span class=&quot;nd&quot;&gt;assert!&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nn&quot;&gt;String&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;from_utf8_lossy&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;fixture&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;.remote_file&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;v1.2.2&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;readme&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;?&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
    &lt;span class=&quot;nf&quot;&gt;.contains&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;stable release, v1.2.2.&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;));&lt;/span&gt;
&lt;span class=&quot;nd&quot;&gt;assert!&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nn&quot;&gt;String&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;from_utf8_lossy&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;fixture&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;.remote_file&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;master&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;readme&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;?&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
    &lt;span class=&quot;nf&quot;&gt;.contains&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;next release, v1.2.3.&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;));&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;less-code&quot;&gt;Less Code&lt;/h2&gt;

&lt;p&gt;These libraries started as release code in individual projects. As I found myself solving the same release problems again, I extracted the common workflow into Ruby, JavaScript, and Rust libraries, then replaced the project-specific code with those shared implementations. These libraries now easily remove 2/3 of the custom release script code and add a ton of validation and release safety. See &lt;a href=&quot;https://github.com/dblock/eslint-plugin-markdown-preferences-paragraph/pull/19&quot;&gt;eslint-plugin-markdown-preferences-paragraph#19&lt;/a&gt;, &lt;a href=&quot;https://github.com/dblock/eslint-plugin-prose-spellcheck/pull/11&quot;&gt;eslint-plugin-prose-spellcheck#11&lt;/a&gt;, &lt;a href=&quot;https://github.com/hashie/hashie/pull/653&quot;&gt;Hashie#653&lt;/a&gt;, and &lt;a href=&quot;https://github.com/danger/danger-pr-comment/pull/15&quot;&gt;danger-pr-comment#15&lt;/a&gt; for some diffs.&lt;/p&gt;

&lt;h2 id=&quot;projects-adopting-releases-as-code&quot;&gt;Projects Adopting “Releases as Code”&lt;/h2&gt;

&lt;p&gt;In addition to these projects using themselves to make their own releases, other projects are adopting this approach:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://github.com/dblock/ruby-link-checker/blob/main/.github/workflows/release.yml&quot;&gt;ruby-link-checker&lt;/a&gt;, &lt;a href=&quot;https://github.com/hashie/hashie/blob/master/.github/workflows/release.yml&quot;&gt;Hashie&lt;/a&gt;, &lt;a href=&quot;https://github.com/danger/danger-pr-comment/blob/main/.github/workflows/release.yml&quot;&gt;danger-pr-comment&lt;/a&gt;, &lt;a href=&quot;https://github.com/slack-ruby/slack-ruby-client&quot;&gt;slack-ruby-client&lt;/a&gt;, &lt;a href=&quot;https://github.com/codegram/hyperclient&quot;&gt;hyperclient&lt;/a&gt;, &lt;a href=&quot;https://github.com/kslazarev/numbers_and_words&quot;&gt;numbers_and_words&lt;/a&gt;, &lt;a href=&quot;https://github.com/dblock/strava-ruby-client&quot;&gt;strava-ruby-client&lt;/a&gt;, and a dozen &lt;a href=&quot;https://github.com/mongoid&quot;&gt;Mongoid&lt;/a&gt; gems, such as &lt;a href=&quot;https://github.com/mongoid/mongoid-history&quot;&gt;mongoid-history&lt;/a&gt; and &lt;a href=&quot;https://github.com/mongoid/mongoid-slug&quot;&gt;mongoid-slug&lt;/a&gt;, use ruby-gem-release.&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://github.com/dblock/eslint-plugin-markdown-preferences-paragraph&quot;&gt;eslint-plugin-markdown-preferences-paragraph&lt;/a&gt;, &lt;a href=&quot;https://github.com/dblock/eslint-plugin-prose-spellcheck&quot;&gt;eslint-plugin-prose-spellcheck&lt;/a&gt;, and &lt;a href=&quot;https://github.com/dblock/eslint-plugin-markdown-links-unlinked&quot;&gt;eslint-plugin-markdown-links-unlinked&lt;/a&gt; use npm-package-release.&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://github.com/dblock/gmail-toggle/blob/master/.github/workflows/release.yml&quot;&gt;gmail-toggle&lt;/a&gt;, a Chrome extension, uses npm-package-release to release a zip as a GitHub Release without publishing to npm.&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://github.com/dblock/excalc-rs/blob/master/.github/workflows/release.yml&quot;&gt;excalc-rs&lt;/a&gt;, &lt;a href=&quot;https://github.com/dblock/already-tested/blob/master/.github/workflows/release.yml&quot;&gt;already-tested&lt;/a&gt;, and &lt;a href=&quot;https://github.com/dblock/fue-rs/blob/master/.github/workflows/release.yml&quot;&gt;fue-rs&lt;/a&gt; use rust-crate-release.&lt;/li&gt;
&lt;/ul&gt;

  &lt;p&gt;&lt;a href=&quot;https://code.dblock.org/2026/11/12/releases-as-code.html&quot;&gt;Releases as Code&lt;/a&gt; was originally published by Daniel Doubrovkine at &lt;a href=&quot;https://code.dblock.org&quot;&gt;code.dblock.org | tech blog&lt;/a&gt; on November 12, 2026.&lt;/p&gt;</content>
</entry>


<entry>
  <title type="html"><![CDATA[How I Learned to Use Copilot Sessions 400 Million Tokens Later]]></title>
 <link rel="alternate" type="text/html" href="https://code.dblock.org/2026/11/10/how-i-learned-to-use-copilot-sessions-400-million-tokens-later.html" />
  <id>https://code.dblock.org/2026/11/10/how-i-learned-to-use-copilot-sessions-400-million-tokens-later</id>
  <published>2026-11-10T00:00:00+00:00</published>
  <updated>2026-11-10T00:00:00+00:00</updated>
  <author>
    <name>Daniel Doubrovkine</name>
    <uri>https://code.dblock.org</uri>
    <email>dblock@dblock.org</email>
  </author>
  <content type="html">&lt;p&gt;I recently &lt;a href=&quot;/2026/11/06/linting-both-prose-and-embedded-code-with-rubocop.html&quot;&gt;built a Markdown linter with GitHub Copilot CLI&lt;/a&gt;. In between, I reviewed other projects, edited this blog, and generally treated one conversation as a terminal into which I could dump whatever I was doing next. I really loved the fact that Copilot would context switch, do some work, then go back to what it was doing. It’s so smart!&lt;/p&gt;

&lt;p&gt;Well, that may have burnt some extra tokens.&lt;/p&gt;

&lt;h3 id=&quot;counting-tokens&quot;&gt;Counting Tokens&lt;/h3&gt;

&lt;p&gt;The local usage logs for the roughly three-and-a-half-day development window showed approximately 4,322 model calls, including delegated agents:&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th&gt;Token Type&lt;/th&gt;
      &lt;th&gt;Millions&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td&gt;Non-cached input&lt;/td&gt;
      &lt;td&gt;11.4&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Output&lt;/td&gt;
      &lt;td&gt;2.4&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Cached input&lt;/td&gt;
      &lt;td&gt;411&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;That’s roughly 14 million non-cached input and output tokens, plus more than 400 million cached input tokens.&lt;/p&gt;

&lt;p&gt;Cached input is previously processed context reused across requests. The same context can be counted repeatedly, so 411 million doesn’t mean I wrote 411 million tokens or that Copilot generated that much code. It also doesn’t translate directly into dollar spend: cached input has different accounting from non-cached input and output. Still, I had given it a lot of unrelated history to carry around and wasted a lot of time waiting for it to restore and save context.&lt;/p&gt;

&lt;h3 id=&quot;start-a-session-give-it-a-name&quot;&gt;Start a Session, Give It a Name&lt;/h3&gt;

&lt;p&gt;Since then, I’ve been using &lt;a href=&quot;https://docs.github.com/copilot/how-tos/copilot-cli&quot;&gt;Copilot CLI&lt;/a&gt;’s named sessions more. Here’s the workflow that is working for me.&lt;/p&gt;

&lt;p&gt;My source code lives in &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;~/source&lt;/code&gt;. I group related projects together, keeping my forks and upstream checkouts in the same folder. Git working trees fit into the same layout, named after the project and task. For example, here’s how I’d add task-specific working trees alongside my fork of &lt;a href=&quot;https://github.com/eslint/markdown&quot;&gt;ESLint’s Markdown plugin&lt;/a&gt; and its upstream checkout:&lt;/p&gt;

&lt;div class=&quot;language-text highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;~/source/
`-- eslint/
    `-- markdown/
        |-- upstream-markdown/           # upstream checkout
        |-- dblock-markdown/             # my fork
        |-- dblock-markdown-parser-fix/  # working tree
        `-- dblock-markdown-docs/        # working tree
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I start a single &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;copilot&lt;/code&gt; process in &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;~/source&lt;/code&gt; and switch between sessions inside it.&lt;/p&gt;

&lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nb&quot;&gt;cd&lt;/span&gt; ~/source
copilot &lt;span class=&quot;nt&quot;&gt;--yolo&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;--resume&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Inside an interactive session, I open the session picker with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;/resume&lt;/code&gt;, create new sessions with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;n&lt;/code&gt;, and name them after the repository with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;/rename&lt;/code&gt;. I use &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;/cwd&lt;/code&gt; to change each session’s working directory to the project checkout. Naming a session doesn’t change its directory, but Copilot has gotten used to my source code layout by now.&lt;/p&gt;

&lt;p&gt;Here’s how it looks.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/images/posts/2026/2026-11-10-how-i-learned-to-use-copilot-sessions-400-million-tokens-later/copilot-sessions.png&quot; alt=&quot;Copilot CLI session picker showing named sessions for libraries, tools, and this blog.&quot; /&gt;&lt;/p&gt;

  &lt;p&gt;&lt;a href=&quot;https://code.dblock.org/2026/11/10/how-i-learned-to-use-copilot-sessions-400-million-tokens-later.html&quot;&gt;How I Learned to Use Copilot Sessions 400 Million Tokens Later&lt;/a&gt; was originally published by Daniel Doubrovkine at &lt;a href=&quot;https://code.dblock.org&quot;&gt;code.dblock.org | tech blog&lt;/a&gt; on November 10, 2026.&lt;/p&gt;</content>
</entry>


<entry>
  <title type="html"><![CDATA[Releasing Ruby Gems with OIDC and GitHub Actions]]></title>
 <link rel="alternate" type="text/html" href="https://code.dblock.org/2026/11/07/releasing-ruby-gems-with-oidc-and-github-actions.html" />
  <id>https://code.dblock.org/2026/11/07/releasing-ruby-gems-with-oidc-and-github-actions</id>
  <published>2026-11-07T00:00:00+00:00</published>
  <updated>2026-11-07T00:00:00+00:00</updated>
  <author>
    <name>Daniel Doubrovkine</name>
    <uri>https://code.dblock.org</uri>
    <email>dblock@dblock.org</email>
  </author>
  <content type="html">&lt;p&gt;Releasing Ruby gems manually typically involves incrementing a version in a file, creating a tag, pushing a gem to Rubygems and making a GitHub release. These tasks can be automated in many ways, including &lt;a href=&quot;https://github.com/rubygems/release-gem&quot;&gt;release-gem&lt;/a&gt; or GHA with &lt;a href=&quot;https://github.com/rubygems/configure-rubygems-credentials&quot;&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;rubygems/configure-rubygems-credentials&lt;/code&gt;&lt;/a&gt; and trusted publishing. Moreover, you can build upon these approaches when you need something beyond the plain &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;rake release&lt;/code&gt;, such as updating a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;CHANGELOG.md&lt;/code&gt;, by rolling miles of brittle GitHub Actions YAML and shell script AI slop.&lt;/p&gt;

&lt;p&gt;As an alternative to both the manual process and scripts, I’ve been asking AI to follow a hand-crafted &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;RELEASING.md&lt;/code&gt;. AI can run tests, date &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;CHANGELOG.md&lt;/code&gt;, ask me for a RubyGems OTP, make the release, increment the version of the next developer iteration. This worked quite well!&lt;/p&gt;

&lt;p&gt;Still, AI is a very blunt tool for something that should be mechanized.&lt;/p&gt;

&lt;p&gt;The solution is &lt;a href=&quot;/2026/11/12/releases-as-code.html&quot;&gt;Releases as Code&lt;/a&gt;. For Ruby, I built &lt;a href=&quot;https://github.com/dblock/ruby-gem-release&quot;&gt;ruby-gem-release&lt;/a&gt; to automate all release bookkeeping in Ruby in an extensible workflow with near-zero code. While simple to use, it’s a completely customizable system that lets you automate a release in Ruby and supports advanced workflows such as semantic releases, allows to &lt;a href=&quot;https://github.com/dblock/ruby-gem-release/blob/v0.5.0/RELEASING.md#verify-and-recover&quot;&gt;retry and recover failed publications&lt;/a&gt; and preserves artifacts on failure.&lt;/p&gt;

&lt;p&gt;The release itself runs in GitHub Actions. &lt;a href=&quot;https://guides.rubygems.org/trusted-publishing/&quot;&gt;RubyGems Trusted Publishing&lt;/a&gt; supplies short-lived credentials, so there is no RubyGems API key to store in GitHub secrets or share with other maintainers. After setup, collaborators with write access can dispatch releases too.&lt;/p&gt;

&lt;p&gt;As an example, I &lt;a href=&quot;https://github.com/dblock/ruby-link-checker&quot;&gt;added it to ruby-link-checker&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Here’s the Rakefile addition:&lt;/p&gt;

&lt;div class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nb&quot;&gt;require&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;ruby-gem-release/workflow/ruby_gem&apos;&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;require&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;ruby-gem-release/changelog&apos;&lt;/span&gt;

&lt;span class=&quot;no&quot;&gt;RubyGemRelease&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;no&quot;&gt;Workflow&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;no&quot;&gt;RubyGem&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;new&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;
  &lt;span class=&quot;ss&quot;&gt;version: &lt;/span&gt;&lt;span class=&quot;no&quot;&gt;RubyGemRelease&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;no&quot;&gt;Version&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;no&quot;&gt;RubyConstant&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;new&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;ss&quot;&gt;path: &lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&apos;lib/ruby-link-checker/version.rb&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;ss&quot;&gt;constant: &lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&apos;VERSION&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;
  &lt;span class=&quot;ss&quot;&gt;changelog: &lt;/span&gt;&lt;span class=&quot;no&quot;&gt;RubyGemRelease&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;no&quot;&gt;Changelog&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;no&quot;&gt;Intridea&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;new&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;ss&quot;&gt;placeholder: &lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&apos;* Your contribution here.&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;).&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;install_tasks&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The version strategy reads a constant from &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;lib/ruby-link-checker/version.rb&lt;/code&gt;:&lt;/p&gt;

&lt;div class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;k&quot;&gt;module&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;LinkChecker&lt;/span&gt;
  &lt;span class=&quot;no&quot;&gt;VERSION&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;0.5.0&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;freeze&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;end&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;CHANGELOG.md&lt;/code&gt; in this project is in the Intridea style. The gem also supports &lt;a href=&quot;https://keepachangelog.com/en/1.1.0/&quot;&gt;Keep a Changelog&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Before publishing &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;0.5.0&lt;/code&gt; the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;CHANGELOG.md&lt;/code&gt; is updated with a date. After publishing, the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;VERSION&lt;/code&gt; constant is incremented to &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;0.5.1&lt;/code&gt;, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;CHANGELOG.md&lt;/code&gt; is updated with a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Next&lt;/code&gt; section.&lt;/p&gt;

&lt;p&gt;As a nice side-effect, the workflow also checks that unrelated files don’t sneak into the release commit. In &lt;a href=&quot;https://github.com/hashie/hashie/actions/runs/43009356234/job/130484765157&quot;&gt;a Hashie release&lt;/a&gt;, it stopped after dependency installation exposed 13,746 untracked paths under &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;vendor/bundle&lt;/code&gt;. Dependency artifacts need to be intentionally ignored, and only the intended release edits are staged during preparation. This can also help with supply chain attacks.&lt;/p&gt;

&lt;p&gt;Add &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;.github/workflows/release.yml&lt;/code&gt; to call the reusable release workflow. The optional &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;version&lt;/code&gt; input selects a different release version, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;rubygems-owner&lt;/code&gt; accepts your numeric RubyGems account ID when publishing a new gem for the first time:&lt;/p&gt;

&lt;div class=&quot;language-yaml highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;na&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;Release&lt;/span&gt;

&lt;span class=&quot;na&quot;&gt;on&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
  &lt;span class=&quot;na&quot;&gt;workflow_dispatch&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
    &lt;span class=&quot;na&quot;&gt;inputs&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
      &lt;span class=&quot;na&quot;&gt;version&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
        &lt;span class=&quot;na&quot;&gt;description&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;Optional release version overriding the checked-in version.&lt;/span&gt;
        &lt;span class=&quot;na&quot;&gt;required&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;kc&quot;&gt;false&lt;/span&gt;
        &lt;span class=&quot;na&quot;&gt;type&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;string&lt;/span&gt;
      &lt;span class=&quot;na&quot;&gt;rubygems-owner&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
        &lt;span class=&quot;na&quot;&gt;description&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;RubyGems account ID for first publication; omit for an existing gem.&lt;/span&gt;
        &lt;span class=&quot;na&quot;&gt;required&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;kc&quot;&gt;false&lt;/span&gt;
        &lt;span class=&quot;na&quot;&gt;type&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;string&lt;/span&gt;

&lt;span class=&quot;na&quot;&gt;permissions&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
  &lt;span class=&quot;na&quot;&gt;contents&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;write&lt;/span&gt;
  &lt;span class=&quot;na&quot;&gt;id-token&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;write&lt;/span&gt;

&lt;span class=&quot;na&quot;&gt;jobs&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
  &lt;span class=&quot;na&quot;&gt;release&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
    &lt;span class=&quot;na&quot;&gt;uses&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;dblock/ruby-gem-release/.github/workflows/release.yml@v0.5.0&lt;/span&gt;
    &lt;span class=&quot;na&quot;&gt;with&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
      &lt;span class=&quot;na&quot;&gt;ruby-version&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;3.3&apos;&lt;/span&gt;
      &lt;span class=&quot;na&quot;&gt;version&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;${{ inputs.version }}&lt;/span&gt;
      &lt;span class=&quot;na&quot;&gt;rubygems-owner&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;${{ inputs.rubygems-owner }}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;There’s a bit of work to configure the trusted publisher for the first release. The &lt;a href=&quot;https://github.com/dblock/ruby-gem-release#usage&quot;&gt;setup instructions&lt;/a&gt; cover that.&lt;/p&gt;

&lt;p&gt;You can configure the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;release&lt;/code&gt; environment to require &lt;a href=&quot;https://github.com/dblock/ruby-gem-release/blob/master/RELEASING.md#maintainer-approved-publication&quot;&gt;maintainer approval&lt;/a&gt;. Repository writers can still dispatch a release, but the job waits for an approved maintainer before it runs. Creating an environment without protection rules doesn’t restrict releases; availability of those rules depends on the repository and GitHub plan.&lt;/p&gt;

&lt;p&gt;After validating and reviewing the changes, publish a new gem with the numeric RubyGems account ID shown on the pending trusted publisher page:&lt;/p&gt;

&lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;gh workflow run release.yml &lt;span class=&quot;nt&quot;&gt;--repo&lt;/span&gt; dblock/ruby-link-checker &lt;span class=&quot;nt&quot;&gt;--ref&lt;/span&gt; main &lt;span class=&quot;nt&quot;&gt;-f&lt;/span&gt; rubygems-owner&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;YOUR_ACCOUNT_ID
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;For subsequent releases, omit &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;rubygems-owner&lt;/code&gt;:&lt;/p&gt;

&lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;gh workflow run release.yml &lt;span class=&quot;nt&quot;&gt;--repo&lt;/span&gt; dblock/ruby-link-checker &lt;span class=&quot;nt&quot;&gt;--ref&lt;/span&gt; main
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;By default, the workflow releases the checked-in version. To select a different version, pass &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;-f version=0.6.0&lt;/code&gt;; the standard workflow updates the version file before preparing the changelog and increments from that version for the next development iteration.&lt;/p&gt;

&lt;p&gt;There’s also a &lt;a href=&quot;https://github.com/dblock/ruby-gem-release/blob/v0.5.0/docs/actions/action.md&quot;&gt;composite action&lt;/a&gt; for projects that need to own the surrounding job, runner, permissions, and environment. Both interfaces use the same Ruby tasks. Authentication happens during publication through the configured registry destination; custom destinations can supply their own authentication and upload behavior without replacing Git or GitHub Releases.&lt;/p&gt;

&lt;h2 id=&quot;advanced-custom-callbacks&quot;&gt;Advanced: Custom Callbacks&lt;/h2&gt;

&lt;p&gt;For notifications, keep the standard workflow and add success and failure callbacks:&lt;/p&gt;

&lt;div class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nb&quot;&gt;require&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;ruby-gem-release/workflow/ruby_gem&apos;&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;require&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;ruby-gem-release/changelog&apos;&lt;/span&gt;

&lt;span class=&quot;no&quot;&gt;RubyGemRelease&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;no&quot;&gt;Workflow&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;no&quot;&gt;RubyGem&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;new&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;
  &lt;span class=&quot;ss&quot;&gt;version: &lt;/span&gt;&lt;span class=&quot;no&quot;&gt;RubyGemRelease&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;no&quot;&gt;Version&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;no&quot;&gt;RubyConstant&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;new&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;ss&quot;&gt;path: &lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&apos;lib/example/version.rb&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;ss&quot;&gt;constant: &lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&apos;VERSION&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;
  &lt;span class=&quot;ss&quot;&gt;changelog: &lt;/span&gt;&lt;span class=&quot;no&quot;&gt;RubyGemRelease&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;no&quot;&gt;Changelog&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;no&quot;&gt;KeepAChangelog&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;new&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;
  &lt;span class=&quot;ss&quot;&gt;success: &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;ctx&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;puts&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;Published &lt;/span&gt;&lt;span class=&quot;si&quot;&gt;#{&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;ctx&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;release&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;version&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;; next version is &lt;/span&gt;&lt;span class=&quot;si&quot;&gt;#{&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;ctx&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;release&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;next_version&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;},&lt;/span&gt;
  &lt;span class=&quot;ss&quot;&gt;failure: &lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;failure&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;warn&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;Release failed during &lt;/span&gt;&lt;span class=&quot;si&quot;&gt;#{&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;failure&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;phase&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;: &lt;/span&gt;&lt;span class=&quot;si&quot;&gt;#{&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;failure&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;error&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;amp;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;message&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;).&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;install_tasks&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Callbacks receive an execution context: &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;ctx.release&lt;/code&gt; contains the version, original gemspec version, date, and next development version; &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;ctx.workflow&lt;/code&gt; exposes the configured components. On Actions, the context also includes observed step outcomes and run metadata. Failure callbacks receive the failed phase, captured Ruby exception details when available, and a context whose release can be absent if capture failed.&lt;/p&gt;

&lt;p&gt;For complete control, register &lt;a href=&quot;https://github.com/dblock/ruby-gem-release/blob/v0.5.0/docs/usage.md#custom-callbacks&quot;&gt;custom callbacks&lt;/a&gt; with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Tasks.install&lt;/code&gt;: &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;validate&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;prepare&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;publish&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;bump&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;success&lt;/code&gt;, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;failure&lt;/code&gt;. Validation raises on invalid state; returning &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;false&lt;/code&gt; also fails. Wrap trusted file edits in &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;git.stage_changes!&lt;/code&gt;, publish the verified package before pushing its commit and tag, and record the next version with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;ctx.record_next_version!&lt;/code&gt; only after its commit and push succeed.&lt;/p&gt;

&lt;p&gt;The architectural distinction of &lt;a href=&quot;https://github.com/dblock/ruby-gem-release&quot;&gt;ruby-gem-release&lt;/a&gt; with similar projects is that this sequence is exposed as ordinary Ruby objects and callbacks, so project-specific changes can be tested without accumulating YAML/shell glue. Keeping the release logic in pure Ruby is a less brittle approach than spreading it across shell scripts. Version changes, changelog updates, and publication are ordinary objects and method calls that you can test and customize without another layer of shell quoting or GitHub expression interpolation.&lt;/p&gt;

&lt;p&gt;For an advanced example, see the &lt;a href=&quot;https://github.com/dblock/ruby-gem-release/blob/v0.5.0/examples/self_release/README.md&quot;&gt;self-release configuration&lt;/a&gt;, which customizes the version strategy to update action and workflow references in README and every Markdown file under &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;docs/&lt;/code&gt; to the version just released. It makes those edits after publication, as part of the next development iteration commit, so the documentation never points at an unpublished tag. It’s implemented in Ruby and has tests.&lt;/p&gt;

&lt;h2 id=&quot;conventional-commits&quot;&gt;Conventional Commits&lt;/h2&gt;

&lt;p&gt;If you prefer &lt;a href=&quot;https://www.conventionalcommits.org/en/v1.0.0/&quot;&gt;Conventional Commits&lt;/a&gt; to handwritten pending changelog entries, replace the manual workflow configuration with:&lt;/p&gt;

&lt;div class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nb&quot;&gt;require&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;ruby-gem-release/workflow/semantic_ruby_gem&apos;&lt;/span&gt;

&lt;span class=&quot;no&quot;&gt;RubyGemRelease&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;no&quot;&gt;Workflow&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;no&quot;&gt;SemanticRubyGem&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;new&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;
  &lt;span class=&quot;ss&quot;&gt;version: &lt;/span&gt;&lt;span class=&quot;no&quot;&gt;RubyGemRelease&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;no&quot;&gt;Version&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;no&quot;&gt;RubyConstant&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;new&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;ss&quot;&gt;path: &lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&apos;lib/example/version.rb&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;ss&quot;&gt;constant: &lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&apos;VERSION&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;).&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;install_tasks&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This keeps the same manually dispatched Actions workflow. It selects a version from commits after the highest reachable stable release tag, generates notes and a changelog section, and persists the decision once for later tasks. Breaking changes select major, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;feat&lt;/code&gt; selects minor, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;fix&lt;/code&gt; or &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;perf&lt;/code&gt; selects patch. The first release defaults to &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;1.0.0&lt;/code&gt;; no eligible changes fails validation rather than quietly skipping.&lt;/p&gt;

&lt;p&gt;Semantic releases don’t bump the development version by default; add &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;bump: true&lt;/code&gt; if you want that. The &lt;a href=&quot;https://github.com/dblock/ruby-gem-release/blob/v0.5.0/docs/workflow/semantic_ruby_gem.md&quot;&gt;semantic release guide&lt;/a&gt; covers custom rules, explicit versions, and replacing the history, analysis, version-selection, or notes providers. Install either the manual or semantic configuration, not both.&lt;/p&gt;

&lt;p&gt;I also &lt;a href=&quot;https://github.com/danger/danger-pr-comment/pull/15&quot;&gt;migrated the custom release workflow in danger-pr-comment&lt;/a&gt;. The release YAML went from 172 lines to 42, a 76% reduction, retaining the project’s custom checks and updates to references in the README during release.&lt;/p&gt;

  &lt;p&gt;&lt;a href=&quot;https://code.dblock.org/2026/11/07/releasing-ruby-gems-with-oidc-and-github-actions.html&quot;&gt;Releasing Ruby Gems with OIDC and GitHub Actions&lt;/a&gt; was originally published by Daniel Doubrovkine at &lt;a href=&quot;https://code.dblock.org&quot;&gt;code.dblock.org | tech blog&lt;/a&gt; on November 07, 2026.&lt;/p&gt;</content>
</entry>


<entry>
  <title type="html"><![CDATA[Linting Both Prose and Embedded Code with RuboCop]]></title>
 <link rel="alternate" type="text/html" href="https://code.dblock.org/2026/11/06/linting-both-prose-and-embedded-code-with-rubocop.html" />
  <id>https://code.dblock.org/2026/11/06/linting-both-prose-and-embedded-code-with-rubocop</id>
  <published>2026-11-06T00:00:00+00:00</published>
  <updated>2026-11-06T00:00:00+00:00</updated>
  <author>
    <name>Daniel Doubrovkine</name>
    <uri>https://code.dblock.org</uri>
    <email>dblock@dblock.org</email>
  </author>
  <content type="html">&lt;p&gt;My &lt;a href=&quot;https://fr.wikipedia.org/wiki/Roman_Doubrovkine&quot;&gt;father&lt;/a&gt; is a poetry translator, so perhaps my obsession with prose runs in the family. This started before Markdown: I wrote &lt;a href=&quot;/2026/09/05/standardizing-exception-message-style-in-ruby.html&quot;&gt;rubocop-exception_messages&lt;/a&gt; after noticing inconsistent exception messages in Grape.&lt;/p&gt;

&lt;p&gt;After I &lt;a href=&quot;/2026/10/21/introducing-rubocop-spellcheck.html&quot;&gt;replaced this blog’s Python spell checker with a RuboCop plugin&lt;/a&gt; I still had a Node installation to check Markdown. Since it’s a Jekyll blog, and the build is Ruby, the spelling checker is Ruby, and my default set of code examples are also Ruby, why was formatting the README Node.js?&lt;/p&gt;

&lt;p&gt;I first tried extending &lt;a href=&quot;https://github.com/rubocop/rubocop-md&quot;&gt;rubocop-md&lt;/a&gt;, proposing &lt;a href=&quot;https://github.com/rubocop/rubocop-md/pull/50&quot;&gt;prose checks and parser diagnostics&lt;/a&gt;, &lt;a href=&quot;https://github.com/rubocop/rubocop-md/pull/51&quot;&gt;a reusable Markdown parser&lt;/a&gt;, &lt;a href=&quot;https://github.com/rubocop/rubocop-md/pull/52&quot;&gt;hidden cop-directive fixes&lt;/a&gt;, &lt;a href=&quot;https://github.com/rubocop/rubocop-md/pull/53&quot;&gt;front-matter handling&lt;/a&gt;, and &lt;a href=&quot;https://github.com/rubocop/rubocop-md/pull/55&quot;&gt;preserving prose alongside Ruby corrections&lt;/a&gt;. The parser and interoperability work were merged in &lt;a href=&quot;https://github.com/rubocop/rubocop-md/pull/57&quot;&gt;#57&lt;/a&gt;, but &lt;a href=&quot;https://github.com/rubocop/rubocop-md/issues/54&quot;&gt;the proposed markdownlint rules&lt;/a&gt; were rejected out of scope because &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;rubocop-md&lt;/code&gt; lints Ruby within Markdown, not Markdown itself.&lt;/p&gt;

&lt;p&gt;Introducing &lt;a href=&quot;https://github.com/dblock/rubocop-prose&quot;&gt;rubocop-prose&lt;/a&gt;, a RuboCop plugin for Markdown and plain text. I also &lt;a href=&quot;https://github.com/dblock/code.dblock.org/pull/176&quot;&gt;replaced this blog’s Markdown linter with it&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;It’s an AI-assisted port from &lt;a href=&quot;https://github.com/DavidAnson/markdownlint&quot;&gt;JavaScript markdownlint&lt;/a&gt; and &lt;a href=&quot;https://github.com/markdownlint/markdownlint&quot;&gt;Ruby markdownlint&lt;/a&gt;, &lt;a href=&quot;https://github.com/dblock/markdownlint-rule-single-line-paragraphs&quot;&gt;my custom single-line-paragraphs rule&lt;/a&gt;, &lt;a href=&quot;https://github.com/rubocop/rubocop-md&quot;&gt;rubocop-md&lt;/a&gt;, and &lt;a href=&quot;https://github.com/dblock/rubocop-spellcheck&quot;&gt;rubocop-spellcheck&lt;/a&gt;, plus ideas from upstream issues, pull requests, and forks.&lt;/p&gt;

&lt;p&gt;I burnt 11.4 million input and 2.4 million output non-cached tokens for development, publishing &lt;a href=&quot;https://github.com/dblock/rubocop-prose/releases/tag/v0.1.0&quot;&gt;the initial release&lt;/a&gt; in 16 hours, and iterating to &lt;a href=&quot;https://github.com/dblock/rubocop-prose/releases/tag/v0.2.0&quot;&gt;0.2.0&lt;/a&gt; over the next 2 days. My workflow was to start from scratch, then have AI write the PRs, and always steer: reviewing behavior, questioning defaults, and simplifying the user-facing settings by reading PR descriptions and generated documentation. I barely read code as I mostly cared about usability of the linter. For example, I asked to merge &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;EnforcedStyle&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Style&lt;/code&gt;. That meant consolidating overlapping options, considering a breaking change, and aligning names across cops.&lt;/p&gt;

&lt;h3 id=&quot;adding-prose-to-rubocop&quot;&gt;Adding Prose to RuboCop&lt;/h3&gt;

&lt;p&gt;Add to your &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Gemfile&lt;/code&gt;:&lt;/p&gt;

&lt;div class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;gem&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;rubocop-md&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;~&amp;gt; 3.0&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;ss&quot;&gt;require: &lt;/span&gt;&lt;span class=&quot;kp&quot;&gt;false&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;gem&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;rubocop-prose&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;~&amp;gt; 0.2.0&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;ss&quot;&gt;require: &lt;/span&gt;&lt;span class=&quot;kp&quot;&gt;false&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;gem&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;rubocop-spellcheck&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;~&amp;gt; 0.2.0&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;ss&quot;&gt;require: &lt;/span&gt;&lt;span class=&quot;kp&quot;&gt;false&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Run &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;bundle install&lt;/code&gt;, then enable the plugins in &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;.rubocop.yml&lt;/code&gt;:&lt;/p&gt;

&lt;div class=&quot;language-yaml highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;na&quot;&gt;plugins&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
  &lt;span class=&quot;pi&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;rubocop-md&lt;/span&gt;
  &lt;span class=&quot;pi&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;rubocop-prose&lt;/span&gt;
  &lt;span class=&quot;pi&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;rubocop-spellcheck&lt;/span&gt;

&lt;span class=&quot;na&quot;&gt;Markdown&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
  &lt;span class=&quot;na&quot;&gt;Autodetect&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;kc&quot;&gt;false&lt;/span&gt;

&lt;span class=&quot;na&quot;&gt;Prose/MaxLength&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
  &lt;span class=&quot;na&quot;&gt;Max&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;kc&quot;&gt;false&lt;/span&gt;

&lt;span class=&quot;na&quot;&gt;Spellcheck/Spelling&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
  &lt;span class=&quot;na&quot;&gt;Ruby&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
    &lt;span class=&quot;na&quot;&gt;Identifiers&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;kc&quot;&gt;true&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;rubocop-prose&lt;/code&gt; discovers Markdown and plain-text files. It checks headings, lists, links, tables, code-block structure, whitespace, and YAML front matter. Editorial choices such as title capitalization and proper-name spelling are configurable. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;rubocop-spellcheck&lt;/code&gt; checks spelling with a bundled American English dictionary and supports project-specific vocabulary. Together with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;rubocop-md&lt;/code&gt;, these plugins check the document’s structure, its words, and its embedded Ruby.&lt;/p&gt;

&lt;p&gt;I included three examples above. The first, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Markdown/Autodetect: false&lt;/code&gt; tells &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;rubocop-md&lt;/code&gt; not to guess whether code blocks without a language tag contain Ruby. Only explicitly Ruby-tagged blocks are inspected as Ruby, leaving examples in other languages alone. The second, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Prose/MaxLength&lt;/code&gt; with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Max: false&lt;/code&gt; enforces one source line per paragraph. I explain why in &lt;a href=&quot;/2021/06/07/to-wrap-or-not-to-wrap-in-markdown.html&quot;&gt;To Wrap or Not to Wrap in Markdown?&lt;/a&gt;. Autocorrection joins wrapped paragraphs while preserving intentional Markdown hard breaks. The third, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Spellcheck/Spelling&lt;/code&gt; with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Ruby/Identifiers: true&lt;/code&gt;, opts into spelling checks for Ruby identifiers, such as method and variable names, in addition to the default checks for prose, comments, and strings.&lt;/p&gt;

&lt;p&gt;Run the same command you already use for Ruby:&lt;/p&gt;

&lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;bundle &lt;span class=&quot;nb&quot;&gt;exec &lt;/span&gt;rubocop
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;For safe corrections for the first two cops with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;bundle exec rubocop -a&lt;/code&gt;. Fix genuine typos first, then generate an initial project dictionary for names and technical vocabulary:&lt;/p&gt;

&lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;bundle &lt;span class=&quot;nb&quot;&gt;exec &lt;/span&gt;rubocop &lt;span class=&quot;nt&quot;&gt;--auto-gen-config&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;--only&lt;/span&gt; Spellcheck/Spelling
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This creates &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;.spellcheck.txt&lt;/code&gt; and configures it alongside the bundled dictionary. Review the generated words before committing: any remaining typos will be accepted too.&lt;/p&gt;

&lt;p&gt;With this, a single &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;bundle exec rubocop&lt;/code&gt; checks entire markdown files!&lt;/p&gt;

  &lt;p&gt;&lt;a href=&quot;https://code.dblock.org/2026/11/06/linting-both-prose-and-embedded-code-with-rubocop.html&quot;&gt;Linting Both Prose and Embedded Code with RuboCop&lt;/a&gt; was originally published by Daniel Doubrovkine at &lt;a href=&quot;https://code.dblock.org&quot;&gt;code.dblock.org | tech blog&lt;/a&gt; on November 06, 2026.&lt;/p&gt;</content>
</entry>


<entry>
  <title type="html"><![CDATA[How to Distribute a Rust App with Cargo, Homebrew, MSI, and WinGet]]></title>
 <link rel="alternate" type="text/html" href="https://code.dblock.org/2026/11/04/distributing-a-rust-app-everywhere.html" />
  <id>https://code.dblock.org/2026/11/04/distributing-a-rust-app-everywhere</id>
  <published>2026-11-04T00:00:00+00:00</published>
  <updated>2026-11-04T00:00:00+00:00</updated>
  <author>
    <name>Daniel Doubrovkine</name>
    <uri>https://code.dblock.org</uri>
    <email>dblock@dblock.org</email>
  </author>
  <content type="html">&lt;p&gt;I recently &lt;a href=&quot;/2026/09/24/porting-my-1996-pascal-calculator-to-rust.html&quot;&gt;ported my 1996 Pascal/Delphi calculator to Rust&lt;/a&gt;. The result is &lt;a href=&quot;https://github.com/dblock/excalc-rs&quot;&gt;excalc&lt;/a&gt;, a cross-platform command-line application and MCP server.&lt;/p&gt;

&lt;p&gt;Rust makes it easy to compile an application on every platform. Distributing it via &lt;a href=&quot;https://crates.io&quot;&gt;crates.io&lt;/a&gt;, MSI, Homebrew or WinGet needed more work. Paste this cookbook into your favorite AI prompt to get it done.&lt;/p&gt;

&lt;p&gt;We trigger a distribution from GitHub Releases: a Git tag identifies the new version, CI publishes the crate from that tag, builds portable archives and an MSI from that tag, and attaches everything to the release. Homebrew downloads the tagged source archive. WinGet points at the released MSI.&lt;/p&gt;

&lt;h2 id=&quot;prepare-the-rust-package&quot;&gt;Prepare the Rust Package&lt;/h2&gt;

&lt;p&gt;Start with complete package metadata in &lt;a href=&quot;https://github.com/dblock/excalc-rs/blob/master/Cargo.toml&quot;&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Cargo.toml&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;div class=&quot;language-toml highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;k&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;package&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;]&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;name&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;excalc&quot;&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;version&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;0.3.0&quot;&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;edition&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;2021&quot;&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;authors&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;Daniel Doubrovkine and contributors&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;description&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;An expression calculator CLI tool and MCP server built for AI coding agents to outsource arithmetic.&quot;&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;license&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;MIT&quot;&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;repository&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;https://github.com/dblock/excalc-rs&quot;&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;default-run&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;excalc&quot;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Add every binary you want Cargo and the installer to build.&lt;/p&gt;

&lt;div class=&quot;language-toml highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;k&quot;&gt;[[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;bin&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;]]&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;name&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;excalc&quot;&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;path&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;src/main.rs&quot;&lt;/span&gt;

&lt;span class=&quot;k&quot;&gt;[[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;bin&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;]]&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;name&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;calc&quot;&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;path&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;src/main.rs&quot;&lt;/span&gt;

&lt;span class=&quot;k&quot;&gt;[[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;bin&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;]]&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;name&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;excalc-mcp&quot;&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;path&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;src/bin/excalc-mcp.rs&quot;&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;required-features&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;mcp&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Note the double brackets in &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;[[bin]]&lt;/code&gt;. TOML calls this an &lt;a href=&quot;https://toml.io/en/v1.0.0#array-of-tables&quot;&gt;array of tables&lt;/a&gt;, where each &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;[[bin]]&lt;/code&gt; block adds another executable with its own name and source path.&lt;/p&gt;

&lt;p&gt;In excalc, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;mcp&lt;/code&gt; is a default feature. CLI-only users can opt out with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;cargo install excalc --no-default-features&lt;/code&gt;; release builds retain the default features.&lt;/p&gt;

&lt;p&gt;Add a &lt;a href=&quot;https://github.com/dblock/excalc-rs/blob/master/LICENSE&quot;&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;LICENSE&lt;/code&gt;&lt;/a&gt;, &lt;a href=&quot;https://github.com/dblock/excalc-rs/blob/master/README.md&quot;&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;README.md&lt;/code&gt;&lt;/a&gt;, and &lt;a href=&quot;https://github.com/dblock/excalc-rs/blob/master/CHANGELOG.md&quot;&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;CHANGELOG.md&lt;/code&gt;&lt;/a&gt;, then verify what will be uploaded.&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;cargo &lt;span class=&quot;nb&quot;&gt;fmt&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;--all&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;--&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;--check&lt;/span&gt;
cargo clippy &lt;span class=&quot;nt&quot;&gt;--all-targets&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;--all-features&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;--&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;-D&lt;/span&gt; warnings
cargo &lt;span class=&quot;nb&quot;&gt;test&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;--all-features&lt;/span&gt;
cargo publish &lt;span class=&quot;nt&quot;&gt;--dry-run&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The dry run packages the crate and compiles the packaged copy.&lt;/p&gt;

&lt;h2 id=&quot;publish-to-cratesio&quot;&gt;Publish to crates.io&lt;/h2&gt;

&lt;p&gt;For excalc, I published the first version manually, then configured a trusted CI publisher for subsequent releases.&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;Create a crates.io account and verify its email address.&lt;/li&gt;
  &lt;li&gt;Create an API token in crates.io account settings.&lt;/li&gt;
  &lt;li&gt;Run &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;cargo login&lt;/code&gt;; modern Cargo reads the token from standard input.&lt;/li&gt;
  &lt;li&gt;Publish the first version.&lt;/li&gt;
&lt;/ol&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;cargo publish
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;For subsequent releases, use &lt;a href=&quot;https://crates.io/docs/trusted-publishing&quot;&gt;crates.io Trusted Publishing&lt;/a&gt; instead of storing a long-lived &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;CARGO_REGISTRY_TOKEN&lt;/code&gt; in GitHub.&lt;/p&gt;

&lt;p&gt;Open the crate’s &lt;strong&gt;Settings → Trusted Publishing&lt;/strong&gt; page and add a GitHub Actions publisher with:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Owner: your GitHub organization or username&lt;/li&gt;
  &lt;li&gt;Repository: your repository name&lt;/li&gt;
  &lt;li&gt;Workflow: &lt;a href=&quot;https://github.com/dblock/excalc-rs/blob/master/.github/workflows/release.yml&quot;&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;release.yml&lt;/code&gt;&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;Environment: leave blank unless the workflow uses a GitHub environment&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Add this job to &lt;a href=&quot;https://github.com/dblock/excalc-rs/blob/master/.github/workflows/release.yml&quot;&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;.github/workflows/release.yml&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;div class=&quot;language-yaml highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;na&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;Release&lt;/span&gt;

&lt;span class=&quot;na&quot;&gt;on&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
  &lt;span class=&quot;na&quot;&gt;release&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
    &lt;span class=&quot;na&quot;&gt;types&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;pi&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;published&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;]&lt;/span&gt;

&lt;span class=&quot;na&quot;&gt;env&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
  &lt;span class=&quot;na&quot;&gt;RELEASE_TAG&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;${{ github.event.release.tag_name }}&lt;/span&gt;

&lt;span class=&quot;na&quot;&gt;jobs&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
  &lt;span class=&quot;na&quot;&gt;publish&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
    &lt;span class=&quot;na&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;Publish crate&lt;/span&gt;
    &lt;span class=&quot;na&quot;&gt;runs-on&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;ubuntu-latest&lt;/span&gt;
    &lt;span class=&quot;na&quot;&gt;permissions&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
      &lt;span class=&quot;na&quot;&gt;contents&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;read&lt;/span&gt;
      &lt;span class=&quot;na&quot;&gt;id-token&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;write&lt;/span&gt;
    &lt;span class=&quot;na&quot;&gt;steps&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
      &lt;span class=&quot;pi&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;uses&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;actions/checkout@v4&lt;/span&gt;
        &lt;span class=&quot;na&quot;&gt;with&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
          &lt;span class=&quot;na&quot;&gt;ref&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;${{ env.RELEASE_TAG }}&lt;/span&gt;
      &lt;span class=&quot;pi&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;uses&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;dtolnay/rust-toolchain@stable&lt;/span&gt;
      &lt;span class=&quot;pi&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;uses&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;rust-lang/crates-io-auth-action@v1&lt;/span&gt;
        &lt;span class=&quot;na&quot;&gt;id&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;auth&lt;/span&gt;
      &lt;span class=&quot;pi&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;Publish to crates.io&lt;/span&gt;
        &lt;span class=&quot;na&quot;&gt;run&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;cargo publish&lt;/span&gt;
        &lt;span class=&quot;na&quot;&gt;env&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
          &lt;span class=&quot;na&quot;&gt;CARGO_REGISTRY_TOKEN&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;${{ steps.auth.outputs.token }}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The action exchanges GitHub’s OIDC identity for a short-lived crates.io credential. You do not need a GitHub secret.&lt;/p&gt;

&lt;p&gt;Users can now install the application on any platform with a Rust toolchain.&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;cargo &lt;span class=&quot;nb&quot;&gt;install &lt;/span&gt;excalc
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;build-portable-archives&quot;&gt;Build Portable Archives&lt;/h2&gt;

&lt;p&gt;Not everyone has Rust installed or wants to compile your application. Build portable archives containing the binaries, README, CHANGELOG, and LICENSE for macOS on Apple Silicon (&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;aarch64-apple-darwin&lt;/code&gt;), macOS on Intel (&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;x86_64-apple-darwin&lt;/code&gt;), Linux ARM64 statically linked with musl (&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;aarch64-unknown-linux-musl&lt;/code&gt;), Linux x86-64 statically linked with musl (&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;x86_64-unknown-linux-musl&lt;/code&gt;), and Windows x86-64 (&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;x86_64-pc-windows-msvc&lt;/code&gt;).&lt;/p&gt;

&lt;p&gt;I first tried &lt;a href=&quot;https://github.com/axodotdev/cargo-dist&quot;&gt;cargo-dist&lt;/a&gt;. It generated a complete release system with planning, artifact staging, manifests, release creation, and announcement jobs. This is useful if you want cargo-dist to own your entire release process, add shell and PowerShell installers, support &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;cargo-binstall&lt;/code&gt;, produce provenance, or manage more package formats.&lt;/p&gt;

&lt;p&gt;But it was too much for excalc. I already had working crates.io Trusted Publishing, MSI creation, and GitHub Release workflows. I gave up on it and used a plain matrix job.&lt;/p&gt;

&lt;div class=&quot;language-yaml highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;na&quot;&gt;archives&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
  &lt;span class=&quot;na&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;Archive (${{ matrix.target }})&lt;/span&gt;
  &lt;span class=&quot;na&quot;&gt;runs-on&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;${{ matrix.runner }}&lt;/span&gt;
  &lt;span class=&quot;na&quot;&gt;permissions&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
    &lt;span class=&quot;na&quot;&gt;contents&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;write&lt;/span&gt;
  &lt;span class=&quot;na&quot;&gt;strategy&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
    &lt;span class=&quot;na&quot;&gt;fail-fast&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;kc&quot;&gt;false&lt;/span&gt;
    &lt;span class=&quot;na&quot;&gt;matrix&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
      &lt;span class=&quot;na&quot;&gt;include&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
        &lt;span class=&quot;pi&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;target&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;aarch64-apple-darwin&lt;/span&gt;
          &lt;span class=&quot;na&quot;&gt;runner&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;macos-14&lt;/span&gt;
          &lt;span class=&quot;na&quot;&gt;format&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;tar&lt;/span&gt;
        &lt;span class=&quot;pi&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;target&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;x86_64-apple-darwin&lt;/span&gt;
          &lt;span class=&quot;na&quot;&gt;runner&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;macos-15-intel&lt;/span&gt;
          &lt;span class=&quot;na&quot;&gt;format&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;tar&lt;/span&gt;
        &lt;span class=&quot;pi&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;target&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;aarch64-unknown-linux-musl&lt;/span&gt;
          &lt;span class=&quot;na&quot;&gt;runner&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;ubuntu-22.04-arm&lt;/span&gt;
          &lt;span class=&quot;na&quot;&gt;format&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;tar&lt;/span&gt;
        &lt;span class=&quot;pi&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;target&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;x86_64-unknown-linux-musl&lt;/span&gt;
          &lt;span class=&quot;na&quot;&gt;runner&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;ubuntu-22.04&lt;/span&gt;
          &lt;span class=&quot;na&quot;&gt;format&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;tar&lt;/span&gt;
        &lt;span class=&quot;pi&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;target&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;x86_64-pc-windows-msvc&lt;/span&gt;
          &lt;span class=&quot;na&quot;&gt;runner&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;windows-2022&lt;/span&gt;
          &lt;span class=&quot;na&quot;&gt;format&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;zip&lt;/span&gt;
  &lt;span class=&quot;na&quot;&gt;steps&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
    &lt;span class=&quot;pi&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;uses&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;actions/checkout@v4&lt;/span&gt;
      &lt;span class=&quot;na&quot;&gt;with&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
        &lt;span class=&quot;na&quot;&gt;ref&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;${{ env.RELEASE_TAG }}&lt;/span&gt;
    &lt;span class=&quot;pi&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;uses&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;dtolnay/rust-toolchain@stable&lt;/span&gt;
      &lt;span class=&quot;na&quot;&gt;with&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
        &lt;span class=&quot;na&quot;&gt;targets&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;${{ matrix.target }}&lt;/span&gt;
    &lt;span class=&quot;pi&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;uses&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;Swatinem/rust-cache@v2&lt;/span&gt;
      &lt;span class=&quot;na&quot;&gt;with&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
        &lt;span class=&quot;na&quot;&gt;key&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;release-${{ matrix.target }}&lt;/span&gt;
    &lt;span class=&quot;pi&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;Install musl tools&lt;/span&gt;
      &lt;span class=&quot;na&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;contains(matrix.target, &apos;linux-musl&apos;)&lt;/span&gt;
      &lt;span class=&quot;na&quot;&gt;run&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;sudo apt-get update &amp;amp;&amp;amp; sudo apt-get install -y musl-tools&lt;/span&gt;
    &lt;span class=&quot;pi&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;Build binaries&lt;/span&gt;
      &lt;span class=&quot;na&quot;&gt;run&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;cargo build --release --target &quot;${{ matrix.target }}&quot; --bin excalc --bin calc --bin excalc-mcp&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Package Unix builds with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;tar&lt;/code&gt; and Windows with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Compress-Archive&lt;/code&gt;. Use the full version and Rust target triple in each filename, for example &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;excalc-0.3.0-aarch64-unknown-linux-musl.tar.gz&lt;/code&gt;. Generate a SHA-256 file next to every archive.&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nv&quot;&gt;version&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;${&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;RELEASE_TAG&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;#v&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;
&lt;span class=&quot;nv&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;excalc-&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;${&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;version&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;${&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{ matrix.target &lt;/span&gt;&lt;span class=&quot;k&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;}&quot;&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;mkdir&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;-p&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;target/release-archives/&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;${&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;cp&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;target/&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;${&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{ matrix.target &lt;/span&gt;&lt;span class=&quot;k&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;}/release/excalc&quot;&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;target/&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;${&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{ matrix.target &lt;/span&gt;&lt;span class=&quot;k&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;}/release/calc&quot;&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;target/&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;${&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{ matrix.target &lt;/span&gt;&lt;span class=&quot;k&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;}/release/excalc-mcp&quot;&lt;/span&gt; README.md CHANGELOG.md LICENSE &lt;span class=&quot;s2&quot;&gt;&quot;target/release-archives/&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;${&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;/&quot;&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;tar&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;-C&lt;/span&gt; target/release-archives &lt;span class=&quot;nt&quot;&gt;-czf&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;target/release-archives/&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;${&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;.tar.gz&quot;&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;${&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;cd &lt;/span&gt;target/release-archives
shasum &lt;span class=&quot;nt&quot;&gt;-a&lt;/span&gt; 256 &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;${&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;.tar.gz&quot;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;${&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;.tar.gz.sha256&quot;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Upload the archive and checksum to the existing release.&lt;/p&gt;

&lt;div class=&quot;language-yaml highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;pi&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;Upload archive&lt;/span&gt;
  &lt;span class=&quot;na&quot;&gt;env&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
    &lt;span class=&quot;na&quot;&gt;GH_TOKEN&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;${{ github.token }}&lt;/span&gt;
  &lt;span class=&quot;na&quot;&gt;run&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;gh release upload &quot;$RELEASE_TAG&quot; target/release-archives/*.tar.gz target/release-archives/*.sha256 --clobber&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The resulting portable archive contains the three user-facing binaries and the documentation files. The Windows-only MSI setup helper remains in the MSI and is not included in the ZIP.&lt;/p&gt;

&lt;p&gt;The excalc macOS binaries are not signed or notarized, so Gatekeeper rejects them after download. After verifying the archive’s SHA-256 checksum, remove the quarantine attribute from each extracted binary before running it:&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;xattr &lt;span class=&quot;nt&quot;&gt;-d&lt;/span&gt; com.apple.quarantine ./calc
xattr &lt;span class=&quot;nt&quot;&gt;-d&lt;/span&gt; com.apple.quarantine ./excalc
xattr &lt;span class=&quot;nt&quot;&gt;-d&lt;/span&gt; com.apple.quarantine ./excalc-mcp
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This is not a substitute for signing, just a temporary distribution limitation. A production-quality macOS archive should sign every executable with a Developer ID Application certificate and submit the archive to Apple’s notarization service in CI. Maybe some day.&lt;/p&gt;

&lt;h2 id=&quot;build-a-windows-msi&quot;&gt;Build a Windows MSI&lt;/h2&gt;

&lt;p&gt;Install &lt;a href=&quot;https://github.com/volks73/cargo-wix&quot;&gt;cargo-wix&lt;/a&gt; and initialize an installer.&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;cargo &lt;span class=&quot;nb&quot;&gt;install &lt;/span&gt;cargo-wix &lt;span class=&quot;nt&quot;&gt;--version&lt;/span&gt; 0.3.9 &lt;span class=&quot;nt&quot;&gt;--locked&lt;/span&gt;
cargo wix init
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This creates &lt;a href=&quot;https://github.com/dblock/excalc-rs/blob/master/wix/main.wxs&quot;&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;wix/main.wxs&lt;/code&gt;&lt;/a&gt;. Edit it to set the product name, manufacturer, description, installation directory, and binaries. Keep &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;UpgradeCode&lt;/code&gt; stable across releases so Windows knows that a newer MSI upgrades the installed application.&lt;/p&gt;

&lt;p&gt;The excalc installer includes &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;excalc.exe&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;calc.exe&lt;/code&gt;, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;excalc-mcp.exe&lt;/code&gt;.&lt;/p&gt;

&lt;div class=&quot;language-xml highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nt&quot;&gt;&amp;lt;Component&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;Id=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&apos;ExcalcBinary&apos;&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;Guid=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&apos;*&apos;&lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;&amp;gt;&lt;/span&gt;
    &lt;span class=&quot;nt&quot;&gt;&amp;lt;File&lt;/span&gt;
        &lt;span class=&quot;na&quot;&gt;Id=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&apos;ExcalcExe&apos;&lt;/span&gt;
        &lt;span class=&quot;na&quot;&gt;Name=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&apos;excalc.exe&apos;&lt;/span&gt;
        &lt;span class=&quot;na&quot;&gt;DiskId=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&apos;1&apos;&lt;/span&gt;
        &lt;span class=&quot;na&quot;&gt;Source=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&apos;$(var.CargoTargetBinDir)\excalc.exe&apos;&lt;/span&gt;
        &lt;span class=&quot;na&quot;&gt;KeyPath=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&apos;yes&apos;&lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;/&amp;gt;&lt;/span&gt;
&lt;span class=&quot;nt&quot;&gt;&amp;lt;/Component&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Build the MSI locally on Windows.&lt;/p&gt;

&lt;div class=&quot;language-powershell highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;cargo&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;wix&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;--nocapture&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The installer will appear under &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;target/wix/&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Build it in CI on every push and pull request so installer problems are found before a release.&lt;/p&gt;

&lt;div class=&quot;language-yaml highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;na&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;MSI&lt;/span&gt;

&lt;span class=&quot;na&quot;&gt;on&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
  &lt;span class=&quot;na&quot;&gt;push&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
    &lt;span class=&quot;na&quot;&gt;branches&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;pi&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;master&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;]&lt;/span&gt;
  &lt;span class=&quot;na&quot;&gt;pull_request&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;

&lt;span class=&quot;na&quot;&gt;jobs&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
  &lt;span class=&quot;na&quot;&gt;msi&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
    &lt;span class=&quot;na&quot;&gt;runs-on&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;windows-latest&lt;/span&gt;
    &lt;span class=&quot;na&quot;&gt;steps&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
      &lt;span class=&quot;pi&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;uses&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;actions/checkout@v4&lt;/span&gt;
      &lt;span class=&quot;pi&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;uses&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;dtolnay/rust-toolchain@stable&lt;/span&gt;
      &lt;span class=&quot;pi&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;uses&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;Swatinem/rust-cache@v2&lt;/span&gt;
      &lt;span class=&quot;pi&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;Cache cargo-wix&lt;/span&gt;
        &lt;span class=&quot;na&quot;&gt;id&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;cache-cargo-wix&lt;/span&gt;
        &lt;span class=&quot;na&quot;&gt;uses&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;actions/cache@v4&lt;/span&gt;
        &lt;span class=&quot;na&quot;&gt;with&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
          &lt;span class=&quot;na&quot;&gt;path&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;~/.cargo/bin/cargo-wix.exe&lt;/span&gt;
          &lt;span class=&quot;na&quot;&gt;key&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;cargo-wix-0.3.9-${{ runner.os }}&lt;/span&gt;
      &lt;span class=&quot;pi&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;Install cargo-wix&lt;/span&gt;
        &lt;span class=&quot;na&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;steps.cache-cargo-wix.outputs.cache-hit != &apos;true&apos;&lt;/span&gt;
        &lt;span class=&quot;na&quot;&gt;run&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;cargo install cargo-wix --version 0.3.9 --locked&lt;/span&gt;
      &lt;span class=&quot;pi&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;Build MSI&lt;/span&gt;
        &lt;span class=&quot;na&quot;&gt;run&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;cargo wix --nocapture&lt;/span&gt;
      &lt;span class=&quot;pi&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;uses&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;actions/upload-artifact@v4&lt;/span&gt;
        &lt;span class=&quot;na&quot;&gt;with&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
          &lt;span class=&quot;na&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;excalc-msi&lt;/span&gt;
          &lt;span class=&quot;na&quot;&gt;path&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;target/wix/*.msi&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Add another job to &lt;a href=&quot;https://github.com/dblock/excalc-rs/blob/master/.github/workflows/release.yml&quot;&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;release.yml&lt;/code&gt;&lt;/a&gt; to build the MSI from the release tag and attach it to the GitHub release.&lt;/p&gt;

&lt;div class=&quot;language-yaml highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;na&quot;&gt;msi&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
  &lt;span class=&quot;na&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;Attach MSI installer to release&lt;/span&gt;
  &lt;span class=&quot;na&quot;&gt;runs-on&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;windows-latest&lt;/span&gt;
  &lt;span class=&quot;na&quot;&gt;permissions&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
    &lt;span class=&quot;na&quot;&gt;contents&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;write&lt;/span&gt;
  &lt;span class=&quot;na&quot;&gt;steps&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
    &lt;span class=&quot;pi&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;uses&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;actions/checkout@v4&lt;/span&gt;
      &lt;span class=&quot;na&quot;&gt;with&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
        &lt;span class=&quot;na&quot;&gt;ref&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;${{ env.RELEASE_TAG }}&lt;/span&gt;
    &lt;span class=&quot;pi&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;uses&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;dtolnay/rust-toolchain@stable&lt;/span&gt;
    &lt;span class=&quot;pi&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;uses&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;Swatinem/rust-cache@v2&lt;/span&gt;
    &lt;span class=&quot;pi&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;Cache cargo-wix&lt;/span&gt;
      &lt;span class=&quot;na&quot;&gt;id&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;cache-cargo-wix&lt;/span&gt;
      &lt;span class=&quot;na&quot;&gt;uses&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;actions/cache@v4&lt;/span&gt;
      &lt;span class=&quot;na&quot;&gt;with&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
        &lt;span class=&quot;na&quot;&gt;path&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;~/.cargo/bin/cargo-wix.exe&lt;/span&gt;
        &lt;span class=&quot;na&quot;&gt;key&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;cargo-wix-0.3.9-${{ runner.os }}&lt;/span&gt;
    &lt;span class=&quot;pi&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;Install cargo-wix&lt;/span&gt;
      &lt;span class=&quot;na&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;steps.cache-cargo-wix.outputs.cache-hit != &apos;true&apos;&lt;/span&gt;
      &lt;span class=&quot;na&quot;&gt;run&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;cargo install cargo-wix --version 0.3.9 --locked&lt;/span&gt;
    &lt;span class=&quot;pi&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;Build MSI&lt;/span&gt;
      &lt;span class=&quot;na&quot;&gt;run&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;cargo wix --nocapture&lt;/span&gt;
    &lt;span class=&quot;pi&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;Upload MSI&lt;/span&gt;
      &lt;span class=&quot;na&quot;&gt;env&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
        &lt;span class=&quot;na&quot;&gt;GH_TOKEN&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;${{ github.token }}&lt;/span&gt;
      &lt;span class=&quot;na&quot;&gt;run&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;gh release upload &quot;$env:RELEASE_TAG&quot; target/wix/*.msi --clobber&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;contents: write&lt;/code&gt; permission is required to upload a release asset. Cache the compiled &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;cargo-wix.exe&lt;/code&gt;; installing cargo-wix from source took approximately 75 seconds in excalc’s first CI run.&lt;/p&gt;

&lt;h2 id=&quot;add-a-homebrew-formula&quot;&gt;Add a Homebrew Formula&lt;/h2&gt;

&lt;p&gt;Create &lt;a href=&quot;https://github.com/dblock/excalc-rs/blob/master/Formula/excalc.rb&quot;&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Formula/excalc.rb&lt;/code&gt;&lt;/a&gt; in the same repository.&lt;/p&gt;

&lt;div class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;k&quot;&gt;class&lt;/span&gt; &lt;span class=&quot;nc&quot;&gt;Excalc&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;no&quot;&gt;Formula&lt;/span&gt;
  &lt;span class=&quot;n&quot;&gt;desc&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;Expression calculator CLI tool and MCP server for AI coding agents&apos;&lt;/span&gt;
  &lt;span class=&quot;n&quot;&gt;homepage&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;https://github.com/dblock/excalc-rs&apos;&lt;/span&gt;
  &lt;span class=&quot;n&quot;&gt;url&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;https://github.com/dblock/excalc-rs/archive/refs/tags/v0.3.0.tar.gz&apos;&lt;/span&gt;
  &lt;span class=&quot;n&quot;&gt;sha256&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;f2258c802947d6f55043c364f7c587541389ae10a68968af2c68f1d84258622f&apos;&lt;/span&gt;
  &lt;span class=&quot;n&quot;&gt;license&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;MIT&apos;&lt;/span&gt;
  &lt;span class=&quot;n&quot;&gt;head&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;https://github.com/dblock/excalc-rs.git&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;ss&quot;&gt;branch: &lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&apos;master&apos;&lt;/span&gt;

  &lt;span class=&quot;n&quot;&gt;depends_on&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;rust&apos;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span class=&quot;ss&quot;&gt;:build&lt;/span&gt;

  &lt;span class=&quot;k&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;install&lt;/span&gt;
    &lt;span class=&quot;nb&quot;&gt;system&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;cargo&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;install&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;std_cargo_args&lt;/span&gt;
  &lt;span class=&quot;k&quot;&gt;end&lt;/span&gt;

  &lt;span class=&quot;nb&quot;&gt;test&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;do&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;assert_equal&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;4&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;shell_output&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;#{&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;bin&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;/excalc &apos;2 + 2&apos;&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;).&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;strip&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;assert_equal&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;4&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;shell_output&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;#{&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;bin&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;/calc &apos;2 + 2&apos;&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;).&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;strip&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;assert_path_exists&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;bin&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;/&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;excalc-mcp&apos;&lt;/span&gt;
  &lt;span class=&quot;k&quot;&gt;end&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;end&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This formula builds the tagged source with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;cargo install&lt;/code&gt;. The tests verify all three installed binaries, not just the primary command.&lt;/p&gt;

&lt;p&gt;After creating a release tag, its archive URL and checksum must be updated in the formula. Automate this in the release workflow rather than doing it by hand.&lt;/p&gt;

&lt;p&gt;Wait until crates.io publishing, portable archives, and the MSI have all succeeded. Then check out &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;master&lt;/code&gt;, download the tagged source archive, compute its SHA-256, replace the formula’s URL and checksum, and validate the formula before committing it.&lt;/p&gt;

&lt;p&gt;The &lt;a href=&quot;https://github.com/dblock/excalc-rs/blob/master/.github/workflows/release.yml&quot;&gt;complete release workflow&lt;/a&gt; contains the checkout, checksum replacement, validation, and commit steps. Its Homebrew job depends on successful publishing and artifact jobs, and uses &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;contents: write&lt;/code&gt; with the built-in &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;GITHUB_TOKEN&lt;/code&gt;; no additional credential is required. Commits made with that token do not trigger another set of workflows, so audit, install, and test the formula before pushing. A concurrency group prevents two releases from updating the formula simultaneously.&lt;/p&gt;

&lt;p&gt;Also validate the formula on ordinary changes in &lt;a href=&quot;https://github.com/dblock/excalc-rs/blob/master/.github/workflows/homebrew.yml&quot;&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;.github/workflows/homebrew.yml&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Users install from the repository-backed tap with:&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;brew tap dblock/excalc-rs https://github.com/dblock/excalc-rs
brew trust &lt;span class=&quot;nt&quot;&gt;--formula&lt;/span&gt; dblock/excalc-rs/excalc
brew &lt;span class=&quot;nb&quot;&gt;install &lt;/span&gt;excalc
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Homebrew 6 requires users to trust third-party taps or individual formulae. Include the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;brew trust&lt;/code&gt; command in your installation instructions.&lt;/p&gt;

&lt;h2 id=&quot;submit-the-msi-to-winget&quot;&gt;Submit the MSI to WinGet&lt;/h2&gt;

&lt;p&gt;WinGet needs a stable installer URL, so publish the GitHub release and wait for the MSI workflow to attach the asset first.&lt;/p&gt;

&lt;p&gt;For excalc &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;0.3.0&lt;/code&gt;, the installer URL is:&lt;/p&gt;

&lt;div class=&quot;language-text highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;https://github.com/dblock/excalc-rs/releases/download/v0.3.0/excalc-0.3.0-x86_64.msi
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Install Microsoft’s &lt;a href=&quot;https://github.com/microsoft/winget-create&quot;&gt;WinGetCreate&lt;/a&gt; tool on Windows.&lt;/p&gt;

&lt;div class=&quot;language-powershell highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;winget&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;install&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;Microsoft.WingetCreate&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Create the initial manifests from the MSI URL.&lt;/p&gt;

&lt;div class=&quot;language-powershell highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;wingetcreate&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;new&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;https://github.com/dblock/excalc-rs/releases/download/v0.3.0/excalc-0.3.0-x86_64.msi&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;WinGetCreate prompts for package metadata and can submit a pull request to &lt;a href=&quot;https://github.com/microsoft/winget-pkgs&quot;&gt;microsoft/winget-pkgs&lt;/a&gt;. The resulting package consists of version, installer, and locale manifests. Our accepted manifests were ultimately generated with &lt;a href=&quot;https://github.com/russellbanks/Komac&quot;&gt;Komac&lt;/a&gt;. An excerpt from the accepted installer manifest:&lt;/p&gt;

&lt;div class=&quot;language-yaml highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;na&quot;&gt;PackageIdentifier&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;Vestris.Excalc&lt;/span&gt;
&lt;span class=&quot;na&quot;&gt;PackageVersion&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;0.3.0&lt;/span&gt;
&lt;span class=&quot;na&quot;&gt;InstallerType&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;wix&lt;/span&gt;
&lt;span class=&quot;na&quot;&gt;Scope&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;machine&lt;/span&gt;
&lt;span class=&quot;na&quot;&gt;UpgradeBehavior&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;install&lt;/span&gt;
&lt;span class=&quot;na&quot;&gt;Commands&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
  &lt;span class=&quot;pi&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;calc&lt;/span&gt;
  &lt;span class=&quot;pi&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;excalc&lt;/span&gt;
  &lt;span class=&quot;pi&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;excalc-mcp&lt;/span&gt;
&lt;span class=&quot;na&quot;&gt;Installers&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
  &lt;span class=&quot;pi&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;Architecture&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;x64&lt;/span&gt;
    &lt;span class=&quot;na&quot;&gt;InstallerUrl&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;https://github.com/dblock/excalc-rs/releases/download/v0.3.0/excalc-0.3.0-x86_64.msi&lt;/span&gt;
    &lt;span class=&quot;na&quot;&gt;InstallerSha256&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;61D8E7538EADA6D1A4FA1B65C23F27EABD4588471D0EAD6A9FBB9A5BD79B47DD&lt;/span&gt;
&lt;span class=&quot;na&quot;&gt;ManifestType&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;installer&lt;/span&gt;
&lt;span class=&quot;na&quot;&gt;ManifestVersion&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;1.28.0&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Local manifest installation requires &lt;a href=&quot;https://learn.microsoft.com/en-us/windows/package-manager/winget/install#local-manifests&quot;&gt;local manifests to be enabled&lt;/a&gt;. Then, validate and test the complete manifest directory:&lt;/p&gt;

&lt;div class=&quot;language-powershell highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;winget&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;settings&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;--enable&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;LocalManifestFiles&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;winget&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;validate&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;--manifest&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;manifests/v/Vestris/Excalc/0.3.0&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;winget&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;install&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;--manifest&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;manifests/v/Vestris/Excalc/0.3.0&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The initial submission, &lt;a href=&quot;https://github.com/microsoft/winget-pkgs/pull/441253&quot;&gt;microsoft/winget-pkgs#441253&lt;/a&gt;, took 39 days to work its way through the human review queue and needed fixes on my side. The submission also required Microsoft’s Contributor License Agreement and moderator approval.&lt;/p&gt;

&lt;p&gt;After the publish pipeline succeeded, I verified installation in Windows PowerShell:&lt;/p&gt;

&lt;div class=&quot;language-powershell highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;winget&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;install&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;--id&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;Vestris.Excalc&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;--exact&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;WinGet found &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;0.3.0&lt;/code&gt;, downloaded the MSI, verified its hash, and installed it successfully. Open a new terminal to pick up the updated &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;PATH&lt;/code&gt;, then:&lt;/p&gt;

&lt;div class=&quot;language-powershell highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;excalc&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;c&quot;&gt;# 4&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;For a subsequent version, generate an update using that version’s MSI URL. For example, if the next release is &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;0.4.0&lt;/code&gt;:&lt;/p&gt;

&lt;div class=&quot;language-powershell highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;wingetcreate&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;update&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;Vestris.Excalc&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;--version&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;0.4.0&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nt&quot;&gt;--urls&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;https://github.com/dblock/excalc-rs/releases/download/v0.4.0/excalc-0.4.0-x86_64.msi&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;That command prepares an update; review and submit the generated manifests. WinGet updates are pull requests to Microsoft’s repository, so this channel is asynchronous.&lt;/p&gt;

&lt;h2 id=&quot;automate-winget-updates&quot;&gt;Automate WinGet Updates&lt;/h2&gt;

&lt;p&gt;I &lt;a href=&quot;https://github.com/dblock/excalc-rs/blob/master/.github/workflows/release.yml&quot;&gt;added WinGet submission to the release workflow&lt;/a&gt; using &lt;a href=&quot;https://github.com/vedantmgoyal9/winget-releaser&quot;&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;WinGet Releaser&lt;/code&gt;&lt;/a&gt;, which runs Komac under the hood. At least one version must already be accepted in &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;microsoft/winget-pkgs&lt;/code&gt;; the action uses that package as the base for subsequent manifests.&lt;/p&gt;

&lt;p&gt;The job waits for successful crate publishing, portable archives, and MSI upload. It runs only for stable published releases, not pre-release versions or manual artifact rebuilds. The submission step selects only the x64 MSI, not the portable ZIP or checksum files:&lt;/p&gt;

&lt;div class=&quot;language-yaml highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;pi&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;na&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;Submit manifest pull request&lt;/span&gt;
  &lt;span class=&quot;na&quot;&gt;id&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;winget&lt;/span&gt;
  &lt;span class=&quot;na&quot;&gt;uses&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;vedantmgoyal9/winget-releaser@b7370d4d152efdce803a26cc6ca9eee58cb2ad54&lt;/span&gt;
  &lt;span class=&quot;na&quot;&gt;with&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
    &lt;span class=&quot;na&quot;&gt;identifier&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;Vestris.Excalc&lt;/span&gt;
    &lt;span class=&quot;na&quot;&gt;installers-regex&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;^excalc-[0-9]+\.[0-9]+\.[0-9]+-x86_64\.msi$&apos;&lt;/span&gt;
    &lt;span class=&quot;na&quot;&gt;release-tag&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;${{ env.RELEASE_TAG }}&lt;/span&gt;
    &lt;span class=&quot;na&quot;&gt;token&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;${{ secrets.WINGET_TOKEN }}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The &lt;a href=&quot;https://github.com/dblock/excalc-rs/blob/master/.github/workflows/release.yml&quot;&gt;full release workflow&lt;/a&gt; includes the dependency checks, a concurrency group, an explicit failure when the token is missing, and a job summary linking to the submitted PR. It keeps previous package versions.&lt;/p&gt;

&lt;p&gt;Unlike the Homebrew update in the same repository, this needs a &lt;a href=&quot;https://github.com/settings/tokens/new?description=ExCalc%20WinGet&amp;amp;scopes=public_repo,workflow&quot;&gt;cross-repository credential with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;public_repo&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;workflow&lt;/code&gt; scopes&lt;/a&gt; to push to a separate &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;winget-pkgs&lt;/code&gt; fork and open Microsoft’s upstream PR. I created the token and stored it with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;gh secret set WINGET_TOKEN --repo dblock/excalc-rs&lt;/code&gt;.&lt;/p&gt;

&lt;h2 id=&quot;cut-a-release&quot;&gt;Cut a Release&lt;/h2&gt;

&lt;p&gt;Even with all the automation I keep a written release checklist. The excalc version lives in &lt;a href=&quot;https://github.com/dblock/excalc-rs/blob/master/RELEASING.md&quot;&gt;RELEASING.md&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;For every release:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;Move the contents of &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;[Unreleased]&lt;/code&gt; in &lt;a href=&quot;https://github.com/dblock/excalc-rs/blob/master/CHANGELOG.md&quot;&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;CHANGELOG.md&lt;/code&gt;&lt;/a&gt; under the new version and date.&lt;/li&gt;
  &lt;li&gt;Update the version in &lt;a href=&quot;https://github.com/dblock/excalc-rs/blob/master/Cargo.toml&quot;&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Cargo.toml&lt;/code&gt;&lt;/a&gt;.&lt;/li&gt;
  &lt;li&gt;Run &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;cargo build&lt;/code&gt; to regenerate &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Cargo.lock&lt;/code&gt;.&lt;/li&gt;
  &lt;li&gt;Run formatting, linting, tests, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;cargo publish --dry-run&lt;/code&gt;.&lt;/li&gt;
  &lt;li&gt;Commit and push, then wait for CI before tagging the release commit.&lt;/li&gt;
&lt;/ol&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;git add Cargo.toml Cargo.lock CHANGELOG.md
git commit &lt;span class=&quot;nt&quot;&gt;-m&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;Release v0.3.0&quot;&lt;/span&gt;
git push origin master
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Once CI passes, tag that exact commit:&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;git tag &lt;span class=&quot;nt&quot;&gt;-a&lt;/span&gt; v0.3.0 &lt;span class=&quot;nt&quot;&gt;-m&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;v0.3.0&quot;&lt;/span&gt;
git push origin v0.3.0
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Create the GitHub release.&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;gh release create v0.3.0 &lt;span class=&quot;nt&quot;&gt;--title&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;v0.3.0&quot;&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;--notes-from-tag&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Wait for the release workflow to publish the crate and attach the portable archives, checksums, and MSI. Confirm it updated, tested, committed, and pushed the Homebrew formula with the new tag and checksum. Follow the automatically submitted WinGet PR through Microsoft’s publish pipeline, then verify every channel.&lt;/p&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;cargo search excalc &lt;span class=&quot;nt&quot;&gt;--limit&lt;/span&gt; 1
gh release view v0.3.0
brew update
brew upgrade dblock/excalc-rs/excalc
winget show Vestris.Excalc
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The Git tag is the invariant. Cargo publishes it, the MSI is built from it, Homebrew downloads it, and WinGet points at an artifact attached to it.&lt;/p&gt;

&lt;p&gt;Do this once, put every validation step in CI, and write down the remaining manual steps. With most steps automated Copilot does a great job making my releases for me, I just tell it “release 0.3.0”.&lt;/p&gt;

  &lt;p&gt;&lt;a href=&quot;https://code.dblock.org/2026/11/04/distributing-a-rust-app-everywhere.html&quot;&gt;How to Distribute a Rust App with Cargo, Homebrew, MSI, and WinGet&lt;/a&gt; was originally published by Daniel Doubrovkine at &lt;a href=&quot;https://code.dblock.org&quot;&gt;code.dblock.org | tech blog&lt;/a&gt; on November 04, 2026.&lt;/p&gt;</content>
</entry>


<entry>
  <title type="html"><![CDATA[Introducing Svet: A Git Repository Linter]]></title>
 <link rel="alternate" type="text/html" href="https://code.dblock.org/2026/10/31/introducing-svet-a-git-repository-linter.html" />
  <id>https://code.dblock.org/2026/10/31/introducing-svet-a-git-repository-linter</id>
  <published>2026-10-31T00:00:00+00:00</published>
  <updated>2026-10-31T00:00:00+00:00</updated>
  <author>
    <name>Daniel Doubrovkine</name>
    <uri>https://code.dblock.org</uri>
    <email>dblock@dblock.org</email>
  </author>
  <content type="html">&lt;p&gt;The idea for &lt;a href=&quot;https://github.com/dblock/svet&quot;&gt;Svet&lt;/a&gt; came from a private repository at work, where checking filename case helps catch portability problems like &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Logo.svg&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;logo.svg&lt;/code&gt; colliding on a case-insensitive Windows filesystem. These checks are implemented in pure JavaScript. That seemed like a useful job for a reusable repository linter.&lt;/p&gt;

&lt;p&gt;I went looking for an existing tool.&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th&gt;Tool&lt;/th&gt;
      &lt;th&gt;Why it isn’t enough here&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;a href=&quot;https://eslint.org/docs/latest/use/configure/configuration-files&quot;&gt;ESLint&lt;/a&gt;&lt;/td&gt;
      &lt;td&gt;Can check filenames with a processor; byte-level checks and Git snapshots need custom plumbing.&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;a href=&quot;https://oxc.rs/docs/guide/usage/linter/js-plugins.html&quot;&gt;Oxlint&lt;/a&gt;&lt;/td&gt;
      &lt;td&gt;Arbitrary non-JS/TS files don’t reach its lint rules.&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;a href=&quot;https://biomejs.dev/reference/configuration/&quot;&gt;Biome&lt;/a&gt;&lt;/td&gt;
      &lt;td&gt;Checks supported languages, not arbitrary repository files.&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;a href=&quot;https://stylelint.io/user-guide/configure/&quot;&gt;Stylelint&lt;/a&gt;&lt;/td&gt;
      &lt;td&gt;Built for stylesheet rules; repository-wide checks need custom code.&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;a href=&quot;https://github.com/DavidAnson/markdownlint-cli2#command-line&quot;&gt;markdownlint-cli2&lt;/a&gt;&lt;/td&gt;
      &lt;td&gt;Can check filenames, but Markdown parsing isn’t a byte-level checking API.&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;a href=&quot;https://html-validate.org/usage/index.html&quot;&gt;HTML-validate&lt;/a&gt;&lt;/td&gt;
      &lt;td&gt;Requires HTML or template transformations, not a general file-checking API.&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;a href=&quot;https://prettier.io/docs/cli#file-patterns&quot;&gt;Prettier&lt;/a&gt;&lt;/td&gt;
      &lt;td&gt;Skips or rejects unsupported formats; doesn’t check repository-wide path rules.&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;a href=&quot;https://github.com/lint-staged/lint-staged#--all&quot;&gt;lint-staged&lt;/a&gt;&lt;/td&gt;
      &lt;td&gt;Can run the checks, but doesn’t supply rules or Git-index snapshots itself.&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;Prettier is a formatter, and lint-staged is a task runner. They’re in this list because they also appear in development and CI workflows.&lt;/p&gt;

&lt;p&gt;The important distinction is selecting a path, checking its name, understanding its contents, and choosing which version of those contents to inspect. Those are four different things.&lt;/p&gt;

&lt;p&gt;I built &lt;a href=&quot;https://github.com/dblock/svet&quot;&gt;Svet&lt;/a&gt; for that job.&lt;/p&gt;

&lt;p&gt;Then I doubted myself and took a detour extending ESLint with &lt;a href=&quot;https://github.com/dblock/eslint-plugin-portable-paths&quot;&gt;eslint-plugin-portable-paths&lt;/a&gt;. It checks four portability problems: case-insensitive file and directory collisions, Unicode-normalization collisions, Windows-invalid names such as &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;NUL.txt&lt;/code&gt;, and paths or individual names exceeding configurable lengths. It’s almost everything. The remaining limitations of the eslint approach are about which files and bytes we’re checking. This plugin sees the current filesystem, including untracked paths, and is not Git-aware, so a pre-commit hook would check the working tree, not the staged snapshot. ESLint already checks line endings and trailing whitespace in source files, but doesn’t supply raw-byte snapshots of arbitrary Git files. ESLint’s native fixes edit source text and cannot update filesystem names, preventing us from implementing &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;--fix&lt;/code&gt; for file paths.&lt;/p&gt;

&lt;p&gt;Svet is built different. First, it separates file selection from checking. A selector supplies paths, captured contents, metadata, and any capabilities it supports. Checks declare what they need. The runner loads the configured plugins, preserves selection context, and reports findings, skips, unavailable inputs, and failures. There is no JavaScript parser between a selected file and a line-ending check. The default Git selector uses a text heuristic. Empty files, dotfiles, and files without extensions can all participate. Binary files remain in the Git provider’s full path inventory, which is what the filename and collision checks consume.&lt;/p&gt;

&lt;p&gt;Try it.&lt;/p&gt;

&lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;npm &lt;span class=&quot;nb&quot;&gt;install&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;--save-dev&lt;/span&gt; svet-cli@0.1.0
npx &lt;span class=&quot;nt&quot;&gt;--no-install&lt;/span&gt; svet
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;No configuration is required. The default selects Git-tracked text and checks its working-tree contents for LF line endings. Add new files to Git before expecting that default to check them.&lt;/p&gt;

&lt;p&gt;The plugins are separate npm packages. To add trailing-whitespace and path checks:&lt;/p&gt;

&lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;npm &lt;span class=&quot;nb&quot;&gt;install&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;--save-dev&lt;/span&gt; svet-check-file-trailing-whitespace@0.1.0 svet-check-path-case@0.1.0 svet-check-path-case-collision@0.1.0
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Create &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;svet.config.mjs&lt;/code&gt;:&lt;/p&gt;

&lt;div class=&quot;language-js highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;k&quot;&gt;export&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;default&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;na&quot;&gt;files&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;@svet-files-git&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;
  &lt;span class=&quot;na&quot;&gt;checks&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;
    &lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;@svet-check-file-eol&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;
    &lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;@svet-check-file-trailing-whitespace&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;
    &lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;@svet-check-path-case&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;
    &lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;@svet-check-path-case-collision&lt;/span&gt;&lt;span class=&quot;dl&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;
  &lt;span class=&quot;p&quot;&gt;],&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;};&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;In my test repository, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;README&lt;/code&gt; contained CRLF and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;sample.data&lt;/code&gt; had a trailing space. This is an excerpt of the actual output:&lt;/p&gt;

&lt;div class=&quot;language-text highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;README:1: error [file/eol/eol]: Selected text contains CRLF line endings; expected LF. Convert the intended source to LF and run the check again.
sample.data:1: error [file/trailing-whitespace/trailing-whitespace]: Selected text contains trailing whitespace. Remove it from the intended source and run the check again.
README: error [path/case/case]: Filename must be lowercase.
Wrong.webp: error [path/case/case]: Filename must be lowercase.
Selected 4; checked 4; findings 4; skipped 0; failed 0; unavailable 0.
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Checking a working-tree file isn’t the same as checking a commit.&lt;/p&gt;

&lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;npx &lt;span class=&quot;nt&quot;&gt;--no-install&lt;/span&gt; svet &lt;span class=&quot;nt&quot;&gt;--precommit&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This selects staged/index snapshots without staging, stashing, or fixing anything, which helps shift linting left. The Git provider can also compare explicit local revisions using target-commit contents. It doesn’t fetch a branch or substitute working-tree bytes for a missing snapshot.&lt;/p&gt;

&lt;p&gt;Svet won’t replace ESLint, Oxlint, or your formatter. It’s a new tool that could host the rules that belong to the repository and its files, rather than one source-language parser. Let’s see if anyone finds it useful.&lt;/p&gt;

  &lt;p&gt;&lt;a href=&quot;https://code.dblock.org/2026/10/31/introducing-svet-a-git-repository-linter.html&quot;&gt;Introducing Svet: A Git Repository Linter&lt;/a&gt; was originally published by Daniel Doubrovkine at &lt;a href=&quot;https://code.dblock.org&quot;&gt;code.dblock.org | tech blog&lt;/a&gt; on October 31, 2026.&lt;/p&gt;</content>
</entry>


<entry>
  <title type="html"><![CDATA[The Matter of Taste]]></title>
 <link rel="alternate" type="text/html" href="https://code.dblock.org/2026/10/30/the-matter-of-taste.html" />
  <id>https://code.dblock.org/2026/10/30/the-matter-of-taste</id>
  <published>2026-10-30T00:00:00+00:00</published>
  <updated>2026-10-30T00:00:00+00:00</updated>
  <author>
    <name>Daniel Doubrovkine</name>
    <uri>https://code.dblock.org</uri>
    <email>dblock@dblock.org</email>
  </author>
  <content type="html">&lt;p&gt;While working on &lt;a href=&quot;https://github.com/dblock/svet&quot;&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Svet&lt;/code&gt;&lt;/a&gt;, a Git and filesystem linter, I had a conversation with GitHub Copilot CLI about a flag.&lt;/p&gt;

&lt;p&gt;The tool checks files. We were &lt;a href=&quot;https://github.com/dblock/svet/pull/27&quot;&gt;adding automatic fixes&lt;/a&gt;. Naturally, I wanted to preview changes before allowing the tool to write them.&lt;/p&gt;

&lt;p&gt;The first suggestion was &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;--fix-dry-run&lt;/code&gt;. I preferred a global &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;--dry-run&lt;/code&gt; that could apply to both checking and fixing.&lt;/p&gt;

&lt;p&gt;Simple enough. Except checking already doesn’t write anything. What should a dry run of a check do?&lt;/p&gt;

&lt;p&gt;One answer is that a dry run prohibits writes. Run all the checks, report the findings, and leave the files alone. With &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;--fix&lt;/code&gt;, calculate the fixes but don’t apply them. Without &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;--fix&lt;/code&gt;, the flag changes nothing.&lt;/p&gt;

&lt;p&gt;That’s a consistent definition. It also makes the flag redundant for the default operation.&lt;/p&gt;

&lt;p&gt;I wanted another definition: preview the operation I asked for.&lt;/p&gt;

&lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c&quot;&gt;# Check files.&lt;/span&gt;
svet

&lt;span class=&quot;c&quot;&gt;# Check files, fix what can be fixed, and check again.&lt;/span&gt;
svet &lt;span class=&quot;nt&quot;&gt;--fix&lt;/span&gt;

&lt;span class=&quot;c&quot;&gt;# Show which files and checks would be involved, without running checks.&lt;/span&gt;
svet &lt;span class=&quot;nt&quot;&gt;--dry-run&lt;/span&gt;

&lt;span class=&quot;c&quot;&gt;# Run checks and prepare fixes, without changing files.&lt;/span&gt;
svet &lt;span class=&quot;nt&quot;&gt;--fix&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;--dry-run&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;In the checking case, the preview stops before running checks. In the fixing case, it has to run checks to discover what needs fixing, then stops before writing.&lt;/p&gt;

&lt;p&gt;You could object that &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;--dry-run&lt;/code&gt; now does different things. You could also say it does the same thing: shows what the selected operation would do.&lt;/p&gt;

&lt;p&gt;Copilot suggested calling the checking preview &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;--plan&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;I don’t like to &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;--plan&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;I find the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;--plan&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;--fix&lt;/code&gt;, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;--fix-dry-run&lt;/code&gt; interface horrible, even though each flag names something specific. I don’t like to repeat myself and I am a human capable of calculating the 2x2 matrix of options in my head. I opt for a smaller vocabulary using my decades of experience making and using developer tools.&lt;/p&gt;

&lt;p&gt;AI can explain both designs and implement either one. It can point out that checking is already read-only, suggest another flag, and produce the tests. I still have to decide which interface I want to use and every such decision is the difference between an elegant solution and AI slop.&lt;/p&gt;

&lt;p&gt;Sometimes there is a concrete constraint that settles a design question. Sometimes there are two coherent choices, and elegance is how one of them feels to you.&lt;/p&gt;

&lt;p&gt;This choice isn’t obvious. It’s a matter of taste.&lt;/p&gt;

  &lt;p&gt;&lt;a href=&quot;https://code.dblock.org/2026/10/30/the-matter-of-taste.html&quot;&gt;The Matter of Taste&lt;/a&gt; was originally published by Daniel Doubrovkine at &lt;a href=&quot;https://code.dblock.org&quot;&gt;code.dblock.org | tech blog&lt;/a&gt; on October 30, 2026.&lt;/p&gt;</content>
</entry>


<entry>
  <title type="html"><![CDATA[One Tool for the (Spell Checking) Job]]></title>
 <link rel="alternate" type="text/html" href="https://code.dblock.org/2026/10/29/one-tool-for-the-spell-checking-job.html" />
  <id>https://code.dblock.org/2026/10/29/one-tool-for-the-spell-checking-job</id>
  <published>2026-10-29T00:00:00+00:00</published>
  <updated>2026-10-29T00:00:00+00:00</updated>
  <author>
    <name>Daniel Doubrovkine</name>
    <uri>https://code.dblock.org</uri>
    <email>dblock@dblock.org</email>
  </author>
  <content type="html">&lt;p&gt;I’ve built six spell-checking plugins in under three weeks. This is not an unhealthy interest in spelling. The cost of rolling tools out is the cost of tokens + my time supervising AI. So, before adding another language runtime, package manager, configuration file, and CI job to your project, consider spending an hour vibe coding the missing plugin.&lt;/p&gt;

&lt;p&gt;This blog used to run a Python spell checker that took more than three minutes. It’s a Jekyll blog, which is Ruby. Why was I maintaining a Python environment to tell me that I misspelled “hello”? I &lt;a href=&quot;/2026/10/21/introducing-rubocop-spellcheck.html&quot;&gt;replaced it with a RuboCop plugin&lt;/a&gt;. Spelling became another cop, with the same configuration, exclusions, command, and CI integration as the rest of the checks.&lt;/p&gt;

&lt;p&gt;A Rust project shouldn’t need my Ruby setup to check its comments. A JavaScript project that already runs Prettier shouldn’t need an additional Markdown linter just to check spelling.&lt;/p&gt;

&lt;p&gt;You can either keep assembling a Frankenstein collection of tools, roll out a custom script, or you can ask AI to build the missing feature.&lt;/p&gt;

&lt;p&gt;AI loves simplicity and consistent patterns. This approach pays forward.&lt;/p&gt;

&lt;p&gt;Here’s my recent zoo of spell-checking plugins.&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://github.com/dblock/rubocop-spellcheck&quot;&gt;rubocop-spellcheck&lt;/a&gt; adds spelling to RuboCop for Ruby comments, strings, identifiers, Markdown, RDoc, AsciiDoc, and plain text. This is a very capable plugin with support for dictionaries and auto-correct.&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://github.com/dblock/dylint-spellcheck&quot;&gt;dylint-spellcheck&lt;/a&gt; adds spelling to Dylint for Rust comments, Rustdoc attributes, Markdown, and plain text.&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://github.com/dblock/markdownlint-rule-spellcheck&quot;&gt;markdownlint-rule-spellcheck&lt;/a&gt; adds spelling to the Markdown linter you might already be running.&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://github.com/dblock/prettier-plugin-spellcheck&quot;&gt;prettier-plugin-spellcheck&lt;/a&gt; adds spelling to Prettier for Markdown, HTML, plain text, JavaScript and TypeScript prose.&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://github.com/dblock/oxlint-plugin-spellcheck&quot;&gt;@dblock/oxlint-plugin-spellcheck&lt;/a&gt; adds native spelling diagnostics to Oxlint for JavaScript and TypeScript comments, JSX text, and human-facing attributes, with opt-in strings and identifiers.&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://github.com/dblock/eslint-plugin-prose-spellcheck&quot;&gt;eslint-plugin-prose-spellcheck&lt;/a&gt; adds offline spelling checks to ESLint’s native Markdown support through &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;@eslint/markdown&lt;/code&gt;. It checks prose, headings, visible link labels, and image descriptions, using CSpell dictionaries and reviewed project vocabulary.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Everything builds on top of simple platforms. The Prettier version is a good example. Prettier already parses Markdown, HTML, JavaScript, and TypeScript. I used its syntax trees to distinguish prose from program structure instead of inventing another parser. Comments and visible text are reasonable things to spellcheck, too.&lt;/p&gt;

&lt;p&gt;Install the released plugin:&lt;/p&gt;

&lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;npm &lt;span class=&quot;nb&quot;&gt;install&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;--save-dev&lt;/span&gt; prettier prettier-plugin-spellcheck@0.1.0
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Run it without a Prettier configuration:&lt;/p&gt;

&lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nb&quot;&gt;printf&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;# helo\n&apos;&lt;/span&gt; | npx prettier &lt;span class=&quot;nt&quot;&gt;--plugin&lt;/span&gt; prettier-plugin-spellcheck &lt;span class=&quot;nt&quot;&gt;--no-config&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;--stdin-filepath&lt;/span&gt; example.md
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-text highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;[error] example.md: Spelling check failed.
[error] example.md:1:3 Misspelled word: &quot;helo&quot;. Suggestions: hello, helio, halo.
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;It’s just another plugin in your existing Prettier setup.&lt;/p&gt;

&lt;p&gt;A word of caution when working on new plugins. Initially, Copilot built &lt;a href=&quot;https://github.com/dblock/prettier-plugin-spellcheck&quot;&gt;prettier-plugin-spellcheck&lt;/a&gt; as a wrapper on top of &lt;a href=&quot;https://github.com/dblock/markdownlint-rule-spellcheck&quot;&gt;markdownlint-rule-spellcheck&lt;/a&gt;. Be careful out there.&lt;/p&gt;

  &lt;p&gt;&lt;a href=&quot;https://code.dblock.org/2026/10/29/one-tool-for-the-spell-checking-job.html&quot;&gt;One Tool for the (Spell Checking) Job&lt;/a&gt; was originally published by Daniel Doubrovkine at &lt;a href=&quot;https://code.dblock.org&quot;&gt;code.dblock.org | tech blog&lt;/a&gt; on October 29, 2026.&lt;/p&gt;</content>
</entry>


<entry>
  <title type="html"><![CDATA[I Am Just One Engineer Armed with AI]]></title>
 <link rel="alternate" type="text/html" href="https://code.dblock.org/2026/10/23/i-am-just-one-engineer-armed-with-ai.html" />
  <id>https://code.dblock.org/2026/10/23/i-am-just-one-engineer-armed-with-ai</id>
  <published>2026-10-23T00:00:00+00:00</published>
  <updated>2026-10-23T00:00:00+00:00</updated>
  <author>
    <name>Daniel Doubrovkine</name>
    <uri>https://code.dblock.org</uri>
    <email>dblock@dblock.org</email>
  </author>
  <content type="html">&lt;p&gt;I made 295 pull requests across 49 GitHub repos and did 30 project releases burning ~1.2 billion AI tokens in ten days. I am just one Engineer armed with AI. That is a lot of typing I did not do.&lt;/p&gt;

&lt;p&gt;I certainly did not read or write any code.&lt;/p&gt;

&lt;p&gt;This is a follow-up to &lt;a href=&quot;/2026/10/15/ai-wants-to-eat-your-project-backlog.html&quot;&gt;AI Wants to Eat Your Project Backlog&lt;/a&gt;, where I described working through old Mongoid issues on two bus rides. I kept going. The work expanded into new spelling tools in three languages, library features, CI maintenance, releases, and application upgrades.&lt;/p&gt;

&lt;p&gt;First, let’s count what actually happened. Then let’s talk about what these numbers mean, or don’t.&lt;/p&gt;

&lt;h2 id=&quot;the-numbers&quot;&gt;The Numbers&lt;/h2&gt;

&lt;p&gt;These are ten calendar dates, October 14 through October 23, 2026, with a cutoff of October 23 at 1:32 p.m. Eastern.&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th&gt;measure&lt;/th&gt;
      &lt;th style=&quot;text-align: right&quot;&gt;count&lt;/th&gt;
      &lt;th&gt;what it means&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td&gt;opened&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;295&lt;/td&gt;
      &lt;td&gt;authored by &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;dblock&lt;/code&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;repositories&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;49&lt;/td&gt;
      &lt;td&gt;includes forks&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;merged&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;257&lt;/td&gt;
      &lt;td&gt;of the 295 opened&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;still open&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;30&lt;/td&gt;
      &lt;td&gt;awaiting review or further work&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;closed unmerged&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;8&lt;/td&gt;
      &lt;td&gt;includes superseded work and approaches I abandoned&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;all prs merged&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;271&lt;/td&gt;
      &lt;td&gt;includes 14 older PRs&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;releases&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;30&lt;/td&gt;
      &lt;td&gt;across 22 repositories&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;issues opened&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;27&lt;/td&gt;
      &lt;td&gt;new work and follow-ups&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;The &lt;a href=&quot;/downloads/posts/2026-10-23-i-am-just-one-engineer-armed-with-ai/pull-requests.csv&quot;&gt;complete PR inventory&lt;/a&gt; includes every title, repository, URL, status, and category. The &lt;a href=&quot;/downloads/posts/2026-10-23-i-am-just-one-engineer-armed-with-ai/releases.csv&quot;&gt;release inventory&lt;/a&gt; includes all 30 release links. GitHub’s &lt;a href=&quot;https://github.com/search?q=author%3Adblock+is%3Apr+created%3A2026-10-14..2026-10-23&amp;amp;type=pullrequests&quot;&gt;authored PR search&lt;/a&gt; and &lt;a href=&quot;https://github.com/search?q=author%3Adblock+is%3Apr+is%3Amerged+merged%3A2026-10-14..2026-10-23&amp;amp;type=pullrequests&quot;&gt;merged PR search&lt;/a&gt; are useful receipts, although their results will keep changing.&lt;/p&gt;

&lt;h2 id=&quot;the-work&quot;&gt;The Work&lt;/h2&gt;

&lt;p&gt;I assigned every PR to one category based on its repository. This avoids counting a PR three times because it contains a bug fix, tests, and documentation.&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th&gt;category&lt;/th&gt;
      &lt;th style=&quot;text-align: right&quot;&gt;opened&lt;/th&gt;
      &lt;th style=&quot;text-align: right&quot;&gt;merged&lt;/th&gt;
      &lt;th style=&quot;text-align: right&quot;&gt;open&lt;/th&gt;
      &lt;th style=&quot;text-align: right&quot;&gt;abandoned&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td&gt;mongoid ecosystem&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;119&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;97&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;19&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;3&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;three new spelling tools&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;60&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;60&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;0&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;0&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;hashie&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;31&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;27&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;0&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;4&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;email libraries&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;26&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;26&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;0&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;0&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;danger and maintainer automation&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;19&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;17&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;2&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;0&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;upstream integrations, examples, and this blog&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;16&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;6&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;9&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;1&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;github issue action&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;13&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;13&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;0&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;0&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;bot application upgrades&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;11&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;11&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;0&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;0&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;strong&gt;total&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;&lt;strong&gt;295&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;&lt;strong&gt;257&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;&lt;strong&gt;30&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;&lt;strong&gt;8&lt;/strong&gt;&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;The work itself fell into several different kinds of engineering: new features, bug archaeology, regression coverage, compatibility testing, performance, API design, documentation, and the boring operational work required to ship. Here are some concrete examples.&lt;/p&gt;

&lt;h2 id=&quot;three-spelling-tools&quot;&gt;Three Spelling Tools&lt;/h2&gt;

&lt;p&gt;I’ve been wanting this one for a long time. When working in a Ruby project I don’t want some JavaScript or Python tool and vice-versa. I’m so tired of watching endless installs of the entire world of ecosystems and programming languages just to lint a file. So I built and released &lt;a href=&quot;https://github.com/dblock/rubocop-spellcheck&quot;&gt;rubocop-spellcheck&lt;/a&gt;, &lt;a href=&quot;https://github.com/dblock/dylint-spellcheck&quot;&gt;dylint-spellcheck&lt;/a&gt;, and &lt;a href=&quot;https://github.com/dblock/markdownlint-rule-spellcheck&quot;&gt;markdownlint-rule-spellcheck&lt;/a&gt; for Ruby, Rust and JavaScript respectively, totaling sixty PRs across the three projects.&lt;/p&gt;

&lt;p&gt;These share the same idea: spelling belongs in the lint workflow, with bundled English, explicit project vocabulary, and precise diagnostics.&lt;/p&gt;

&lt;p&gt;The Ruby and Rust implementations use Kotoshu. The JavaScript rule uses CSpell. Each has to respect its host’s parser, source positions, exclusions, and configuration. YAML front matter strings need different handling from keys or boolean values.&lt;/p&gt;

&lt;p&gt;Checking this blog’s 618 Markdown files went from over three minutes to 3.69 seconds. The &lt;a href=&quot;/2026/10/21/introducing-rubocop-spellcheck.html&quot;&gt;Ruby spelling post&lt;/a&gt; has the benchmark details.&lt;/p&gt;

&lt;p&gt;The &lt;a href=&quot;/2026/10/22/introducing-dylint-spellcheck.html&quot;&gt;Rust integration&lt;/a&gt; went into an actual application, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;excalc-rs&lt;/code&gt;. The &lt;a href=&quot;/2026/10/22/introducing-markdownlint-rule-spellcheck.html&quot;&gt;Markdown integration&lt;/a&gt; became an npm package, with &lt;a href=&quot;https://github.com/dblock/markdownlint-rule-spellcheck/releases/tag/v0.2.0&quot;&gt;0.2.0&lt;/a&gt; using the native front matter API in markdownlint instead of the original workaround.&lt;/p&gt;

&lt;p&gt;Building the 3rd JavaScript spellchecker was almost 1-shot, inspired by the first two and I spent most of my effort sweating the shape of the configuration to make the tools extensible and ready for a future onslaught of AI-generated features.&lt;/p&gt;

&lt;h2 id=&quot;features-and-releases&quot;&gt;Features and Releases&lt;/h2&gt;

&lt;p&gt;Hashie got &lt;a href=&quot;https://github.com/hashie/hashie/pull/636&quot;&gt;lazy property loading&lt;/a&gt;, &lt;a href=&quot;https://github.com/hashie/hashie/pull/620&quot;&gt;key transformation&lt;/a&gt;, &lt;a href=&quot;https://github.com/hashie/hashie/pull/618&quot;&gt;nested pattern searches&lt;/a&gt;, serialization fixes, and executable documentation. I published &lt;a href=&quot;https://github.com/hashie/hashie/releases/tag/v5.2.0&quot;&gt;5.2.0&lt;/a&gt;, then moved the breaking changes into the next major version, 6.0. Hashie is a very popular library, built by 137 contributors and used by 170K projects. AI ate the entire Hashie backlog in a day.&lt;/p&gt;

&lt;p&gt;The email libraries got different work: &lt;a href=&quot;https://github.com/dblock/canonical-emails/pull/11&quot;&gt;provider-aware address parsing&lt;/a&gt;, &lt;a href=&quot;https://github.com/dblock/canonical-emails/pull/15&quot;&gt;cached canonical model readers&lt;/a&gt;, and &lt;a href=&quot;https://github.com/dblock/actionmailer-text/pull/13&quot;&gt;HTML-to-text parsing with &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Nokogiri&lt;/code&gt;&lt;/a&gt;. Both shipped 0.2.0 releases.&lt;/p&gt;

&lt;p&gt;The &lt;a href=&quot;https://github.com/dblock/create-a-github-issue/releases/tag/v3.5.0&quot;&gt;create-a-github-issue action&lt;/a&gt; got cross-repository issue creation, issue types, reopening, bounded rate-limit retries, exact-title duplicate searches, and workspace template includes. I also &lt;a href=&quot;https://github.com/dblock/create-a-github-issue/pull/213&quot;&gt;removed unreleased Projects v2 support&lt;/a&gt;, rather than ship an API and token-permission story I did not want.&lt;/p&gt;

&lt;p&gt;Danger got configurable changelog and table-of-contents checks, provider-aware links, better diagnostics, and release work.&lt;/p&gt;

&lt;h2 id=&quot;maintenance&quot;&gt;Maintenance&lt;/h2&gt;

&lt;p&gt;The mongoid org had fallen behind. I replaced retired coverage integrations, ran actual legacy and modern Mongoid combinations, exercised Rails initialization and reloading, and fixed bugs exposed by those tests.&lt;/p&gt;

&lt;p&gt;Examples include &lt;a href=&quot;https://github.com/mongoid/mongoid_search/pull/156&quot;&gt;incorrect relevance scores&lt;/a&gt;, &lt;a href=&quot;https://github.com/mongoid/mongoid_orderable/pull/92&quot;&gt;embedded document ordering&lt;/a&gt;, &lt;a href=&quot;https://github.com/mongoid/mongoid-history/pull/279&quot;&gt;history ancestry&lt;/a&gt;, and &lt;a href=&quot;https://github.com/mongoid/mongoid-cached-json/pull/38&quot;&gt;false values disappearing from cached JSON&lt;/a&gt;. The coverage work included &lt;a href=&quot;https://github.com/mongoid/mongoid-rspec/pull/263&quot;&gt;99.56% for mongoid-rspec across Mongoid 6 and 9&lt;/a&gt; and &lt;a href=&quot;https://github.com/mongoid/mongoid-geospatial/pull/79&quot;&gt;100% line coverage for mongoid-geospatial&lt;/a&gt;. &lt;a href=&quot;https://github.com/search?q=org%3Amongoid+is%3Aissue+is%3Aclosed+closed%3A2026-10-14..2026-10-23&amp;amp;type=issues&quot;&gt;81 existing open issues were closed&lt;/a&gt;.&lt;/p&gt;

&lt;h2 id=&quot;system-upgrades&quot;&gt;System Upgrades&lt;/h2&gt;

&lt;p&gt;Eleven Slack, Discord, and Teams bot applications got Ruby 4.0.9 and refreshed dependencies after &lt;a href=&quot;https://www.ruby-lang.org/en/news/2026/10/23/regexp-fixes-for-gitlab-cves/&quot;&gt;new CVEs were published&lt;/a&gt;.&lt;/p&gt;

&lt;h2 id=&quot;how-many-tokens&quot;&gt;How Many Tokens?&lt;/h2&gt;

&lt;p&gt;I asked Copilot to query its own local usage history. I use &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;auto&lt;/code&gt;. The records cover three top-level sessions and 35 distinct delegated agent contexts during the window. After removing ten duplicated usage records, they contain 10,256 model calls and 1,196,146,380 input-plus-output tokens, with 97.4% of input tokens being cache reads.&lt;/p&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th&gt;model identifier in local telemetry&lt;/th&gt;
      &lt;th style=&quot;text-align: right&quot;&gt;calls&lt;/th&gt;
      &lt;th style=&quot;text-align: right&quot;&gt;input tokens&lt;/th&gt;
      &lt;th style=&quot;text-align: right&quot;&gt;output tokens&lt;/th&gt;
      &lt;th style=&quot;text-align: right&quot;&gt;cached input reads&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;gpt-6.1-sol&lt;/code&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;9,806&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;1,154,324,205&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;3,409,582&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;1,125,723,845&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;gpt-6-luna&lt;/code&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;399&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;34,653,956&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;260,782&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;33,225,701&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;claude-sonnet-5&lt;/code&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;44&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;3,257,935&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;24,855&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;2,491,423&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;claude-opus-5.5&lt;/code&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;7&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;210,846&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;4,219&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;175,767&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Total&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;10,256&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;1,192,446,942&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;3,699,438&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;1,161,616,736&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;Excluding cache reads leaves 34,529,644 tokens. The separately recorded reasoning count was 841,908.&lt;/p&gt;

&lt;h2 id=&quot;the-job&quot;&gt;The Job&lt;/h2&gt;

&lt;p&gt;I did this in the background of my day job, taking a look at what’s next around lunch, then with more hands on sessions in the evenings. I picked the work, asked whether the reproduction was real, rejected unnecessary abstractions, preserved behavior, separated breaking changes from patch releases, decided that a feature should not ship, reviewed the README and CHANGELOG diffs.&lt;/p&gt;

&lt;p&gt;Typing got cheap. Still, the more decisions I made, the more I think I relied on my 35 years of programming experience and familiarity with these libraries and tools to steer AI, which remains valuable.&lt;/p&gt;

  &lt;p&gt;&lt;a href=&quot;https://code.dblock.org/2026/10/23/i-am-just-one-engineer-armed-with-ai.html&quot;&gt;I Am Just One Engineer Armed with AI&lt;/a&gt; was originally published by Daniel Doubrovkine at &lt;a href=&quot;https://code.dblock.org&quot;&gt;code.dblock.org | tech blog&lt;/a&gt; on October 23, 2026.&lt;/p&gt;</content>
</entry>


<entry>
  <title type="html"><![CDATA[Introducing Markdownlint Spellcheck]]></title>
 <link rel="alternate" type="text/html" href="https://code.dblock.org/2026/10/22/introducing-markdownlint-rule-spellcheck.html" />
  <id>https://code.dblock.org/2026/10/22/introducing-markdownlint-rule-spellcheck</id>
  <published>2026-10-22T00:00:00+00:00</published>
  <updated>2026-10-22T00:00:00+00:00</updated>
  <author>
    <name>Daniel Doubrovkine</name>
    <uri>https://code.dblock.org</uri>
    <email>dblock@dblock.org</email>
  </author>
  <content type="html">&lt;p&gt;After &lt;a href=&quot;/2026/10/21/introducing-rubocop-spellcheck.html&quot;&gt;RuboCop spelling checks for Ruby&lt;/a&gt; and &lt;a href=&quot;/2026/10/22/introducing-dylint-spellcheck.html&quot;&gt;Dylint spelling checks for Rust&lt;/a&gt;, here’s the version that doesn’t require either language’s toolchain.&lt;/p&gt;

&lt;p&gt;Introducing &lt;a href=&quot;https://github.com/dblock/markdownlint-rule-spellcheck&quot;&gt;markdownlint-rule-spellcheck&lt;/a&gt;, a custom &lt;a href=&quot;https://github.com/DavidAnson/markdownlint&quot;&gt;markdownlint&lt;/a&gt; rule powered by &lt;a href=&quot;https://github.com/streetsidesoftware/cspell&quot;&gt;CSpell&lt;/a&gt;. Released &lt;a href=&quot;https://github.com/dblock/markdownlint-rule-spellcheck/releases/tag/v0.1.0&quot;&gt;0.1.0&lt;/a&gt; checks Markdown prose, suggests corrections, and ships American English through its dependencies. No separate dictionary download or system spelling package is required.&lt;/p&gt;

&lt;h2 id=&quot;getting-started&quot;&gt;Getting Started&lt;/h2&gt;

&lt;p&gt;Requires Node.js 22.18 or later. Install the rule and the command-line runner:&lt;/p&gt;

&lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;npm &lt;span class=&quot;nb&quot;&gt;install&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;--save-dev&lt;/span&gt; markdownlint-cli2 markdownlint-rule-spellcheck@0.1.0
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Add &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;.markdownlint-cli2.jsonc&lt;/code&gt;:&lt;/p&gt;

&lt;div class=&quot;language-json highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
  &lt;/span&gt;&lt;span class=&quot;nl&quot;&gt;&quot;customRules&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;markdownlint-rule-spellcheck&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Given &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;example.md&lt;/code&gt;:&lt;/p&gt;

&lt;div class=&quot;language-markdown highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;gh&quot;&gt;# Say helo to the world&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Run:&lt;/p&gt;

&lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;npx markdownlint-cli2 example.md
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The spelling diagnostic includes the original line and column:&lt;/p&gt;

&lt;div class=&quot;language-text highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;example.md:1:7 error spellcheck Prose words should be spelled correctly [Misspelled word: &quot;helo&quot;. Suggestions: hello, helio, halo.]
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Headings, paragraphs, lists, tables, link labels, and image descriptions are checked. Code, link destinations, URLs, and email addresses are skipped. Liquid expressions and tags are skipped too, which matters for Jekyll sites like this one.&lt;/p&gt;

&lt;h2 id=&quot;accepting-project-vocabulary&quot;&gt;Accepting Project Vocabulary&lt;/h2&gt;

&lt;p&gt;Technical documentation contains legitimate words that aren’t in an English dictionary. Collect candidates, review them, and add the accepted words:&lt;/p&gt;

&lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;npx markdownlint-rule-spellcheck collect &lt;span class=&quot;s2&quot;&gt;&quot;**/*.md&quot;&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;--output&lt;/span&gt; .spellcheck.txt
&lt;span class=&quot;c&quot;&gt;# Edit .spellcheck.txt: remove actual typos.&lt;/span&gt;
npx markdownlint-rule-spellcheck add ./.spellcheck.txt
npx markdownlint-cli2 &lt;span class=&quot;s2&quot;&gt;&quot;**/*.md&quot;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;add&lt;/code&gt; command updates &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;.markdownlint.json&lt;/code&gt;, preserving existing settings. Its dictionary configuration looks like this:&lt;/p&gt;

&lt;div class=&quot;language-json highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
  &lt;/span&gt;&lt;span class=&quot;nl&quot;&gt;&quot;spellcheck&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;nl&quot;&gt;&quot;dictionaries&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
      &lt;/span&gt;&lt;span class=&quot;nl&quot;&gt;&quot;en&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;@cspell/dict-en_us&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;./.spellcheck.txt&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
  &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;corrections-and-front-matter&quot;&gt;Corrections and Front Matter&lt;/h2&gt;

&lt;p&gt;Corrections are opt-in. Set &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;&quot;autocorrect&quot;: true&lt;/code&gt; inside &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;spellcheck&lt;/code&gt;, then run:&lt;/p&gt;

&lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;npx markdownlint-cli2 &lt;span class=&quot;nt&quot;&gt;--fix&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;**/*.md&quot;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The first suggestion must be one edit away: an insertion, deletion, substitution, or adjacent transposition. Lowercase and title case can be corrected; ALL CAPS, mixed case, and components of technical tokens remain alone. Review the diff. A correctly spelled word can still be the wrong word.&lt;/p&gt;

&lt;p&gt;YAML front matter strings are checked by default, with nested field selection in &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;.markdownlint.json&lt;/code&gt;:&lt;/p&gt;

&lt;div class=&quot;language-json highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
  &lt;/span&gt;&lt;span class=&quot;nl&quot;&gt;&quot;spellcheck&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;nl&quot;&gt;&quot;markdown&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
      &lt;/span&gt;&lt;span class=&quot;nl&quot;&gt;&quot;frontMatter&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
        &lt;/span&gt;&lt;span class=&quot;nl&quot;&gt;&quot;include&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;title&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;description&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;authors.name&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;],&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
        &lt;/span&gt;&lt;span class=&quot;nl&quot;&gt;&quot;exclude&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;authors.url&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
      &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
  &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;There’s a setup wrinkle. Markdownlint normally removes front matter before custom rules see the document. To check it, add &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;&quot;frontMatter&quot;: &quot;a^&quot;&lt;/code&gt; to &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;.markdownlint-cli2.jsonc&lt;/code&gt;. That’s a regular expression that never matches, leaving the header available to the rule. Other Markdown rules will see it too and may need configuration. Alternatively, set &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;spellcheck.markdown.frontMatter&lt;/code&gt; to &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;false&lt;/code&gt; and keep the normal header handling.&lt;/p&gt;

&lt;p&gt;I also use &lt;a href=&quot;https://github.com/dblock/markdownlint-rule-single-line-paragraphs&quot;&gt;markdownlint-rule-single-line-paragraphs&lt;/a&gt; to keep each prose paragraph on one source line. Let the editor wrap the display instead of inserting arbitrary line breaks into the file.&lt;/p&gt;

&lt;p&gt;Install it:&lt;/p&gt;

&lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;npm &lt;span class=&quot;nb&quot;&gt;install&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;--save-dev&lt;/span&gt; markdownlint-rule-single-line-paragraphs
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Register both rules in &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;.markdownlint-cli2.jsonc&lt;/code&gt;:&lt;/p&gt;

&lt;div class=&quot;language-json highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
  &lt;/span&gt;&lt;span class=&quot;nl&quot;&gt;&quot;customRules&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;markdownlint-rule-spellcheck&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;markdownlint-rule-single-line-paragraphs&quot;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
  &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;],&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
  &lt;/span&gt;&lt;span class=&quot;nl&quot;&gt;&quot;config&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
    &lt;/span&gt;&lt;span class=&quot;nl&quot;&gt;&quot;MD013&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kc&quot;&gt;false&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
  &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Disabling &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;MD013&lt;/code&gt; removes the line-length limit; the custom rule enforces single-line paragraphs. It isn’t a rule for wrapping at 80 characters. It’s the opposite. This blog already uses it, and the spelling rule’s own documentation uses both.&lt;/p&gt;

  &lt;p&gt;&lt;a href=&quot;https://code.dblock.org/2026/10/22/introducing-markdownlint-rule-spellcheck.html&quot;&gt;Introducing Markdownlint Spellcheck&lt;/a&gt; was originally published by Daniel Doubrovkine at &lt;a href=&quot;https://code.dblock.org&quot;&gt;code.dblock.org | tech blog&lt;/a&gt; on October 22, 2026.&lt;/p&gt;</content>
</entry>


<entry>
  <title type="html"><![CDATA[Introducing Dylint Spellcheck (Rust)]]></title>
 <link rel="alternate" type="text/html" href="https://code.dblock.org/2026/10/22/introducing-dylint-spellcheck.html" />
  <id>https://code.dblock.org/2026/10/22/introducing-dylint-spellcheck</id>
  <published>2026-10-22T00:00:00+00:00</published>
  <updated>2026-10-22T00:00:00+00:00</updated>
  <author>
    <name>Daniel Doubrovkine</name>
    <uri>https://code.dblock.org</uri>
    <email>dblock@dblock.org</email>
  </author>
  <content type="html">&lt;p&gt;After &lt;a href=&quot;/2026/10/21/introducing-rubocop-spellcheck.html&quot;&gt;adding spelling checks to RuboCop&lt;/a&gt;, I wanted the same thing for Rust.&lt;/p&gt;

&lt;p&gt;Introducing &lt;a href=&quot;https://github.com/dblock/dylint-spellcheck&quot;&gt;dylint-spellcheck&lt;/a&gt;, a &lt;a href=&quot;https://github.com/trailofbits/dylint&quot;&gt;Dylint&lt;/a&gt; library for checking spelling in Rust comments, Rustdoc attributes, Markdown, and plain text. It uses the &lt;a href=&quot;https://github.com/kotoshu/kotoshu-rs&quot;&gt;Rust implementation of Kotoshu&lt;/a&gt; and ships an American English dictionary. The idea is the same as the Ruby version: fix actual typos, accept project-specific vocabulary, and run spelling alongside the other lint checks.&lt;/p&gt;

&lt;h2 id=&quot;getting-started&quot;&gt;Getting Started&lt;/h2&gt;

&lt;p&gt;The examples below use released &lt;a href=&quot;https://github.com/dblock/dylint-spellcheck/releases/tag/v0.1.0&quot;&gt;0.1.0&lt;/a&gt;. Install Rust through &lt;a href=&quot;https://rustup.rs/&quot;&gt;rustup&lt;/a&gt;, then install Dylint:&lt;/p&gt;

&lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;cargo +stable &lt;span class=&quot;nb&quot;&gt;install &lt;/span&gt;cargo-dylint dylint-link &lt;span class=&quot;nt&quot;&gt;--version&lt;/span&gt; 6.2.0 &lt;span class=&quot;nt&quot;&gt;--locked&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Add the library to your project’s &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Cargo.toml&lt;/code&gt;:&lt;/p&gt;

&lt;div class=&quot;language-toml highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;k&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;workspace&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;metadata&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;dylint&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;]&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;libraries&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;
    &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;git&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;https://github.com/dblock/dylint-spellcheck&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;n&quot;&gt;tag&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;v0.1.0&quot;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;},&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Dylint libraries are distributed through Git. Dylint downloads and builds this one with its pinned nightly compiler without changing the application’s normal toolchain. There is no crate to add to your application’s dependencies.&lt;/p&gt;

&lt;p&gt;Run it:&lt;/p&gt;

&lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;cargo +stable dylint &lt;span class=&quot;nt&quot;&gt;--all&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Given this Rust comment:&lt;/p&gt;

&lt;div class=&quot;language-rust highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;// The red brown fox jumsp over the lazy dog.&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;fn&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;main&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Dylint reports:&lt;/p&gt;

&lt;div class=&quot;language-text highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;warning: misspelled word: `jumsp`
 --&amp;gt; src/main.rs:1:22
  |
1 | // The red brown fox jumsp over the lazy dog.
  |                      ^^^^^
  |
  = help: did you mean `jump`, `jumps`, `lump`?
  = note: `#[warn(spellcheck)]` on by default
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;implementation-in-excalc-rs&quot;&gt;Implementation in excalc-rs&lt;/h2&gt;

&lt;p&gt;I added spell-checking to &lt;a href=&quot;https://github.com/dblock/excalc-rs&quot;&gt;excalc-rs&lt;/a&gt; in &lt;a href=&quot;https://github.com/dblock/excalc-rs/pull/4&quot;&gt;PR #4&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Technical comments contain perfectly legitimate words that are not in an English dictionary: &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Kronrod&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Mascheroni&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;MCP&lt;/code&gt;, and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;excalc&lt;/code&gt;, for example. I added a workspace-root &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;dylint.toml&lt;/code&gt; to combine bundled English with a project vocabulary:&lt;/p&gt;

&lt;div class=&quot;language-toml highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;k&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;dylint-spellcheck&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;]&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;dictionaries&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;crate:dylint-spellcheck/data/en&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;.spellcheck.txt&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;crate:&lt;/code&gt; reference selects dictionary resources, not another application dependency. Bundled English is available without downloading a separate dictionary.&lt;/p&gt;

&lt;p&gt;With &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;.spellcheck.txt&lt;/code&gt; absent, I ran the full intended feature scope:&lt;/p&gt;

&lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;cargo +stable dylint &lt;span class=&quot;nt&quot;&gt;--all&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;--&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;--all-targets&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;--all-features&lt;/span&gt;
cargo +stable dylint &lt;span class=&quot;nt&quot;&gt;--all&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;--&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;--all-targets&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;--no-default-features&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I checked both feature configurations because excalc-rs supports building with and without its optional MCP server, which is enabled by default. Unknown words accumulated in a sorted, deduplicated &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;.spellcheck.tmp&lt;/code&gt; across compiler processes and runs.&lt;/p&gt;

&lt;p&gt;After reviewing the list for genuine typos, I promoted it to the project vocabulary:&lt;/p&gt;

&lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nb&quot;&gt;mv&lt;/span&gt; .spellcheck.tmp .spellcheck.txt
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I committed &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;.spellcheck.txt&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;dylint.toml&lt;/code&gt; and added &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;.spellcheck.tmp&lt;/code&gt; and &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;.spellcheck.tmp.lock&lt;/code&gt; to &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;.gitignore&lt;/code&gt;. The regenerated excalc-rs vocabulary contained 136 case-sensitive entries. Subsequent checks used that vocabulary without modifying it.&lt;/p&gt;

&lt;p&gt;Finally, I made warnings fail CI:&lt;/p&gt;

&lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nv&quot;&gt;RUSTFLAGS&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;-D warnings&quot;&lt;/span&gt; cargo +stable dylint &lt;span class=&quot;nt&quot;&gt;--all&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;--&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;--all-targets&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;--all-features&lt;/span&gt;
&lt;span class=&quot;nv&quot;&gt;RUSTFLAGS&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;-D warnings&quot;&lt;/span&gt; cargo +stable dylint &lt;span class=&quot;nt&quot;&gt;--all&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;--&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;--all-targets&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;--no-default-features&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;See the &lt;a href=&quot;https://github.com/dblock/excalc-rs/pull/4&quot;&gt;excalc-rs integration&lt;/a&gt; for the configuration, vocabulary, and CI setup.&lt;/p&gt;

  &lt;p&gt;&lt;a href=&quot;https://code.dblock.org/2026/10/22/introducing-dylint-spellcheck.html&quot;&gt;Introducing Dylint Spellcheck (Rust)&lt;/a&gt; was originally published by Daniel Doubrovkine at &lt;a href=&quot;https://code.dblock.org&quot;&gt;code.dblock.org | tech blog&lt;/a&gt; on October 22, 2026.&lt;/p&gt;</content>
</entry>


<entry>
  <title type="html"><![CDATA[Introducing RuboCop Spellcheck]]></title>
 <link rel="alternate" type="text/html" href="https://code.dblock.org/2026/10/21/introducing-rubocop-spellcheck.html" />
  <id>https://code.dblock.org/2026/10/21/introducing-rubocop-spellcheck</id>
  <published>2026-10-21T00:00:00+00:00</published>
  <updated>2026-10-21T00:00:00+00:00</updated>
  <author>
    <name>Daniel Doubrovkine</name>
    <uri>https://code.dblock.org</uri>
    <email>dblock@dblock.org</email>
  </author>
  <content type="html">&lt;p&gt;I replaced this blog’s Python spell checker that took more than three minutes to run with the new &lt;a href=&quot;https://github.com/dblock/rubocop-spellcheck&quot;&gt;rubocop-spellcheck&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/images/posts/2026/2026-10-21-introducing-rubocop-spellcheck/logo.png&quot; alt=&quot;RuboCop Spellcheck logo&quot; width=&quot;160&quot; /&gt;&lt;/p&gt;

&lt;p&gt;I really love &lt;a href=&quot;https://github.com/rubocop/rubocop&quot;&gt;RuboCop&lt;/a&gt; for its standard approach to linting and auto-correction, which solves the difficult problem of deciding between tabs and spaces (use defaults). My typical implementation in Ruby projects is to add a standard &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;.rubocop.yml&lt;/code&gt;, run &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;rubocop -a&lt;/code&gt;, ask an AI to fix easy fixable violations, then run &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;rubocop --auto-gen-config&lt;/code&gt; to mark all remaining ones as an exception. Why should spelling be any different?&lt;/p&gt;

&lt;p&gt;Introducing &lt;a href=&quot;https://github.com/dblock/rubocop-spellcheck&quot;&gt;rubocop-spellcheck&lt;/a&gt;, a RuboCop plugin for checking spelling in Ruby comments, strings, identifiers, Markdown, RDoc, AsciiDoc, and plain text. It uses &lt;a href=&quot;https://github.com/kotoshu/kotoshu&quot;&gt;Kotoshu&lt;/a&gt; with its pure Ruby backend and ships an American English dictionary. No separate dictionary download, environment, or system spelling package is required.&lt;/p&gt;

&lt;h2 id=&quot;getting-started&quot;&gt;Getting Started&lt;/h2&gt;

&lt;p&gt;The examples below use released &lt;a href=&quot;https://github.com/dblock/rubocop-spellcheck/releases/tag/v0.2.0&quot;&gt;0.2.0&lt;/a&gt;. Add this to your &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Gemfile&lt;/code&gt;:&lt;/p&gt;

&lt;div class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;group&lt;/span&gt; &lt;span class=&quot;ss&quot;&gt;:development&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;do&lt;/span&gt;
  &lt;span class=&quot;n&quot;&gt;gem&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;rubocop-spellcheck&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;~&amp;gt; 0.2.0&apos;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;ss&quot;&gt;require: &lt;/span&gt;&lt;span class=&quot;kp&quot;&gt;false&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;end&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Enable the plugin in &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;.rubocop.yml&lt;/code&gt;:&lt;/p&gt;

&lt;div class=&quot;language-yaml highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;na&quot;&gt;plugins&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
  &lt;span class=&quot;pi&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;rubocop-spellcheck&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Run it:&lt;/p&gt;

&lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;bundle &lt;span class=&quot;nb&quot;&gt;install
&lt;/span&gt;bundle &lt;span class=&quot;nb&quot;&gt;exec &lt;/span&gt;rubocop &lt;span class=&quot;nt&quot;&gt;--only&lt;/span&gt; Spellcheck/Spelling
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Given this Ruby comment:&lt;/p&gt;

&lt;div class=&quot;language-ruby highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;# The red brown fox jumsp over the lazy dog.&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;RuboCop reports:&lt;/p&gt;

&lt;div class=&quot;language-text highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;example.rb:1:21: C: [Correctable] Spellcheck/Spelling: Misspelled word: jumsp. Did you mean jumps, jump, jumpy?
# The red brown fox jumsp over the lazy dog.
                    ^^^^^
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Try auto-correct when the first suggestion is one edit away:&lt;/p&gt;

&lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;bundle &lt;span class=&quot;nb&quot;&gt;exec &lt;/span&gt;rubocop &lt;span class=&quot;nt&quot;&gt;-A&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;--only&lt;/span&gt; Spellcheck/Spelling
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This changes &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;jumsp&lt;/code&gt; to &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;jumps&lt;/code&gt;, an adjacent transposition, even though there are three suggestions. Corrections accept lowercase and title-case words, but leave ALL CAPS, mixed-case words, and dotted technical tokens alone. &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;-A&lt;/code&gt; opts into unsafe changes: even a correctly spelled replacement can change the meaning of a comment or document, including people’s names. Review the diff.&lt;/p&gt;

&lt;p&gt;Examine spelling mistakes and fix them. Then generate a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;.spellcheck.txt&lt;/code&gt; for remaining false positives such as constants or terms common in technical documentation.&lt;/p&gt;

&lt;p&gt;For a file containing &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;# RuboCop uses Kotoshu.&lt;/code&gt;, run:&lt;/p&gt;

&lt;div class=&quot;language-sh highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;bundle &lt;span class=&quot;nb&quot;&gt;exec &lt;/span&gt;rubocop &lt;span class=&quot;nt&quot;&gt;--auto-gen-config&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;--only&lt;/span&gt; Spellcheck/Spelling
&lt;span class=&quot;nb&quot;&gt;cat&lt;/span&gt; .spellcheck.txt
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-text highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;kotoshu
rubocop
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The command also adds &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;.spellcheck.txt&lt;/code&gt; to &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Spellcheck.DictionaryFiles&lt;/code&gt;, retaining the bundled English dictionary. Running it again rewrites &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;.spellcheck.txt&lt;/code&gt;, clearing unused entries. Review the generated list: this accepts every remaining spelling error, including real typos.&lt;/p&gt;

&lt;p&gt;It is a normal cop. You can exclude files, use &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;rubocop:disable Spellcheck/Spelling&lt;/code&gt; in Ruby, run it in CI, and get diagnostics in the same place as your other lint failures.&lt;/p&gt;

&lt;h2 id=&quot;implementation-in-this-blog&quot;&gt;Implementation in this Blog&lt;/h2&gt;

&lt;p&gt;For this blog, I narrowed front matter checks to the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;title&lt;/code&gt; field because layout names and other site metadata are not prose. Project vocabulary lives in &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;.spellcheck.txt&lt;/code&gt;, alongside the bundled dictionary:&lt;/p&gt;

&lt;div class=&quot;language-yaml highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;na&quot;&gt;Spellcheck&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
  &lt;span class=&quot;na&quot;&gt;DictionaryFiles&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
    &lt;span class=&quot;na&quot;&gt;en&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
      &lt;span class=&quot;pi&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;gem:rubocop-spellcheck/data/en/en.dic&lt;/span&gt;
      &lt;span class=&quot;pi&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;.spellcheck.txt&lt;/span&gt;

&lt;span class=&quot;na&quot;&gt;Spellcheck/Spelling&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
  &lt;span class=&quot;na&quot;&gt;Markdown&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
    &lt;span class=&quot;na&quot;&gt;FrontMatter&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
      &lt;span class=&quot;na&quot;&gt;Include&lt;/span&gt;&lt;span class=&quot;pi&quot;&gt;:&lt;/span&gt;
        &lt;span class=&quot;pi&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;title&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;With released 0.2.0, checking all 618 tracked Markdown files on the benchmark branch averaged 3.69 seconds across three runs with caching disabled, including titles and Ruby strings. The benchmark harness and historical results are &lt;a href=&quot;https://github.com/dblock/code.dblock.org/tree/spelling-benchmarks/benchmarks/spelling&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;See the &lt;a href=&quot;https://github.com/dblock/code.dblock.org/commit/e93cf0bef16b186e4d9afc0c9cc7892ae5117369&quot;&gt;initial spelling integration&lt;/a&gt; and the &lt;a href=&quot;https://github.com/dblock/code.dblock.org/commit/8905f45e5fb26374f4fb6009d16f1e1f40a3fe2c&quot;&gt;update to 0.2.0&lt;/a&gt; for implementation details.&lt;/p&gt;

  &lt;p&gt;&lt;a href=&quot;https://code.dblock.org/2026/10/21/introducing-rubocop-spellcheck.html&quot;&gt;Introducing RuboCop Spellcheck&lt;/a&gt; was originally published by Daniel Doubrovkine at &lt;a href=&quot;https://code.dblock.org&quot;&gt;code.dblock.org | tech blog&lt;/a&gt; on October 21, 2026.&lt;/p&gt;</content>
</entry>

</feed>
