hamzafer/claude-code-mods/tree/main/mods/context-bar

コンテキストウィンドウをプロンプト上の積み上げ棒グラフとして表示し、カテゴリごとに色分けし、トークン数と圧縮ポイントを示します。/context-bar で表示または非表示にできます。
hamzafer/claude-code-mods/tree/main/mods/context-bar

<td align="center" width="33%"><a href="docs/mods.md#-where-am-i"><img src="images/gallery/where-am-i.png" alt="where-am-i:セッションの目標、現在のステップ、あなたを待っているもの、Claude Code プロンプトの上" width="260"></a><br>📍 <b>where-am-i</b><br>目標、現在、あなたを待っているもの</td>
<td align="center" width="33%"><a href="docs/mods.md#-lines-above-the-prompt"><img src="images/gallery/lines.png" alt="token-weather、usage-meter などの Claude Code ステータス行がプロンプトの上に積み重なっています" width="260"></a><br>🌦️ <b>token-weather と仲間たち</b><br>プロンプトの上の行</td>
<td align="center" width="33%"><a href="#mission-control"><img src="images/gallery/mission-control.png" alt="mission-control:Claude Code サブエージェント、ツール呼び出し、それらが触れるファイル、ライブ" width="260"></a><br>🛰️ <b>mission-control</b><br>エージェントとそれらが触れるコード</td>
</tr>
</table>
マーケットプレイスを一度追加してから、任意の mod を名前でインストールします:
claude plugin marketplace add hamzafer/claude-code-mods
claude plugin install context-bar@claude-code-mods
または、汎用セットを一度にインストールします:
for m in context-bar token-weather usage-meter where-am-i next-steps agent-radar review-watch replay-theater md-preview blast-radius mission-control; do
claude plugin install "$m@claude-code-mods"
done
インストール後に Claude Code を再起動してください。インストールせずに試すには:
git clone https://github.com/hamzafer/claude-code-mods && cd claude-code-mods
claude --plugin-dir mods/context-bar
必要 Claude Code 2.1.287+。一部の mod はさらに多くを必要とします(Chrome、
gh、コネクタ)。どの mod が必要かは表に記載されています。
| | Mod | 機能 | コマンド |
| --- | --- | --- | --- |
| 🛰️ | mission-control | エージェント、ツール呼び出し、およびそれらが触れるコードのライブマップ | /mission |
| 📊 | context-bar | コンテキストウィンドウを1つの積み上げバーとして表示。カテゴリごとに色分けし、トークン数と圧縮される位置を表示 | /context-bar |
| 🌦️ | token-weather | コンテキストの充填を Clear から Compact soon まで表示、さらにプロンプトキャッシュのカウントダウン | |
| ⏱️ | cache-clock | ステータス行の下にプロンプトキャッシュ行を表示。Claude Code 自身の数値に基づく:残り時間、ヒット率とミス、そして冷えた後に次のメッセージが再キャッシュするトークン。Node と Claude Code 2.1.251+ が必要 | /cache-clock setup |
| 📍 | where-am-i | 目標、現在行っていること、あなたを待っていること、次のステップ | /where |
| ➡️ | next-steps | 各ターン後に可能性の高い次のプロンプトを2つか3つ、1つのキーで下書き | 1 2 3、0 で非表示 |
| 💰 | usage-meter | 5時間および7日間のプラン使用量、リセットのカウントダウン、セッションのコスト | |
| 💳 | openai-balance | OpenAI API クレジット:ゲージ付きの推定残高、今日の支出、主な支出先、最後の呼び出し。OpenAI 組織の Admin キーが必要 | /openai-balance |
| 📡 | agent-radar | 実行中の各サブエージェントにつき1行のライブ表示 | /radar |
| 🔍 | review-watch | 実行中の各コードレビュー(Codex またはレビューサブエージェント)につき1行のライブ表示。モデル、対象、経過時間、Codex の最新出力を含む。終了時にトーストで検出事項を一覧表示 | |
| 🌐 | browser-lanes | このセッションにブラウザがあるかどうか、そして誰が保持しているか | /browser |
| 🕌 | prayer-times | 現在の礼拝と残り時間、次の礼拝、および zawal。あなたのコンピュータ上で計算、Hanafi または標準 Asr | /prayers |
| 🎬 | replay-theater | 最後のターンの編集を1つずつ diff でステップ実行 | /replay |
| 📝 | md-preview | Claude が編集する Markdown ファイルを GitHub のようにレンダリング。前後を並べて表示。Chrome と画像を表示できるターミナルが必要 | /md |
| | Mod | 機能 | コマンド |
| --- | --- | --- | --- |
| 💥 | blast-radius | rm -r、強制プッシュ、マイグレーションを保留し、何が削除されるかを表示し、60 秒以内に回答がなければキャンセルします | |
| | Mod | 機能 | コマンド |
| --- | --- | --- | --- |
| 🔀 | switchboard | モデルを指定していない各サブエージェントに対して、その短いラベルだけから、OpenAI's Decisions API または Jev を使ってモデルを選びます。各サブエージェントのコストを表示します | /route |
これらは私自身のツールとルールを中心に作られています。フォークして、ルールを自分のものに変更してください。
| | Mod | 機能 | コマンド |
| --- | --- | --- | --- |
| 👀 | glance | あなたを必要とするものを 1 行で表示:次の会議、PR、Linear の課題、Slack の DM。gh と Google Calendar、Linear、Slack のコネクタが必要です | /glance |
| 🚦 | merge-gate | gh pr merge を、CI がグリーンになり Codex が一度レビューするまで保留します。gh と Codex CLI が必要です。レビューは 1 つの固定モデルで実行されます。自分のものに変更してください | /gate |
| 📏 | rulebook-guard | 私の文章と git のルールを強制します。em ダッシュを書き換え、--amend、未フォーマットのプッシュ、ノート内のメールアドレスと電話番号の前に確認します | |
| 💾 | session-saver | 前回の続きを保存し、再開時に表示します。unpause が必要です | /park [note] |
| | Mod | 機能 | コマンド |
| --- | --- | --- | --- |
| 📱 | reels | Claude が作業している間は YouTube Shorts を再生し、終わったら一時停止します | /reels |
| 🐍 | snake | Claude が作業している間にスネーク | /snake |
| 🎵 | now-playing | Spotify で再生中の内容を、進行バー、歌われている歌詞、⏮ ⏸ ⏭ ボタンとともに表示します。macOS と Spotify アプリが必要です | /music |
<a id="mission-control"></a>
すべてのサブエージェント、すべてのツール呼び出し、そしてそれらが触れるすべてのファイルを、チャットの隣のペインに表示します。4倍速で表示:2つのサブエージェントが4つのファイルにまたがってログアウト機能を構築しています。

