<?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: Shreeshanth Shetty</title>
    <description>The latest articles on DEV Community by Shreeshanth Shetty (@shreeshanth_shetty_f97f10).</description>
    <link>https://dev.to/shreeshanth_shetty_f97f10</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%2F4023741%2F012da687-ab08-4da7-a5b7-c8839e15fa56.png</url>
      <title>DEV Community: Shreeshanth Shetty</title>
      <link>https://dev.to/shreeshanth_shetty_f97f10</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/shreeshanth_shetty_f97f10"/>
    <language>en</language>
    <item>
      <title>GitWhisper – CLI that explains why your code changed, not just what</title>
      <dc:creator>Shreeshanth Shetty</dc:creator>
      <pubDate>Fri, 10 Jul 2026 08:33:29 +0000</pubDate>
      <link>https://dev.to/shreeshanth_shetty_f97f10/gitwhisper-cli-that-explains-why-your-code-changed-not-just-what-1f79</link>
      <guid>https://dev.to/shreeshanth_shetty_f97f10/gitwhisper-cli-that-explains-why-your-code-changed-not-just-what-1f79</guid>
      <description>&lt;h2&gt;
  
  
  The problem
&lt;/h2&gt;

&lt;p&gt;git log tells you what changed. It never tells you why. &lt;br&gt;
Every senior engineer has spent hours reading through 50 commits &lt;br&gt;
trying to understand a decision made 3 months ago by someone &lt;br&gt;
who left the company.&lt;/p&gt;

&lt;h2&gt;
  
  
  What GitWhisper does
&lt;/h2&gt;

&lt;p&gt;It installs a post-commit hook that silently captures developer &lt;br&gt;
context at commit time — branch name, recent terminal commands, &lt;br&gt;
IDE state, and the full diff — and stores it as JSON inside &lt;br&gt;
.git/gitwhisper/.json.&lt;/p&gt;

&lt;p&gt;When you run:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;gitwhisper explain src/auth.rs
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;It loads the full commit history for that file, pulls the captured &lt;br&gt;
context for each commit, compresses everything into a 12k char &lt;br&gt;
prompt budget, and asks Gemini or a local Ollama model to explain &lt;br&gt;
why the file evolved the way it did.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Rust
&lt;/h2&gt;

&lt;p&gt;Single binary. No runtime. Drop it into any repo without asking &lt;br&gt;
teammates to install anything. Cold start is ~12ms.&lt;/p&gt;

&lt;h2&gt;
  
  
  Interesting engineering problems
&lt;/h2&gt;

&lt;p&gt;The context optimizer was the hardest part. Naively passing full &lt;br&gt;
history blows every model's context window. I ended up scoring &lt;br&gt;
each commit by recency + file overlap + diff size then truncating &lt;br&gt;
greedily until under budget.&lt;/p&gt;

&lt;p&gt;Other commands that are useful day-to-day:&lt;/p&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;gitwhisper owners src/        # contribution-weighted ownership&lt;br&gt;
gitwhisper security src/      # risky change pattern scan&lt;br&gt;&lt;br&gt;
gitwhisper bug-predict src/   # files statistically likely to have bugs&lt;br&gt;
gitwhisper knowledge-risk src/ # bus factor analysis&lt;br&gt;
gitwhisper dashboard          # web dashboard at :7878&lt;br&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h2&gt;
&lt;br&gt;
  &lt;br&gt;
  &lt;br&gt;
  Current rough edges&lt;br&gt;
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Terminal output is still plain println — colored crate is wired 
up in Cargo.toml but not applied yet&lt;/li&gt;
&lt;li&gt;Dashboard is single-threaded TCP, blocks on one connection&lt;/li&gt;
&lt;li&gt;Diff analysis is heuristic, no tree-sitter yet&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  GitHub
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/SHREESHANTH99/GitWhisper" rel="noopener noreferrer"&gt;https://github.com/SHREESHANTH99/GitWhisper&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Would love feedback on the context optimizer approach — happy to &lt;br&gt;
go deep on any of the design decisions in the comments.****&lt;/p&gt;

</description>
      <category>programming</category>
      <category>rust</category>
      <category>hn</category>
      <category>ai</category>
    </item>
  </channel>
</rss>
