Urgent.News

What's breaking now, across thousands of outlets.

AI

Wanted to know which project used up Claude Code's quota, so I wrote a small tool.

撞到 Claude Code 5 小時或每週上限的時候,我最想知道的是哪個專案用掉的,但 /usage 答不出來。它只給帳號層級的百分比,再加幾個像「>150k context」、「4+ parallel sessions」的標籤,沒有拆到專案,那些百分比也沒辦法自己驗算。 Claude Code 本來就會把每則訊息的 token 用量寫進本機的 session transcript( ~/.claude/projects/*/*.jsonl )。所以我寫了一個 skill 叫 quota-audit,讀這些檔案,按專案、按 skill 整理用量,也列出真正撞到上限的時間點和當下被擋的 repo。它只讀檔,不會寫入任何東西,資料也不會送出去。 報表長怎樣 開頭先放幾行算好的結論,接著每個視窗(5h、24h、7d)一列總覽,最後才是最長那個視窗的明細。節錄一段範例: KEY…

Translated from Chinese Read in Chinese

A developer has created a plugin called "quota-audit" for Claude Code, which helps users track their usage and identify which projects are consuming the most resources. The plugin reads local session transcript files and provides a detailed report on usage by project and skill, including estimated costs and rate-limit hits. The report shows that a single project, "my-app", accounts for a significant portion of usage. The plugin is available for installation via the Claude Code plugin marketplace.

Written by urgent.news from Dev.to's report — not a translation of it. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in AI

Exam Buddy: A Local Gemma 3 Quiz Tool I Built for a Friend's OS Exam

This is a submission for the Hacktoberfest Weekend Challenge: Build for a Friend What I Built A friend of mine was preparing for an Operating Systems exam , and his study method was the one most of us…

  • Exam Buddy is an AI-powered quiz tool built for an Operating Systems exam.
  • Tool offers multiple quiz modes: multiple-choice, AI-graded answers, and mixed mode.
  • Exam Buddy provides personalized explanations and tracks user performance over time.

More from Monday 5 October →