他の mod と同様にインストールし、再起動して、/mission と入力します(コードマップを開くには /mission code)。q で閉じます。
w はエージェントとすべてのツール呼び出しをライブで表示しますc はインポート矢印付きのコードマップを表示しますCode ビューには macOS、Google Chrome、そして画像を表示できるターミナル(Ghostty、kitty、iTerm2)も必要です。Who ビューはどこでも動作します。
まず作者の README で marketplace とプラグイン名を確認してください。コマンドはリポジトリの構成によって変わる場合があります。
claude plugin marketplace add hamzafer/claude-code-mods claude plugin install context-bar
Add the marketplace once, then install any mod by name:
claude plugin marketplace add hamzafer/claude-code-mods
claude plugin install context-bar@claude-code-mods
Or install the general-purpose set in one go:
for m in context-bar token-weather usage-meter where-am-i next-steps agent-radar review-watch replay-theater md-preview blast-radius mission-control; do
claude plugin install "$m@claude-code-mods"
done
Restart Claude Code after installing. To try one without installing:
git clone https://github.com/hamzafer/claude-code-mods && cd claude-code-mods
claude --plugin-dir mods/context-bar
Needs Claude Code 2.1.287+. A few mods need more (Chrome,
gh, a connector); the tables say which.
| | Mod | What it does | Command |
| --- | --- | --- | --- |
| 🛰️ | mission-control | Live map of agents, tool calls and the code they touch | /mission |
| 📊 | context-bar | Your context window as one stacked bar, a color per category, with token counts and where it compacts | /context-bar |
| 🌦️ | token-weather | Context fill from Clear to Compact soon, plus a prompt-cache countdown | |
| ⏱️ | cache-clock | A prompt-cache line under your status line, from Claude Code's own figures: time left, hit rate and misses, and the tokens your next message re-caches once it goes cold. Needs Node and Claude Code 2.1.251+ | /cache-clock setup |
| 📍 | where-am-i | Goal, doing now, waiting on you, next step | /where |
| ➡️ | next-steps | 2 or 3 likely next prompts after each turn, one key to draft one | 1 2 3, 0 hides |
| 💰 | usage-meter | 5-hour and 7-day plan usage, the reset countdown and the session's cost | |
| 💳 | openai-balance | Your OpenAI API credit: an estimated balance with a gauge, today's spend, where the money mostly went, and the last call. Needs an OpenAI organization Admin key | /openai-balance |
| 📡 | agent-radar | One live line per running subagent | /radar |
| 🔍 | review-watch | One live line per running code review (Codex or a review subagent) with the model, target, elapsed time and Codex's latest output. A toast lists the findings when it ends | |
| 🌐 | browser-lanes | Whether this session has a browser, and who holds it | /browser |
| 🕌 | prayer-times | The current prayer and how long is left, the next one, and zawal. Computed on your computer, Hanafi or standard Asr | /prayers |
| 🎬 | replay-theater | Steps through the last turn's edits, one diff at a time | /replay |
| 📝 | md-preview | Renders the Markdown files Claude edits like GitHub does, with before and after side by side. Needs Chrome and a terminal that shows images | /md |
| | Mod | What it does | Command |
| --- | --- | --- | --- |
| 💥 | blast-radius | Holds rm -r, force pushes and migrations, shows what they'd delete, cancels after 60 s with no answer | |
| | Mod | What it does | Command |
| --- | --- | --- | --- |
| 🔀 | switchboard | Picks the model for each subagent that doesn't name one, with OpenAI's Decisions API or Jev, from its short label only. Shows what every subagent cost | /route |
These are built around my own tools and rules. Fork them and change the rules to yours.
| | Mod | What it does | Command |
| --- | --- | --- | --- |
| 👀 | glance | One line with what needs you: next meeting, PRs, Linear issues, Slack DMs. Needs gh and the Google Calendar, Linear and Slack connectors | /glance |
| 🚦 | merge-gate | Holds gh pr merge until CI is green and Codex reviewed once. Needs gh and the Codex CLI. Reviews run on one fixed model; change it to yours | /gate |
| 📏 | rulebook-guard | Enforces my writing and git rules: rewrites em dashes, asks before --amend, unformatted pushes, emails and phone numbers in notes | |
| 💾 | session-saver | Saves where you left off, shows it on resume. Needs unpause | /park [note] |
| | Mod | What it does | Command |
| --- | --- | --- | --- |
| 📱 | reels | YouTube Shorts while Claude works, pauses when it's done | /reels |
| 🐍 | snake | Snake while Claude works | /snake |
| 🎵 | now-playing | What Spotify is playing, with a progress bar, the lyric being sung, and ⏮ ⏸ ⏭ buttons. Needs macOS and the Spotify app | /music |
<a id="mission-control"></a>
Every subagent, every tool call and every file they touch, in a pane next to the chat. Shown at 4x: two subagents building a logout feature across four files.

Install it like any mod, restart, and type /mission (or /mission code to open the code map). q closes it.
w shows the agents and every tool call, livec shows the code map, with import arrowsThe Code view also needs macOS, Google Chrome and a terminal that shows images (Ghostty, kitty, iTerm2). The Who view works everywhere.