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

tmux-status

各 Claude セッションが何をしているかを tmux のステータスバーに表示し、どのウィンドウが作業中で、あなたを待っていて、完了したかを一目で確認できる Claude Code mod。

XavierYounan@XavierYounan

XavierYounan/claude-code-tmux-status

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

この mod について

各セッションの状態(作業中、あなたを待機中、完了)を色付きのグリフとして tmux のウィンドウタブに表示する Claude Code mod です。マーケットプレイスと tmux/tpm 向けのインストール手順、デモ GIF も含まれています。

インストール

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

claude plugin marketplace add XavierYounan/claude-code-tmux-status
claude plugin install tmux-status
原文 / README

claude-code-tmux-status

A Claude Code mod that shows what each Claude session is doing in your tmux status bar, so you can see at a glance which windows are busy, which need you and which have finished.

tmux window tabs changing state: yellow dots while Claude works, red while it waits for you, green ticks when it finishes

| Glyph | State | Shown | | --- | --- | --- | | <img src="docs/working.svg" width="16" height="16" alt="yellow dot"> yellow | working on a turn | always | | <img src="docs/waiting.svg" width="16" height="16" alt="red dot"> red | waiting for you: a permission prompt, a question, an MCP elicitation | always | | <img src="docs/done.svg" width="16" height="16" alt="green tick"> green | finished its turn | only on windows you are not looking at |

Outside tmux the mod does nothing.

Install

1. The mod. From GitHub:

claude plugin marketplace add XavierYounan/claude-code-tmux-status
claude plugin install tmux-status@tmux-status

Or from a local clone, for one session: claude --plugin-dir /path/to/claude-code-tmux-status.

2. The tmux side. With tpm, add this after your theme's @plugin line (themes usually overwrite the window formats, so this needs to load after them), then press prefix + I:

set -g @plugin 'XavierYounan/claude-code-tmux-status'

Without tpm, clone the repo and source the snippet after your theme loads:

source-file /path/to/claude-code-tmux-status/tmux/claude-status.tmux

That prefixes the glyph to every window tab. To put it somewhere else, comment out the two if -F lines at the bottom of that file and drop #{E:@claude_status} into your own format. Colours are the @claude_icon_* options, so you can override them after sourcing.

How it works

The mod hooks Claude Code's turn, permission and tool events and runs tmux set-option -w -t $TMUX_PANE @claude_state <state>. Everything visual lives in tmux formats, so it works with any theme. The done state stays until your next prompt, but the format only shows it on inactive windows.

One state per window: if you run two Claude sessions in split panes of the same window, the last one to change wins.

Compatibility

Mods (Claude Code's function-hooks plugins) are early access, and their API can change between releases. Built and tested against Claude Code 2.1.289; if it stops working after an update, please open an issue.

Develop

claude plugin validate .
claude plugin test .

関連作品