<?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: Ivan Dyankov</title>
    <description>The latest articles on DEV Community by Ivan Dyankov (@ivan_dyankov).</description>
    <link>https://dev.to/ivan_dyankov</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%2F4040686%2Fdf8da7fd-381b-4228-922f-3a536b54fea8.png</url>
      <title>DEV Community: Ivan Dyankov</title>
      <link>https://dev.to/ivan_dyankov</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ivan_dyankov"/>
    <language>en</language>
    <item>
      <title>Create a cool Status Line in Claude Code</title>
      <dc:creator>Ivan Dyankov</dc:creator>
      <pubDate>Sun, 26 Jul 2026 19:25:09 +0000</pubDate>
      <link>https://dev.to/ivan_dyankov/create-a-cool-status-line-in-claude-code-gdj</link>
      <guid>https://dev.to/ivan_dyankov/create-a-cool-status-line-in-claude-code-gdj</guid>
      <description>&lt;p&gt;I would like to share a cool trick for Claude Code that I learned recently.&lt;/p&gt;

&lt;p&gt;It all started while watching a coding video by Matt Pocock. As he was working in his Claude Code shell, I noticed something extra pinned right below his prompt input box—a cool status line showing key information like the active model, token usage, and other real-time session stats.&lt;/p&gt;

&lt;p&gt;Curious to know how he set it up, I jumped straight into Google and discovered a built-in command: &lt;code&gt;/statusline&lt;/code&gt;. You can find more information on their dedicated (page)[&lt;a href="https://code.claude.com/docs/en/statusline" rel="noopener noreferrer"&gt;https://code.claude.com/docs/en/statusline&lt;/a&gt;].&lt;/p&gt;

&lt;p&gt;But let's not keep you waiting any longer. Here is what I managed to achieve:&lt;/p&gt;

&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%2F172pzhmmoxfzuy5x8viz.png" 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%2F172pzhmmoxfzuy5x8viz.png" alt=" " width="800" height="126"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And here is a ready-made prompt using the &lt;code&gt;/statusline&lt;/code&gt; command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/statusline Create an OS-agnostic status line. Put the script and `settings.json` config in the user's Claude config dir (wherever it lives on this OS). Pick whatever scripting language is reliably available on this machine (POSIX shell, or Python/Node 
if shell tooling isn't guaranteed) — don't assume bash or jq. 
The script reads the status JSON from stdin. Output two lines:

Line 1: `[model.id] 📁 cwd 🌿 branch* | Xk`
- Model ID from .model.id in square brackets
- 📁 then basename of .workspace.current_dir
- 🌿 then git branch; omit this segment entirely if not a git repo; append `*` if the tree is dirty; invoke git so it won't disturb locks/index
- ` | ` then token usage from .context_window.total_input_tokens, rounded DOWN to nearest 1000 with a `k` suffix (e.g. 34k)
- Color the token count on a gradient toward a 150k threshold: green &amp;lt;25%, yellow &amp;lt;50%, orange &amp;lt;75%, red &amp;gt;=75% (256-color ANSI 46/226/208/196)
- Base text bright white (ANSI 97) for contrast

Line 2: `🕐 duration 💰 $cost`
- 🕐 session duration from .cost.total_duration_ms, formatted `Hh Mm` / `Mm Ss` / `Ss`
- 💰 session cost from .cost.total_cost_usd, formatted `$0.00`
- Same bright-white base color

Print the two lines separated by a newline. Guard every field access with a sensible default. Make the script executable/invokable per this OS's conventions.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>ai</category>
      <category>programming</category>
      <category>productivity</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
