Agent skill

Tmux CLI

by sammcj in sammcj/agentic-coding

CLI utility to help when running ongoing interactive CLI sessions or using tmux to communicate with other CLI Agents.

Apache-2.0Auto-check passed

Install Tmux CLI

skills CLI
$ npx skills add sammcj/agentic-coding --skill tmux-cli -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install sammcj/agentic-coding tmux-cli --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/sammcj/agentic-coding.git skills-src && mkdir -p .claude/skills && cp -r skills-src/Skills/tmux-cli .claude/skills/tmux-cli && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
tmux-cli
GitHub stars
162
Token cost
~923 tokens
SKILL.md length
485 words
Files
1
Skills in repo
65
Repo updated
First seen
Licence
Apache-2.0

At a glance

CLI utility to help when running ongoing interactive CLI sessions or using tmux to communicate with other CLI Agents.

  • Works in 6 steps: Reuse an existing session rather than… → Arm auto-cleanup on the pane BEFORE… → Connect with keepalive so a dropped link… → …
  • You are asked to ssh to remote machines
  • SKILL.md covers Instructions, Remote SSH hosts (default…, Key Commands and Tips
  • Calls ssh and uv

What it does

Tmux CLI is an agent skill from sammcj/agentic-coding. CLI utility to help when running ongoing interactive CLI sessions or using tmux to communicate with other CLI Agents. Use when you are asked to ssh to remote machines, or need to use interactive CLI tools that require ongoing input.

Its SKILL.md is about 920 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It works with tmux and Bash. The repository describes itself as: Agentic Coding Rules, Templates etc... The licence is Apache-2.0.

When your agent uses it

  • You are asked to ssh to remote machines
  • Need to use interactive CLI tools that require ongoing input

Example prompts

  • “/tmux-cli”

Requirements

  • Node.js

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. Reuse an existing session rather than spawning a new one each task (windows accumulate otherwise): check tmux-cli status / tmux-cli…
  2. Arm auto-cleanup on the pane BEFORE connecting, so nothing lingers if the task is abandoned
  3. Connect with keepalive so a dropped link tears itself down: ssh -o ServerAliveInterval=60 -o ServerAliveCountMax=3 -o…
  4. After connecting, set the same idle timeout on the remote shell (busybox ash and bash both honour it): export TMOUT=1800.
  5. Run work with send + wait_idle + capture. Only the pane's ssh uses the network / SSH auth; tmux-cli itself only talks to the local tmux…
  6. Tear it down explicitly when done: tmux-cli cleanup kills the managed session; tmux-cli kill --pane= kills a single pane. Do not leave…

What it can do on your machine

Read from SKILL.md and the folder at commit 415ac71. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • ssh
    • uv

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use ssh and uv, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Tmux CLI loads about 923 tokens when it runs. Until then it costs about 60 tokens; SKILL.md has 485 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~60
When it runs · the whole SKILL.md, loaded when a task matches
~923

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from sammcj/agentic-coding at commit 415ac71, republished under its Apache-2.0 licence (© sammcj). 485 words, ~923 tokens.

Download SKILL.mdSave it as .claude/skills/tmux-cli/SKILL.md (or your agent's skills folder).
name
tmux-cli
description
CLI utility to help when running ongoing interactive CLI sessions or using tmux to communicate with other CLI Agents. Use when you are asked to ssh to remote machines, or need to use interactive CLI tools that require ongoing input.

tmux-cli

Instructions

  • Use the tmux-cli command to communicate with other CLI Agents or Scripts in other tmux panes. Do tmux-cli --help to see how to use it!
    • This command depends on installing the claude-code-tools. If you get an error indicating that the command is not available, ask the user to install it using: uv tool install claude-code-tools.
    • When using tmux-cli to connect to remote machines you must run it outside the sandbox (the tmux socket is outside the sandbox's allowed paths, and the pane's ssh needs the environment's SSH auth). A sandboxed capture returns empty. Allow-list tmux-cli once to avoid repeated approval prompts.
  • When you are finished with all tasks that you need tmux-cli for clean up the session.

Remote SSH hosts (default pattern)

When you need to run more than one command on a remote host over SSH, do NOT issue repeated one-off ssh host 'cmd' calls - each re-authenticates and needs its own approval. Open ONE persistent session and drive it. This is the default for any multi-command remote work.

  1. Reuse an existing session rather than spawning a new one each task (windows accumulate otherwise): check tmux-cli status / tmux-cli list_panes, reuse its pane if healthy, and only tmux-cli launch "zsh" if none exists. Note the returned pane id.
  2. Arm auto-cleanup on the pane BEFORE connecting, so nothing lingers if the task is abandoned:
    • Idle timeout: export TMOUT=1800 in the launched zsh (self-exits after 30 min idle at a prompt).
    • Hard cap watchdog (zsh): ( sleep 5400 && tmux kill-session -t remote-cli-session ) &! - kills the whole session after 90 min regardless of activity. tmux-cli's remote session is named remote-cli-session on the default socket, so raw tmux can target it. &! backgrounds and disowns so it survives the shell exiting.
  3. Connect with keepalive so a dropped link tears itself down: ssh -o ServerAliveInterval=60 -o ServerAliveCountMax=3 -o StrictHostKeyChecking=no user@host.
  4. After connecting, set the same idle timeout on the remote shell (busybox ash and bash both honour it): export TMOUT=1800.
  5. Run work with send + wait_idle + capture. Only the pane's ssh uses the network / SSH auth; tmux-cli itself only talks to the local tmux socket.
  6. Tear it down explicitly when done: tmux-cli cleanup kills the managed session; tmux-cli kill --pane=<id> kills a single pane. Do not leave idle sessions behind - the timeouts above are a backstop, not a substitute for cleanup.
Show full SKILL.md (96 more words)Show less

Key Commands

Execute with Exit Code Detection

Use tmux-cli execute when you need to know if a shell command succeeded or failed:

bash
tmux-cli execute "make test" --pane=2
# Returns JSON: {"output": "...", "exit_code": 0}

tmux-cli execute "npm install" --pane=ops:1.3 --timeout=60
# Returns exit_code=0 on success, non-zero on failure, -1 on timeout

This is useful for:

  • Running builds and knowing if they passed
  • Running tests and detecting pass/fail
  • Multi-step automation that should abort on failure

Note: execute is for shell commands only, not for agent-to-agent chat.

Tips

  • For communicating with another Claude Code instance, use send + wait_idle + capture instead.
  • To wait for a condition, use Monitor with an until-loop (e.g. until <check>; do sleep 2; done), to wait for a command you started, use run_in_background: true.

© sammcj, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in Skills/tmux-cli of sammcj/agentic-coding.

Open the folder on GitHubat commit 415ac71

Compare with similar skills

Tmux CLI next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Tmux CLI compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Tmux CLI this skillsammcj/agentic-coding162—~923Automated safety check: PassApache-2.0
Teamethanhq/cc-fleet215—~3.4kAutomated safety check: PassApache-2.0
Tmuxsickn33/agentic-awesome-skills47k2 repos~2.8kAutomated safety check: PassMIT
Tmux Runmeain/dotfiles285—~1.4kAutomated safety check: PassMIT
Tmux Long Tasksintel/torch-xpu-ops115—~530Automated safety check: PassMIT
Dotfiles Managereinverne/dotfiles121—~1.3kAutomated safety check: NotesGPL-3.0

Similar skills

  • Team

    ethanhq/cc-fleet

    Spawn long-lived provider LLM teammates in tmux panes that you message via the native agent-team tools — multi-turn, collaborative, watchable.

    215 GitHub stars~3.4k tokensUpdated 8 days ago
    Agent WorkflowsAuto-check passed
  • Tmux

    sickn33/agentic-awesome-skills

    Expert tmux session, window, and pane management for terminal multiplexing, persistent remote workflows, and shell scripting automation.

    47k GitHub starsUsed in 2 repos~2.8k tokens
    DevelopmentAuto-check passed
  • Tmux Run

    meain/dotfiles

    Run a command in a tmux pane/window/session and monitor its output for errors.

    285 GitHub stars~1.4k tokensUpdated 1 mo ago
    Auto-check passed
  • Tmux Long Tasks

    intel/torch-xpu-ops

    Official

    Use tmux to launch and manage long-running jobs that must survive beyond the bash tool timeout.

    115 GitHub stars~530 tokensUpdated yesterday
    Auto-check passed
  • Dotfiles Manager

    einverne/dotfiles

    Comprehensive knowledge of dotfiles management, configuration file organization, symlink strategies, and cross-platform environment setup.

    121 GitHub stars~1.3k tokensUpdated 29 days ago
    Productivity & AutomationAuto-check: notes
  • Tmux Guide

    archibate/dotfiles-opencode

    Tmux skill for running background tasks. An agent skill from archibate/dotfiles-opencode.

    107 GitHub stars~445 tokensUpdated 5 mo ago
    AI & LLM EngineeringAuto-check passed

More from sammcj/agentic-coding

All 65 skills in this repo
  • Yue2 Music

    sammcj/agentic-coding

    A skill your agent uses when generating songs with YuE2, covering a recording via SheetSage2 audio-to-ABC, editing a score or lyrics with melody preservation, or building a reproducible listening…

    162 GitHub stars~2.3k tokensUpdated 2 days ago
    Auto-check passed
  • Bento Slides

    sammcj/agentic-coding

    A skill your agent uses when creating or editing Bento (.bento.html) slide decks, including any request for a single-file HTML slide deck.

    162 GitHub stars~2.9k tokensUpdated 2 days ago
    Auto-check passed
  • Idrive Backup

    sammcj/agentic-coding

    A skill your agent uses whenever the user wants you to manage, discuss or diagnose iDrive Backup configuration on macOS

    162 GitHub stars~1.7k tokensUpdated 2 days ago
    Auto-check: notes
  • Piper Tts Training

    sammcj/agentic-coding

    Train custom TTS voices for Piper (ONNX format) using fine-tuning or from-scratch approaches.

    162 GitHub stars~1.4k tokensUpdated 2 days ago
    Auto-check passed
  • PPTX To Md

    sammcj/agentic-coding

    Convert a PPTX slide deck into per-slide markdown that preserves both the verbatim text and the meaning of embedded screenshots, diagrams and charts in their original layout positions.

    162 GitHub stars~1.8k tokensUpdated 2 days ago
    Auto-check passed
  • Skill Creator Primer

    sammcj/agentic-coding

    You MUST load this skill before the skill-creator skill AND before making ANY change to, or conducting a review of ANY Agent Skill.

    162 GitHub stars~9.8k tokensUpdated 2 days ago
    Auto-check passed

Works with

Questions about Tmux CLI

What does Tmux CLI do?

CLI utility to help when running ongoing interactive CLI sessions or using tmux to communicate with other CLI Agents. Tmux CLI is an agent skill from sammcj/agentic-coding. CLI utility to help when running ongoing interactive CLI sessions or using tmux to communicate with other CLI Agents.

When should I use Tmux CLI?

Tmux CLI fits situations like: you are asked to ssh to remote machines; need to use interactive CLI tools that require ongoing input.

How do I install Tmux CLI in Claude Code?

Run `npx skills add sammcj/agentic-coding --skill tmux-cli -a claude-code`. Or copy the skill folder (Skills/tmux-cli in sammcj/agentic-coding) into .claude/skills/tmux-cli in your project. Claude Code loads it when a task matches its description.

How do I install Tmux CLI in Codex?

Run `npx skills add sammcj/agentic-coding --skill tmux-cli -a codex`. Or copy the skill folder (Skills/tmux-cli in sammcj/agentic-coding) into .agents/skills/tmux-cli in your project. Codex loads it when a task matches its description.

Can I use Tmux CLI in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add sammcj/agentic-coding --skill tmux-cli -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/tmux-cli, .gemini/skills/tmux-cli, .github/skills/tmux-cli and .opencode/skills/tmux-cli in your project.

What does Tmux CLI need to run?

Going by SKILL.md and its folder, Tmux CLI needs the command-line tools its instructions call (ssh and uv). Our summary lists: Node.js.

Does Tmux CLI access the network?

SKILL.md contains no URLs. Its commands use ssh and uv, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Tmux CLI safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Tmux CLI use?

Tmux CLI is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Tmux CLI use?

About 923 tokens (SKILL.md is roughly 3.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Tmux CLI?

Skills that share tags, products or a category with Tmux CLI: Team (ethanhq/cc-fleet, 215 stars), Tmux (sickn33/agentic-awesome-skills, 47k stars), Tmux Run (meain/dotfiles, 285 stars) and Tmux Long Tasks (intel/torch-xpu-ops, 115 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Tmux CLI?

sammcj (a GitHub user) maintains it in sammcj/agentic-coding, which has 162 GitHub stars. The repository holds 65 skills in this directory. The repository was last updated on October 5, 2026.

Source: sammcj/agentic-coding on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.