ClaudeMods
☰
JA
● 0 人がオンライン ・閲覧 0 回
スポンサー作品を投稿
GitHub リポジトリ · 投稿者 richard-parayno

ccsidebar

使用量上限、コンテキストウィンドウ、プロンプトキャッシュのカウントダウン、ターンごとの活動、セッション統計、変更ファイルを表示できる、切り替え式 Claude Code 右サイドバープラグインです。

richard-parayno@richard-parayno

richard-parayno/ccsidebar

元の投稿の画像1
翻訳済み

この mod について

ccsidebar は Claude Code の右サイドバープラグインで、/sidebar で表示を切り替えられます。使用量上限、コンテキストウィンドウ、プロンプトキャッシュのカウントダウンリング、ターンごとの活動、セッション統計、変更されたファイルの一覧(A/M/R 状態と行数差分を含む)を表示します。配色にはターミナルの 16 色パレットを使い、shell のテーマに従います。/plugin marketplace add richard-parayno/ccsidebar で追加し、/plugin install ccsidebar@ccsidebar を実行してインストールします。ローカル開発では repo を mods フォルダーへリンクして CLAUDE_CODE_PLUGIN_DIRS を設定すると、ファイルを保存したときにすぐ再読み込みされます。

インストール

まず作者の README で marketplace とプラグイン名を確認してください。コマンドはリポジトリの構成によって変わる場合があります。

claude plugin marketplace add richard-parayno/ccsidebar
claude plugin install ccsidebar
原文 / README

ccsidebar

A toggle-able right sidebar mod for Claude Code showing usage limits, context window, prompt-cache countdown, per-turn activity, session stats and touched files. Colors use your terminal's 16-color palette, so they follow your shell theme.

ccsidebar showing limits, context, cache, activity, session and files

Use

  • /sidebar toggles the pane. r refreshes, x closes while it has focus.
  • Opens on its own at 144+ columns if you left it open last time.

Install

/plugin marketplace add richard-parayno/ccsidebar
/plugin install ccsidebar@ccsidebar

Develop locally

Link the repo into a mods folder and list it in CLAUDE_CODE_PLUGIN_DIRS (the env block of ~/.claude/settings.json; separate several with :):

mkdir -p ~/.claude/mods && ln -s ~/Code/ccsidebar ~/.claude/mods/ccsidebar
{ "env": { "CLAUDE_CODE_PLUGIN_DIRS": "~/.claude/mods/ccsidebar" } }

The folder is watched: saving a file reloads the mod live. Don't also install it from the marketplace on the same machine, or two copies load.

Develop

claude plugin validate .
claude plugin test .
tsc -p .          # after one load, which lays the types in .claude-plugin/types/

| File | What | | --- | --- | | hooks/register.tsx | hooks and state: usage, context, turns, tools, cache timing | | hooks/view.tsx | the drawing: sections, cards, type scale | | hooks/pixels.ts | box grids and the terminal/theme palettes | | hooks/cache.ts | prompt-cache TTL rule, hit/miss prediction, countdown ring | | hooks/files.ts | per-file status (A/M/R) and line deltas | | hooks/format.ts | numbers, durations, pace | | types/index.d.ts | the $.state contract |

関連作品