Names the current tmux window after the project directory while Claude Code is
running, then restores tmux's automatic renaming when the session ends. No-op
outside tmux. Active as soon as it's installed; no setup or dependencies beyond
tmux.
Start a Claude Code session inside a tmux window; the window title becomes
cc:<project-dir>. It reverts to automatic renaming when the session ends. There
is nothing to run standalone — the hooks call tmux directly.
hooks/hooks.json:
- SessionStart →
tmux rename-window "cc:<dir>"when$TMUXis set. - SessionEnd →
tmux set-option -w automatic-rename on.