<?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>Forem: ktny</title>
    <description>The latest articles on Forem by ktny (@ktny).</description>
    <link>https://forem.com/ktny</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F423978%2Ff7612ee0-03ee-4499-b8f0-f534a9a2884a.png</url>
      <title>Forem: ktny</title>
      <link>https://forem.com/ktny</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/ktny"/>
    <language>en</language>
    <item>
      <title>I built a tool to visualize Claude Code activity like GitHub contributions</title>
      <dc:creator>ktny</dc:creator>
      <pubDate>Sun, 29 Jun 2025 13:30:32 +0000</pubDate>
      <link>https://forem.com/ktny/i-built-a-tool-to-visualize-claude-code-activity-like-github-contributions-d6</link>
      <guid>https://forem.com/ktny/i-built-a-tool-to-visualize-claude-code-activity-like-github-contributions-d6</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;As a heavy Claude Code user, I often wondered: "How much did Claude actually work for me today?" So I created ccstat - a CLI tool that visualizes your Claude Code sessions in a GitHub contribution graph style. Think of it as monitoring your AI pair programmer's productivity! 🤖&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/ktny/ccstat" rel="noopener noreferrer"&gt;ktny/ccstat: 📊 Visualize your Claude Code session activity patterns — fast, beautiful, and insightful CLI tool&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Features
&lt;/h2&gt;

&lt;p&gt;Claude Code stores session logs in ~/.claude/projects for each directory where it's executed. ccstat analyzes these logs to display and aggregate activity history by directory over specified time periods.&lt;br&gt;
Main features:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;📊 Activity visualization: GitHub-style contribution heatmap with color-coded intensity&lt;/li&gt;
&lt;li&gt;⏱️ Smart time tracking: Calculates actual active time as accurately as possible&lt;/li&gt;
&lt;li&gt;📁 Project-wise aggregation: Track work volume per directory&lt;/li&gt;
&lt;li&gt;🌲 Git integration: Repository-based aggregation with worktree support&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The Git integration is particularly useful when using git worktree - different directories might represent work on the same repository. ccstat intelligently groups these together and can display parent-child relationships at the repository level.&lt;/p&gt;
&lt;h2&gt;
  
  
  Getting Started
&lt;/h2&gt;
&lt;h3&gt;
  
  
  Installation
&lt;/h3&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-fsSL&lt;/span&gt; https://ktny.github.io/ccstat/install.sh | sh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h3&gt;
  
  
  Basic Usage
&lt;/h3&gt;

&lt;p&gt;Simply run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ccstat
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This shows Claude Code activity for the past 24 hours, organized by project.&lt;/p&gt;

&lt;h3&gt;
  
  
  Advanced Usage
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Display worktree relationships&lt;/span&gt;
ccstat &lt;span class="nt"&gt;--worktree&lt;/span&gt;

&lt;span class="c"&gt;# Show past 7 days of activity&lt;/span&gt;
ccstat &lt;span class="nt"&gt;--days&lt;/span&gt; 7

&lt;span class="c"&gt;# Show detailed activity for past 6 hours&lt;/span&gt;
ccstat &lt;span class="nt"&gt;--hours&lt;/span&gt; 6

&lt;span class="c"&gt;# Focus on specific project&lt;/span&gt;
ccstat &lt;span class="nt"&gt;--project&lt;/span&gt; myproject
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Use Cases
&lt;/h2&gt;

&lt;p&gt;Understanding Your Development Rhythm&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Check this week's work patterns&lt;/span&gt;
ccstat &lt;span class="nt"&gt;--days&lt;/span&gt; 7
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# See concentration on a specific project&lt;/span&gt;
ccstat &lt;span class="nt"&gt;--project&lt;/span&gt; important-feature &lt;span class="nt"&gt;--hours&lt;/span&gt; 12
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Behind the Scenes
&lt;/h2&gt;

&lt;p&gt;Building this tool was incredibly fast thanks to Claude Code itself - the speed of development was unimaginable just a short while ago. Ideas that used to take forever to complete (and often led to abandonment) can now be built rapidly.&lt;br&gt;
I'm also considering Gemini CLI support in the future.&lt;/p&gt;

&lt;h2&gt;
  
  
  Wrapping Up
&lt;/h2&gt;

&lt;p&gt;If you try ccstat, I'd love to hear your feedback! Stars on GitHub are always appreciated too! ⭐&lt;/p&gt;

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