<?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: Praful Reddy</title>
    <description>The latest articles on DEV Community by Praful Reddy (@prafulreddy).</description>
    <link>https://dev.to/prafulreddy</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%2F3871637%2Fdfb49680-d4a7-46ca-b39b-0859d4c61fbd.jpg</url>
      <title>DEV Community: Praful Reddy</title>
      <link>https://dev.to/prafulreddy</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/prafulreddy"/>
    <language>en</language>
    <item>
      <title>A zero-token progress bar for Claude Code</title>
      <dc:creator>Praful Reddy</dc:creator>
      <pubDate>Fri, 10 Apr 2026 11:48:59 +0000</pubDate>
      <link>https://dev.to/prafulreddy/a-zero-token-progress-bar-for-claude-code-51bp</link>
      <guid>https://dev.to/prafulreddy/a-zero-token-progress-bar-for-claude-code-51bp</guid>
      <description>&lt;p&gt;Every Claude Code extension I've seen shows the same thing: token counts, API costs, model info. Useful, but it doesn't answer the question I actually care about mid-session — how much of the work is done.&lt;br&gt;
So I built task-progress-bar. It reads Claude Code's native task list from disk and renders a live ASCII progress bar with time estimates. It runs as a PostToolUse hook, which means it consumes zero tokens — it's a subprocess that Claude never sees.&lt;/p&gt;

&lt;p&gt;Tasks [████████░░] 8/10 (~3m left) | ✓8 ⟳1 ○1&lt;/p&gt;

&lt;h2&gt;
  
  
  How it works
&lt;/h2&gt;

&lt;p&gt;Claude Code persists tasks as JSON files in ~/.claude/tasks/. The plugin watches for TodoWrite, TodoRead, TaskCreate, and TaskUpdate tool calls via the PostToolUse hook, then:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Parses every JSON file in the tasks directory&lt;/li&gt;
&lt;li&gt;Counts completed, in-progress, and pending tasks&lt;/li&gt;
&lt;li&gt;Computes a time estimate using an exponential moving average (EMA)&lt;/li&gt;
&lt;li&gt;Outputs a single status line to Claude Code's statusLine renderer&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The time estimation is straightforward. Each time a task moves to completed, the timestamp is logged. The interval between consecutive completions feeds into an EMA with α=0.3:&lt;/p&gt;

&lt;p&gt;EMA_new = 0.3 × latest_interval + 0.7 × EMA_old&lt;br&gt;
estimated_remaining = EMA × tasks_left&lt;/p&gt;

&lt;p&gt;Intervals over 1 hour are clamped to avoid skew from session breaks. The first 3 completions show "calculating..." until there's enough data.&lt;br&gt;
The entire plugin is a single Python file — stdlib only, no pip dependencies. It uses json, pathlib, time, and sys. Nothing else.&lt;/p&gt;

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

&lt;p&gt;curl -fsSL &lt;a href="https://raw.githubusercontent.com/PRAFULREDDYM/task-progress-bar/main/install.sh" rel="noopener noreferrer"&gt;https://raw.githubusercontent.com/PRAFULREDDYM/task-progress-bar/main/install.sh&lt;/a&gt; | bash&lt;/p&gt;

&lt;p&gt;The installer checks for Python 3.8+, copies the script to ~/.claude/, and patches settings.json with the hook configuration. There's a matching uninstall.sh for clean removal.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it looks like
&lt;/h2&gt;

&lt;p&gt;The progress bar color-codes by completion percentage — red below 33%, yellow from 33–66%, green above 66%. When all tasks finish, it shows ✅ All done! for 30 seconds and then hides.&lt;br&gt;
If you run it standalone (python3 task_progress_bar.py), you get a full multi-line colored view with a task breakdown and per-task average.&lt;/p&gt;

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

&lt;ul&gt;
&lt;li&gt;GitHub: &lt;a href="https://dev.tourl"&gt;github.com/PRAFULREDDYM/task-progress-bar&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Requirements: Python 3.8+, Claude Code v2.1+&lt;/li&gt;
&lt;li&gt;License: MIT&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>claudecode</category>
      <category>productivity</category>
      <category>terminal</category>
      <category>python</category>
    </item>
  </channel>
</rss>
