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.
curl -O https://raw.githubusercontent.com/dancing-bear-show/dancing-bear/main/.claude/skills/install-tmux-namer/SKILL.mdgit clone --depth 1 https://github.com/dancing-bear-show/dancing-bearWrote 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.
[](https://agentmods.dev/skills/dancing-bear-show/dancing-bear/install-tmux-namer)<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.
<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>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.
| Model | Per session | Once 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 |
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 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.
Step 0: Disclose what the hook captures, and get consent
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/...whenXDG_CACHE_HOMEis unset (tmux-session-namer.py:51). Trimmed to the last 200 lines. The directory is created0700and the file opened0600, 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 emptyXDG_CACHE_HOMEcounts 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 -pto 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 -pevery 20th prompt, to generate the session name. Prompt text can include secrets or personal data. Install it? (y/n)
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.
- yesterday First seen · 827 lines · 58 tokens per session scan B 50392c3428d6
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.
install-tmux-namer compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| install-tmux-namerdancing-bear-show/dancing-bear | Skill | 7 | yesterday | MIT | B | 58 | Claude Code |
| gogolafkfreund/nixos_config | Skill | 32 | yesterday | GPL-3.0 | A | 125 | Claude Code, Codex |
| outlook-mcpmpalermiti/outlook-mcp | Skill | 41 | 2d ago | MIT | A | 96 | Claude Code, Codex |
| olkrlrghb/olkcli | Skill | 23 | 14d ago | MIT | A | 28 | Claude Code, Codex |
| mail-operationsdesirecore/market | Skill | 2 | today | MIT | A | 151 | Claude Code |
| corresyncnkiyohara/corresync | Skill | 2 | 2d ago | Apache-2.0 | A | 112 | Claude Code, Codex |
| c-calendardaxaur/openpaw | Skill | 178 | 5mo ago | MIT | A | 39 | Claude Code, Codex |