<?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: Yeskendir Salgara</title>
    <description>The latest articles on DEV Community by Yeskendir Salgara (@sorunokoe).</description>
    <link>https://dev.to/sorunokoe</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%2F3886533%2F42650408-d258-413f-b673-16c1408f2aab.jpeg</url>
      <title>DEV Community: Yeskendir Salgara</title>
      <link>https://dev.to/sorunokoe</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sorunokoe"/>
    <language>en</language>
    <item>
      <title>I built a token observatory for Claude Code because I was tired of flying blind</title>
      <dc:creator>Yeskendir Salgara</dc:creator>
      <pubDate>Sat, 18 Apr 2026 20:11:53 +0000</pubDate>
      <link>https://dev.to/sorunokoe/i-built-a-token-observatory-for-claude-code-because-i-was-tired-of-flying-blind-2n0d</link>
      <guid>https://dev.to/sorunokoe/i-built-a-token-observatory-for-claude-code-because-i-was-tired-of-flying-blind-2n0d</guid>
      <description>&lt;h2&gt;
  
  
  The problem
&lt;/h2&gt;

&lt;p&gt;An hour into a Claude Code session, I got: &lt;strong&gt;"Context window full."&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I had no idea what burned it. Was it the MCP tools fetching docs? The thinking budget? The growing list of edited files? I was flying blind on a meter that was costing me real money.&lt;/p&gt;

&lt;p&gt;So I built &lt;strong&gt;Scopeon&lt;/strong&gt; - a real-time observability tool that gives you X-ray vision into every token your AI coding agent consumes.&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.amazonaws.com%2Fuploads%2Farticles%2F6bfp7jpbt047otwydi51.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.amazonaws.com%2Fuploads%2Farticles%2F6bfp7jpbt047otwydi51.png" alt=" " width="800" height="511"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Key features
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Turn-by-turn token breakdown&lt;/strong&gt; — see every component, not just totals&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Prompt cache ROI&lt;/strong&gt; — hit rate gauge + dollars saved vs. uncached&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Context countdown&lt;/strong&gt; — "~12 turns remaining" before hitting the wall&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CI cost gate&lt;/strong&gt; — &lt;code&gt;scopeon ci report --fail-on-cost-delta 50&lt;/code&gt; fails PRs on AI cost spikes&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;14 MCP tools&lt;/strong&gt; — Claude Code can query its own token stats without polling&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Browser dashboard&lt;/strong&gt; — live WebSocket charts, zero npm&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Fully local&lt;/strong&gt; — no cloud, no accounts, SQLite on your machine&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Works with
&lt;/h2&gt;

&lt;p&gt;Claude Code, GitHub Copilot CLI, Aider, Cursor, Gemini CLI, Ollama&lt;/p&gt;

&lt;h2&gt;
  
  
  Install
&lt;/h2&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://raw.githubusercontent.com/sorunokoe/Scopeon/main/install.sh | sh
 scopeon onboard
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The architecture (for the Rust folks)&lt;/p&gt;

&lt;p&gt;Five crates:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;scopeon-core — SQLite schema + pricing engine&lt;/li&gt;
&lt;li&gt;scopeon-collector — file watchers per provider&lt;/li&gt;
&lt;li&gt;scopeon-mcp — MCP server (14 tools over stdio)&lt;/li&gt;
&lt;li&gt;scopeon-tui — ratatui dashboard&lt;/li&gt;
&lt;li&gt;scopeon-metrics — aggregation + health scoring&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Adding a new AI provider takes ~50 lines of Rust.&lt;/p&gt;

&lt;p&gt;→ GitHub: &lt;a href="https://github.com/sorunokoe/Scopeon" rel="noopener noreferrer"&gt;https://github.com/sorunokoe/Scopeon&lt;/a&gt;&lt;/p&gt;

</description>
      <category>rust</category>
      <category>ai</category>
      <category>claudecode</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
