ClaudeMods
☰
ZH-CN
● 0 人在线 · 浏览 0 次
赞助提交作品
GitHub 仓库 · 发布者 richard-parayno

ccsidebar

可切換的 Claude Code 右側邊欄外掛,顯示使用額度、上下文視窗、prompt 快取倒數、每回合活動、工作階段統計與異動檔案。

已翻译

关于这个 mod

ccsidebar 是 Claude Code 的右側邊欄外掛,可透過 /sidebar 切換顯示,內容涵蓋使用額度、上下文視窗、prompt 快取倒數環、每回合活動、工作階段統計以及被異動的檔案清單(含 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 |

更多类似作品