dancing-bear: Skill for Claude Code

.claude/skills/install-tmux-namer/SKILL.md

install-tmux-namer is a skill for Claude Code from dancing-bear-show/dancing-bear. It costs 58 tokens per session (8,784 once invoked), scanned B, original, MIT.

An installer for a tmux session-naming hook. tmux is a terminal tool that keeps command-line sessions open and organized, and the hook names sessions from recent prompts.

In plain words
What is it for?
It is for setting up automatic names for tmux sessions and optionally synchronizing an iTerm tab name.
Why use it?
It reduces the need to rename sessions manually, while documenting that prompt text is saved locally and requires the user's consent.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; mentions Claude Code.

This is dancing-bear-show/dancing-bear's own configuration. It tells Claude Code how to work on dancing-bear itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything dancing-bear configures →

Reuse

Borrowing it

Nothing to install: this file belongs to dancing-bear-show/dancing-bear. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/dancing-bear-show/dancing-bear/main/.claude/skills/install-tmux-namer/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/dancing-bear-show/dancing-bear

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for install-tmux-namer

README.md
[![agentmods](https://agentmods.dev/badge/skills/dancing-bear-show/dancing-bear/install-tmux-namer/github.svg)](https://agentmods.dev/skills/dancing-bear-show/dancing-bear/install-tmux-namer)
Your own site
<a href="https://agentmods.dev/skills/dancing-bear-show/dancing-bear/install-tmux-namer"><img src="https://agentmods.dev/badge/skills/dancing-bear-show/dancing-bear/install-tmux-namer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for install-tmux-namer

Your own site · 80×15
<a href="https://agentmods.dev/skills/dancing-bear-show/dancing-bear/install-tmux-namer"><img src="https://agentmods.dev/badge/skills/dancing-bear-show/dancing-bear/install-tmux-namer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 8,784 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00058 $0.08784
Opus 5.5 $0.00023 $0.03514
Sonnet 5.5 $0.00012 $0.01757
Haiku 4.5 $0.00006 $0.00878

Measured yesterday against content hash 50392c3428d6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

install-tmux-namer scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

description: Install the tmux auto-session-namer hook for Claude Code. Copies the hook script, patches ~/.claude/settings.json, and optionally patches ~/.zshrc for iTerm tab sync. Use when setting up a new machine or aft
.claude/skills/install-tmux-namer/SKILL.md · 827 lines

How it starts

The opening of the file, as written. The whole thing — 827 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Install tmux Session Auto-Namer

Installs the Claude Code hook that automatically renames your tmux session to a short AI-generated summary of what you're working on, updated every 20 prompts.

This hook records prompt text. Do not install it without telling the user first and getting an explicit yes.

What it does on every prompt (configs/llm/tmux-session-namer.py:50-95):

  • Appends the first 120 characters of the prompt to $XDG_CACHE_HOME/claude/prompts-<session-id>.txt, falling back to ~/.cache/claude/... when XDG_CACHE_HOME is unset (tmux-session-namer.py:51). Trimmed to the last 200 lines. The directory is created 0700 and the file opened 0600, so it is user-private — but it is still prompt text at rest on disk.

    Resolve the real path before asking, so consent names the actual location. This must match the hook's own fallback exactly (tmux-session-namer.py:70-73): an empty XDG_CACHE_HOME counts as unset per the XDG spec, and a set-but-relative value is rejected too, since joining it would land under the current working directory rather than the user's home:

    python3 -I -S -c "import os; _xdg = os.environ.get('XDG_CACHE_HOME') or ''; _xdg = _xdg if os.path.isabs(_xdg) else os.path.expanduser('~/.cache'); print(os.path.join(_xdg, 'claude'))"
    
  • Every 20th prompt, sends the last 20 recorded lines to claude -p to generate the session name. That is an outbound model call containing those prompt fragments.

Prompts from unrelated work can contain credentials, tokens, customer data or other PII, and this capture does not distinguish them. Say this plainly, in these terms, and install only on an explicit yes:

This hook saves the first 120 characters of every prompt to /prompts-*.txt and sends the last 20 of them to claude -p every 20th prompt, to generate the session name. Prompt text can include secrets or personal data. Install it? (y/n)

Read the full file on GitHub · 827 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 827 lines · 58 tokens per session scan B 50392c3428d6

Subscribe to this mod's changes

install-tmux-namer is a skill published in the GitHub repository dancing-bear-show/dancing-bear (7 stars, last pushed yesterday), licensed MIT. It adds 58 tokens to every session and 8,784 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-07.

Related

install-tmux-namer compared with skills from other repositories

install-tmux-namer next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
install-tmux-namerdancing-bear-show/dancing-bearSkill7yesterdayMITB58Claude Code
gogolafkfreund/nixos_configSkill32yesterdayGPL-3.0A125Claude Code, Codex
outlook-mcpmpalermiti/outlook-mcpSkill412d agoMITA96Claude Code, Codex
olkrlrghb/olkcliSkill2314d agoMITA28Claude Code, Codex
mail-operationsdesirecore/marketSkill2todayMITA151Claude Code
corresyncnkiyohara/corresyncSkill22d agoApache-2.0A112Claude Code, Codex
c-calendardaxaur/openpawSkill1785mo agoMITA39Claude Code, Codex