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

tmux-status

一个 Claude Code mod,在 tmux 状态栏中显示每个 Claude 工作阶段正在做什么,让你一眼看出哪些窗口繁忙、哪些需要你、哪些已经完成。

XavierYounan@XavierYounan

XavierYounan/claude-code-tmux-status

原帖图片1
已翻译

关于这个 mod

一个 Claude Code mod,将每个工作阶段的状态(工作中、等待你、已完成)作为有色字形显示在 tmux 窗口标签上,并提供适用于市场和 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 .

更多类似作品