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

session-status

セッションの経過時間、プロンプト数、ツール呼び出し数を表示するステータス行を追加する Claude Code プラグインです。CLAUDE_CODE_PLUGIN_DIRS または claude --plugin-dir フラグでインストールできます。

liawzishen@liawzishen

liawzishen/claude-code-mods/tree/main/session-status

翻訳済み

この mod について

session-status は claude-code-mods コレクションに含まれる Claude Code モッドです。検証済みの .claude-plugin/plugin.json と、tool.call hook を登録する hooks/register.tsx モジュールを備えています。セッションの時間、プロンプト数、ツール呼び出し数を示すステータス行を描画します。~/.claude/settings.json の CLAUDE_CODE_PLUGIN_DIRS 環境変数の項目にフォルダーを追加するとすべてのセッションで読み込めます(ライブリロードには CLAUDE_CODE_PLUGIN_DIR_WATCH=1 も設定します)。1 セッションだけなら claude --plugin-dir ./session-status を使います。claude plugin validate と claude plugin test で検証とテストを行えます。

インストール

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

claude plugin marketplace add liawzishen/claude-code-mods
claude plugin install session-status
原文 / README

claude-code-mods

Mods that change Claude Code's UI, in the terminal and the desktop app's Code tab. Each folder is one mod: a plugin of function hooks.

| Mod | What it does | | --- | --- | | git-diff-timeline | A Git Diff timeline above the prompt. Click one commit to see it or two to compare them, with their commit messages. A Branches tab compares two branches. A GitHub-style "Files changed" panel shows each file's diff. | | session-status | A status line with the session's time, prompts and tool calls. |

Use them

To load mods in every session, list their folders in the env block of ~/.claude/settings.json. Separate the paths with ; on Windows and : elsewhere:

{
  "env": {
    "CLAUDE_CODE_PLUGIN_DIRS": "C:\\path\\to\\claude-code-mods\\git-diff-timeline;C:\\path\\to\\claude-code-mods\\session-status",
    "CLAUDE_CODE_PLUGIN_DIR_WATCH": "1"
  }
}

A session reads this when it starts. With CLAUDE_CODE_PLUGIN_DIR_WATCH=1, open sessions reload a mod when its files change.

To load a mod for one session only: claude --plugin-dir ./git-diff-timeline.

Make a new mod

my-mod/
  .claude-plugin/plugin.json   { "name": "my-mod", "version": "0.1.0", "description": "..." }
  hooks/hooks.json             { "modules": ["./register.tsx"] }
  hooks/register.tsx           export const register: Register = (on, options) => { ... }

See CLAUDE.md for the rules the engine holds mods to.

Check a mod

claude plugin test ./git-diff-timeline
claude plugin validate ./git-diff-timeline

関連作品