Skip to content
프로젝트

소개

tmux에서 Claude Code를 관리합니다. 세션 관리, Git worktree 및 풀 리퀘스트를 지원하는 tmux 팝업을 제공합니다.

개발 도구

이 수치를 측정하는 방법

What you can do

  • Session Overview — See all tmux sessions at a glance with Claude Code status indicators
  • Status Detection — Know whether each Claude Code instance is idle, working, or waiting for input
  • Quick Switching — Jump to any session with minimal keystrokes
  • Live Preview — See the last lines of the selected session's Claude Code pane with full ANSI color support

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
+1
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

claude-tmux

A terminal user interface for managing multiple Claude Code sessions within tmux. claude-tmux provides a centralized view of all your Claude Code instances, enabling quick switching, status monitoring, and session lifecycle management, including git worktree and pull request support.

Installation

Cargo install

Just run:

cargo install claude-tmux

Add the following line to your ~/.tmux.conf:

bind-key C-c display-popup -E -w 80 -h 30 "~/.cargo/bin/claude-tmux"

Build from source

git clone https://github.com/nielsgroen/claude-tmux.git
cd claude-tmux
cargo build --release

Add this to your ~/.tmux.conf to bind claude-tmux to a key:

bind-key C-c display-popup -E -w 80 -h 30 "/path/to/claude-tmux"

How to use

Reload your tmux configuration. Press Ctrl-b, Ctrl-c to open claude-tmux from any tmux session.

To use pull requests, make sure you have gh installed.

Tmux options

Options:

  • -E — Close popup when claude-tmux exits
  • -w 80 -h 30 — Popup dimensions (adjust to preference)

Features

  • Session Overview — See all tmux sessions at a glance with Claude Code status indicators
  • Status Detection — Know whether each Claude Code instance is idle, working, or waiting for input
  • Quick Switching — Jump to any session with minimal keystrokes
  • Live Preview — See the last lines of the selected session's Claude Code pane with full ANSI color support
  • Session Management — Create, kill, and rename sessions without leaving the TUI
  • Expandable Details — View metadata like window count, pane commands, uptime, and attachment status
  • Fuzzy Filtering — Quickly filter sessions by name or path

Screenshots

View the screenshots at GitHub.

claude-tmux Screenshotclaude-tmux Screenshot 2

Status indicators:

  • ● — Working: Claude is actively processing
  • ○ — Idle: Ready for input
  • ◐ — Waiting for input: Permission prompt ([y/n])
  • ? — Unknown: Not a Claude Code session or status unclear

Keybindings

Navigation

Key Action
j / ↓ Move selection down
k / ↑ Move selection up
l / → Expand session details
h / ← Collapse session details
Enter Switch to selected session

Actions

Key Action
n Create new session
K Kill selected session (with confirmation)
r Rename selected session
/ Filter sessions by name/path
Ctrl+c Clear filter
R Refresh session list

Other

Key Action
? Show help
q / Esc Quit

Status Detection

claude-tmux detects Claude Code status by analyzing pane content:

Pattern Status
Input prompt (❯) with border above + "ctrl+c to interrupt" Working
Input prompt (❯) with border above, no interrupt message Idle
Contains [y/n] or [Y/n] Waiting for input
Otherwise Unknown

Session Model

claude-tmux identifies sessions containing Claude Code by looking for panes running the claude command. The displayed working directory and preview come from the Claude Code pane when present, otherwise from the first pane.

Sessions are sorted with attached sessions first, then alphabetically by name.

Dependencies

Project Structure

claude-tmux/
├── Cargo.toml
├── src/
│   ├── main.rs        # Entry point, terminal setup
│   ├── app.rs         # Application state machine
│   ├── ui.rs          # Ratatui rendering
│   ├── tmux.rs        # tmux command wrapper
│   ├── session.rs     # Session/Pane data structures
│   ├── detection.rs   # Claude Code status detection
│   └── input.rs       # Keyboard event handling
└── README.md

관련 프로젝트 살펴보기

불러오는 중…