cli-tmux

cli-tmux is a skill for Claude Code from nibzard/skills. It costs 40 tokens per session (770 once invoked), scanned A, original, MIT.

A procedure for running and testing an interactive command-line program in tmux, a terminal tool that keeps processes running in separate sessions.

In plain words
What is it for?
Use it for interactive command-line interfaces, terminal user interfaces, prompts, keyboard navigation, and long-running development servers.
Why use it?
It provides a repeatable way to send keys, capture screen output, test real terminal behavior, and clean up the session afterward.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the tmux plugin — 1 skill shipped together

Good fit Use it for interactive command-line interfaces, terminal user interfaces, prompts, keyboard navigation, and long-running development servers.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nibzard/skills/tmux
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.

Any agent
npx skills add nibzard/skills --skill tmux
Clone the repo
git clone --depth 1 https://github.com/nibzard/skills

Made for: Claude Code.

Or install tmux, the plugin that ships this one along with the rest of its 1 skill.

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 cli-tmux

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/nibzard/skills/tmux"><img src="https://agentmods.dev/badge/skills/nibzard/skills/tmux.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 770 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.00040 $0.00770
Opus 5.5 $0.00016 $0.00308
Sonnet 5.5 $0.00008 $0.00154
Haiku 4.5 $0.00004 $0.00077

Measured 3mo ago against content hash 3941bee01b05, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cli-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 3mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/tmuxctl.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/tmux/SKILL.md · 71 lines

How it starts

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

cli-tmux skill: run & test the CLI using tmux

Use this skill when

  • The user asks to test the CLI end-to-end and it is interactive (TUI prompts, key navigation).
  • A command needs a real TTY or long-running process (dev server) that should keep running while we do other tasks.

Golden rules

  1. Prefer scripts/tmuxctl.sh over raw tmux commands for repeatability.
  2. Use an isolated tmux server socket so we don't interfere with the user's real tmux sessions.
  3. Use a predictable session name: agent-cli.
  4. Always capture pane output after each interaction and summarize it before proceeding.
  5. Always clean up: stop the TUI and kill the session at the end (unless the user wants it left running).

tmuxctl.sh wrapper (preferred)

Prefer scripts/tmuxctl.sh over raw tmux commands for repeatability:

  • scripts/tmuxctl.sh start - Create new tmux session
  • scripts/tmuxctl.sh run ./bin/ourcli - Run command in the session
  • scripts/tmuxctl.sh keys Down Down C-m - Send keystrokes
  • scripts/tmuxctl.sh capture - Capture pane output
  • scripts/tmuxctl.sh stop - Stop the TUI (double Ctrl+C)
  • scripts/tmuxctl.sh kill - Kill the session

Our CLI/TUI specifics

  • To exit the TUI, send double Ctrl+C: C-c then C-c.
  • If double Ctrl+C doesn't exit, fallback to killing the tmux pane/session.

Standard tmux setup (isolated socket)

  • Socket path: .tmp/tmux-agent.sock
  • Session: agent-cli
  • Pane target: agent-cli:0.0

Create session (if missing)

  • Ensure .tmp/ exists.
  • Start detached session in repo root:
    • tmux -S .tmp/tmux-agent.sock new-session -d -s agent-cli -c "$PWD"

Start the CLI

  • Send the run command (replace with our real command):
    • Example: ./bin/ourcli OR pnpm ourcli OR go run ./cmd/ourcli
  • Use:
    • tmux -S .tmp/tmux-agent.sock send-keys -t agent-cli:0.0 "<COMMAND HERE>" C-m

Interact

  • Send keys as needed:
    • Enter: C-m
    • Up/Down: Up / Down
    • Quit: C-c C-c (double)

Capture output (after each step)

  • tmux -S .tmp/tmux-agent.sock capture-pane -t agent-cli:0.0 -p

Read the full file on GitHub · 71 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 3mo ago First seen · 71 lines · 40 tokens per session scan A 3941bee01b05

Subscribe to this mod's changes

cli-tmux is a skill published in the GitHub repository nibzard/skills (2 stars, last pushed 12d ago), licensed MIT. It adds 40 tokens to every session and 770 once invoked, about $0.0002 per session on Opus 5.5. 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-08-31.

Related

cli-tmux compared with skills from other repositories

cli-tmux next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cli-tmuxnibzard/skillsSkill212d agoMITA40Claude Code
obsidian-baseskepano/obsidian-skillsSkill55k3d agoMITA63Claude Code
obsidian-clikepano/obsidian-skillsSkill55k3d agoMITA102Claude Code
skillshare-windows-utmrunkids/skillshareSkill3.5ktodayMITA112Claude Code
alertedonadei/caliperSkill239yesterdayMITA20Claude Code, Codex
skillshare-cli-e2e-testrunkids/skillshareSkill3.5ktodayMITC127Claude Code
save-noteedonadei/caliperSkill239yesterdayMITA25Claude Code, Codex