<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Benjamin Sanderson</title>
    <description>The latest articles on DEV Community by Benjamin Sanderson (@bens03).</description>
    <link>https://dev.to/bens03</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3999200%2Faf10d1e5-abdd-4617-992a-c2cfaf1223e7.png</url>
      <title>DEV Community: Benjamin Sanderson</title>
      <link>https://dev.to/bens03</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/bens03"/>
    <language>en</language>
    <item>
      <title>commait: AI-generated git commit messages with a built-in diff compression pipeline</title>
      <dc:creator>Benjamin Sanderson</dc:creator>
      <pubDate>Wed, 24 Jun 2026 14:50:48 +0000</pubDate>
      <link>https://dev.to/bens03/commait-ai-generated-git-commit-messages-with-a-built-in-diff-compression-pipeline-d6l</link>
      <guid>https://dev.to/bens03/commait-ai-generated-git-commit-messages-with-a-built-in-diff-compression-pipeline-d6l</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgaxgignxulvbx34sdww4.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgaxgignxulvbx34sdww4.gif" alt="demo" width="800" height="600"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Writing commit messages is not hard, but it does take time. It may not be a lot of time but saving any amount of time is always good.&lt;strong&gt;commait&lt;/strong&gt; is a CLI tool that reads your staged diff and generates a properly formatted conventional commit message in seconds. It also allows for token budgeting and is packaged with diff compression pipeline to enforce said budget.&lt;/p&gt;

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



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;
&lt;span class="nv"&gt;$npm&lt;/span&gt; &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;-g&lt;/span&gt; commait-cli

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Key features
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Multi-provider&lt;/strong&gt;: OpenAI or Anthropic, swap with a config change&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Fully configurable automation&lt;/strong&gt;: auto-stage, auto-commit, auto-push, or keep every step interactive&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Token budget control&lt;/strong&gt;: cap max diff tokens so costs stay predictable on large diffs&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Diff compression pipeline&lt;/strong&gt;: if the diff exceeds your budget, a staged pipeline kicks in: strips noise files → strips headers → strips context lines → strips lines. Checks token count after each stage to minimize information loss&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Custom prompts&lt;/strong&gt;: override the default to match your team's conventions&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Optional context flag&lt;/strong&gt;: prefix the prompt with extra context via &lt;code&gt;-c&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Interactive model picker&lt;/strong&gt;: browse models without memorizing name strings&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

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

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.npmjs.com/package/commait-cli" rel="noopener noreferrer"&gt;npm&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://github.com/benS-03/commait" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>productivity</category>
      <category>cli</category>
      <category>ai</category>
      <category>git</category>
    </item>
  </channel>
</rss>
