tmux

A command for opening Git worktrees in tmux, a terminal tool that lets you manage several shell sessions in one window.

In plain words
What is it for?
Use it to open a selected branch in a new tmux window or split, start an editor, or create a detached tmux session.
Why use it?
It reduces the manual work of finding a worktree and arranging the right terminal window or split pane for it.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/mirinodev/maestro/tmux
Clone the repo
git clone --depth 1 https://github.com/mirinodev/maestro
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 3,331 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. Scan, not verified.
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 $0.00000 $0.03331
Opus 5 $0.00000 $0.01665
Sonnet 5 $0.00000 $0.00666
Haiku 4.5 $0.00000 $0.00333

Measured 3d ago against content hash b031a9e27c5e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

tmux 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 3d 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

sudo apt-get install tmux
docs/commands/tmux.md · 441 lines

How it starts

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

🔸 tmux

Command to integrate maestro with tmux for enhanced terminal session management. Provides seamless worktree navigation and session management within tmux environments.

Overview

mst tmux [branch-name] [options]
mst t [branch-name] [options]  # alias

Usage Examples

Basic Usage

# Interactive worktree selection with tmux
mst tmux

# Open specific worktree in new tmux window
mst tmux feature/auth

# Open in vertical split pane
mst tmux feature/api --vertical

# Open in horizontal split pane  
mst tmux bugfix/login --split-pane

Advanced Usage

# Create new tmux window
mst tmux feature/dashboard --new-window

# Open with specific editor
mst tmux feature/ui --editor cursor

# Detached session management
mst tmux feature/backend --detach

Options

Option Short Description Default
--new-window -n Open in new tmux window false
--split-pane -p Split current pane false
--vertical -v Vertical split (with split-pane) false
--editor <name> Open editor after tmux setup none
--detach Create detached session false

Tmux Integration

Session Management

The command integrates with tmux to provide:

  • Session detection: Automatically detects existing tmux sessions
  • Window management: Creates new windows or splits panes as needed
  • Worktree navigation: Changes directory to selected worktree
  • Environment setup: Sets appropriate environment variables
  • Pane Titles: All tmux panes are automatically titled with branch names for consistent identification (applies to both regular sessions and multi-pane splits)

Session Information

# View tmux sessions
mst tmux --list-sessions

# Attach to existing session
mst tmux --attach session-name

Workflow Examples

Development Session Setup

# 1. Start tmux session for project
tmux new-session -d -s project

# 2. Open main worktree in first window  
mst tmux main

# 3. Create new window for feature work
mst tmux feature/auth --new-window

# 4. Split pane for testing
mst tmux feature/auth --split-pane --vertical

Read the full file on GitHub · 441 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. 3d ago First seen · 441 lines · 0 tokens per session scan B b031a9e27c5e

Subscribe to this mod's changes

tmux is a command published in the GitHub repository mirinodev/maestro (9 stars, last pushed 11mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 3,331 tokens. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.