<?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: Christian Heilig</title>
    <description>The latest articles on DEV Community by Christian Heilig (@popeye785).</description>
    <link>https://dev.to/popeye785</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%2F4186564%2Fd80a3872-ac2b-46d7-8ce6-3116d0d06be0.png</url>
      <title>DEV Community: Christian Heilig</title>
      <link>https://dev.to/popeye785</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/popeye785"/>
    <language>en</language>
    <item>
      <title>Seeing your Claude Code usage without asking: a tiny hook that prints one line</title>
      <dc:creator>Christian Heilig</dc:creator>
      <pubDate>Thu, 15 Oct 2026 10:37:48 +0000</pubDate>
      <link>https://dev.to/popeye785/seeing-your-claude-code-usage-without-asking-a-tiny-hook-that-prints-one-line-1m7g</link>
      <guid>https://dev.to/popeye785/seeing-your-claude-code-usage-without-asking-a-tiny-hook-that-prints-one-line-1m7g</guid>
      <description>&lt;p&gt;If you use Claude Code on a Pro or Max plan, two numbers decide your day: how full the &lt;strong&gt;context&lt;/strong&gt; is, and how much of your &lt;strong&gt;5-hour and weekly usage&lt;/strong&gt; is gone. I kept forgetting to check them — and then hit the limit mid-task.&lt;/p&gt;

&lt;p&gt;So I wrote a small plugin that answers the question before I ask it.&lt;/p&gt;

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

&lt;p&gt;After an answer, if anything changed, one quiet line appears:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;📊 Context 9 % · 5h 23.5 % · week 19 % · Session $1.50
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;and the same values sit in a band above the prompt. No prompts, no popups, nothing is blocked or denied. If a value isn't available, it is left out instead of guessed.&lt;/p&gt;

&lt;h2&gt;
  
  
  How it works (the interesting part)
&lt;/h2&gt;

&lt;p&gt;Claude Code plugins can register hooks. The plugin listens for the end of each turn, reads the session's usage through the plugin API, and only prints when the numbers differ from the last line — otherwise the conversation would fill up with noise.&lt;/p&gt;

&lt;p&gt;A few rules I set for myself, which I'd recommend for any hook you install:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Fail open.&lt;/strong&gt; If anything goes wrong (file missing, value invalid), the hook does nothing. A status helper must never break your session.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Time-box everything.&lt;/strong&gt; Every read has a deadline; a slow disk can't stall a turn.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Off switch you can reach without the tool:&lt;/strong&gt; creating &lt;code&gt;~/.config/agent-mods/lagezeile.off&lt;/code&gt; turns it off.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Never invent numbers.&lt;/strong&gt; A missing value is omitted, not estimated.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/plugin marketplace add Popeye785/agent-mods
/plugin install lagezeile@agent-mods
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It's free. Source and README: &lt;a href="https://github.com/Popeye785/agent-mods" rel="noopener noreferrer"&gt;https://github.com/Popeye785/agent-mods&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I also sell a few paid plugins for businesses (a model picker that routes simple tasks to a cheaper model, a safety net before risky shell commands, and an action log). They're listed in the README if you're curious — no need to buy anything to use lagezeile.&lt;/p&gt;

&lt;p&gt;Feedback welcome — especially on what other number you'd want in that line.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Independent project, not affiliated with Anthropic. Claude and Claude Code are trademarks of Anthropic.&lt;/em&gt;&lt;br&gt;
&lt;em&gt;Author: Christian Heilig, Previsa KI, Clara-Schumann-Straße 11, 97241 Bergtheim, Germany · &lt;a href="mailto:kontakt@previsa.de"&gt;kontakt@previsa.de&lt;/a&gt; · &lt;a href="https://previsa.de/#impressum" rel="noopener noreferrer"&gt;Impressum / legal notice&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

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