swarm: Command for Claude Code

.claude/commands/tmux.md

tmux is a command for Claude Code from swarm-ai-research/swarm. It costs 0 tokens per session (554 once invoked), scanned A, original, MIT.

A quick reference for tmux keyboard shortcuts. tmux is a terminal tool for splitting one terminal into panes, managing tabs, and keeping sessions running.

In plain words
What is it for?
Use it to split panes, switch windows, move between sessions, resize views, and detach from running work.
Why use it?
It helps you find the right key combination when navigating or managing a multi-session terminal setup.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions Claude Code.

This is swarm-ai-research/swarm's own configuration. It tells Claude Code how to work on swarm 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 swarm configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is ./scripts/claude-tmux.sh 2 panes (default).

Reuse

Borrowing it

Nothing to install: this file belongs to swarm-ai-research/swarm. 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/swarm-ai-research/swarm/main/.claude/commands/tmux.md
Clone the repo
git clone --depth 1 https://github.com/swarm-ai-research/swarm

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 tmux

README.md
[![agentmods](https://agentmods.dev/badge/commands/swarm-ai-research/swarm/tmux/github.svg)](https://agentmods.dev/commands/swarm-ai-research/swarm/tmux)
Your own site
<a href="https://agentmods.dev/commands/swarm-ai-research/swarm/tmux"><img src="https://agentmods.dev/badge/commands/swarm-ai-research/swarm/tmux/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 tmux

Your own site · 80×15
<a href="https://agentmods.dev/commands/swarm-ai-research/swarm/tmux"><img src="https://agentmods.dev/badge/commands/swarm-ai-research/swarm/tmux.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 554 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00000 $0.00554
Opus 5 $0.00000 $0.00277
Sonnet 5 $0.00000 $0.00111
Haiku 4.5 $0.00000 $0.00055

Measured 5d ago against content hash 28c30364e50a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

tmux scanned grade A with 0 findings 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 5d ago.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/tmux.md · 72 lines

How it starts

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

/tmux

Print the tmux keyboard shortcut reference card for splitting panes, switching windows, and managing the multi-session Claude Code layout — invoke when you need a keybinding, when setting up the ./scripts/claude-tmux.sh environment, or when tmux pane navigation is unclear.

Behavior

Print the following reference card:

tmux Hotkeys (prefix = Ctrl-b)
══════════════════════════════════════════════════

  Panes
  ─────────────────────────────────
  Ctrl-b |         Split vertical (side by side)
  Ctrl-b -         Split horizontal (top/bottom)
  Ctrl-b arrow     Move between panes
  Ctrl-b z         Zoom/unzoom pane (fullscreen)
  Ctrl-b x         Close pane
  Ctrl-b q         Show pane numbers (tap # to jump)
  Ctrl-b Shift-arrow  Resize pane

  Windows (tabs)
  ─────────────────────────────────
  Ctrl-b c         New window
  Ctrl-b n / p     Next / previous window
  Ctrl-b 1-9       Jump to window by number
  Ctrl-b ,         Rename window
  Ctrl-b &         Close window

  Sessions
  ─────────────────────────────────
  Ctrl-b d         Detach (session stays running)
  Ctrl-b s         List / switch sessions
  Ctrl-b $         Rename session

  Scroll / Copy
  ─────────────────────────────────
  Ctrl-b [         Enter scroll mode (arrows / PgUp)
  q                Exit scroll mode

  Mouse
  ─────────────────────────────────
  Click pane       Switch to it
  Drag border      Resize pane
  Scroll wheel     Scroll history

══════════════════════════════════════════════════

  Launch scripts
  ─────────────────────────────────
  ./scripts/claude-tmux.sh          2 panes (default)
  ./scripts/claude-tmux.sh 3        3 panes
  ./scripts/claude-tmux.sh kill     Kill tmux session (worktrees kept)
  ./scripts/claude-tmux.sh cleanup  Remove all session worktrees + branches

  Session worktrees
  ─────────────────────────────────
  Each pane runs in its own git worktree:
    .worktrees/session-<N>  →  branch session/pane-<N>

  This eliminates staging-area races and push conflicts
  between concurrent sessions.

  Workflow:
    /ship --all           Commit to session branch
    /merge_session       Rebase + push session branch to main
    /merge_session --all Batch merge all session branches

Read the full file on GitHub · 72 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. 5d ago First seen · 72 lines · 0 tokens per session scan A 28c30364e50a

Subscribe to this mod's changes

tmux is a command published in the GitHub repository swarm-ai-research/swarm (42 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 554 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.