Agent skill

Tmux

by cmpnd-ai in cmpnd-ai/dspy-cli

Instructions for using tmux to spawn multiple processes, inspect them, and capture their output.

MITAuto-check: notes

Install Tmux

skills CLI
$ npx skills add cmpnd-ai/dspy-cli --skill tmux -a claude-code

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

GitHub CLI
$ gh skill install cmpnd-ai/dspy-cli tmux --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/cmpnd-ai/dspy-cli.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/tmux .claude/skills/tmux && 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
GitHub stars
137
Token cost
~611 tokens
SKILL.md length
290 words
Files
1
Skills in repo
2
Repo updated
First seen
Licence
MIT

At a glance

Instructions for using tmux to spawn multiple processes, inspect them, and capture their output.

  • Works in 5 steps: Verify Environment & Check Status → Spawn a Background Process → Inspect Output (Read Logs) → …
  • SKILL.md covers 1. Verify Environment & Check…, 2. Spawn a Background Process, 3. Inspect Output (Read Logs) and 4. Interact with the Process, plus 2 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Tmux is an agent skill from cmpnd-ai/dspy-cli. Instructions for using tmux to spawn multiple processes, inspect them, and capture their output. Useful for running servers or long-running tasks in the background.

Its SKILL.md is about 610 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. The repository describes itself as: dspy-cli is a tool for creating, developing, testing, and deploying DSPy programs as HTTP APIs. The licence is MIT.

Example prompts

  • “Use the tmux skill to instruction for using tmux to spawn multiple processes, inspect them, and capture their output”
  • “/tmux”

Requirements

  • Pre-approved tools (allowed-tools): Bash

Workflow steps

5 steps, taken from the step headings in SKILL.md.

  1. Verify Environment & Check Status
  2. Spawn a Background Process
  3. Inspect Output (Read Logs)
  4. Interact with the Process
  5. Advanced: Chaining Commands

What it can do on your machine

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

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Bash

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are bash).

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

  • Network

    No URLs in SKILL.md.

    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 loads about 611 tokens when it runs. Until then it costs about 42 tokens; SKILL.md has 290 words of instructions outside code blocks.

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

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: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Bash

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 cmpnd-ai/dspy-cli at commit c3b667e, republished under its MIT licence (© cmpnd-ai). 290 words, ~611 tokens.

Download SKILL.mdSave it as .claude/skills/tmux/SKILL.md (or your agent's skills folder).
name
tmux
description
Instructions for using tmux to spawn multiple processes, inspect them, and capture their output. Useful for running servers or long-running tasks in the background.
allowed-tools
Bash

Tmux Skill

This skill empowers you to manage multiple concurrent processes (like servers, watchers, or long builds) using tmux directly from the Bash tool.

Since you are likely already running inside a tmux session, you can spawn new windows or panes to handle these tasks without blocking your main communication channel.

1. Verify Environment & Check Status

First, verify you are running inside tmux:

bash
echo $TMUX

If this returns empty, you are not running inside tmux and these commands will not work as expected.

Once verified, check your current windows:

bash
tmux list-windows

2. Spawn a Background Process

To run a command (e.g., a dev server) in a way that persists and can be inspected:

  1. Create a new detached window with a specific name. This keeps it isolated and easy to reference.

    bash
    tmux new-window -n "server-log" -d

    (Replace "server-log" with a relevant name for your task)

  2. Send the command to that window.

    bash
    tmux send-keys -t "server-log" "npm start" C-m

    (C-m simulates the Enter key)

3. Inspect Output (Read Logs)

You can read the output of that pane at any time without switching your context.

Get the current visible screen:

bash
tmux capture-pane -p -t "server-log"

Get the entire history (scrollback):

bash
tmux capture-pane -p -S - -t "server-log"

Use this if the output might have scrolled off the screen.

4. Interact with the Process

If you need to stop or restart the process:

Send Ctrl+C (Interrupt):

bash
tmux send-keys -t "server-log" C-c

Kill the window (Clean up):

bash
tmux kill-window -t "server-log"

5. Advanced: Chaining Commands

You can chain multiple tmux commands in a single invocation using ';' (note the quotes to avoid interpretation by the shell). This is faster and cleaner than running multiple tmux commands.

Example: Create window and start process in one go:

bash
tmux new-window -n "server-log" -d ';' send-keys -t "server-log" "npm start" C-m

Summary of Pattern

  1. tmux new-window -n "ID" -d
  2. tmux send-keys -t "ID" "CMD" C-m
  3. tmux capture-pane -p -t "ID"

© cmpnd-ai, MIT. 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 .claude/skills/tmux of cmpnd-ai/dspy-cli.

Open the folder on GitHubat commit c3b667e

Compare with similar skills

Tmux 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 compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Tmux this skillcmpnd-ai/dspy-cli137—~611Automated safety check: NotesMIT
Codex Plugin QAcode-yeongyu/oh-my-openagent70k1 repos~1.9kAutomated safety check: PassCustom licence
Tmuxopenclaw/openclaw392k2 repos~640Automated safety check: PassMIT
1passwordtrpc-group/trpc-agent-go1.8k15 repos~656Automated safety check: PassApache-2.0
CodeGraph Agent Evalcolbymchenry/codegraph73k—~950Automated safety check: PassMIT
Tmuxtrpc-group/trpc-agent-go1.8k24 repos~868Automated safety check: PassApache-2.0

Similar skills

  • Codex Plugin QA

    code-yeongyu/oh-my-openagent

    Tests the omo Codex plugin in an isolated CODEX_HOME with a local mock model, proving hooks fired through app-server notifications without touching ~/.codex.

    70k GitHub starsUsed in 1 repo~1.9k tokens
    Testing & QAAuto-check passed
  • Tmux

    openclaw/openclaw

    Control tmux sessions/panes for interactive CLIs: list, capture output, send keys, paste text, monitor prompts.

    392k GitHub starsUsed in 2 repos~640 tokens
    Auto-check passed
  • 1password

    trpc-group/trpc-agent-go

    Set up and use 1Password CLI (op). An agent skill from trpc-group/trpc-agent-go.

    1.8k GitHub starsUsed in 15 repos~656 tokens
    AI & LLM EngineeringAuto-check passed
  • CodeGraph Agent Eval

    colbymchenry/codegraph

    Benchmarks how much CodeGraph helps a coding agent on a real repository, comparing runs with and without it for a chosen local or published version.

    73k GitHub stars~950 tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Tmux

    trpc-group/trpc-agent-go

    Remote-control tmux sessions for interactive CLIs by sending keystrokes and scraping pane output.

    1.8k GitHub starsUsed in 24 repos~868 tokens
    Data & AnalyticsAuto-check passed
  • CodexBar Live QA

    steipete/CodexBar

    Runs live QA for the CodexBar app: provider usage matrix checks through its packaged CLI, config validation and menu checks, with 1Password-backed credentials handled safely.

    22k GitHub stars~1.2k tokensUpdated today
    Testing & QAAuto-check passed

More from cmpnd-ai/dspy-cli

  • Fly E2E Test

    cmpnd-ai/dspy-cli

    Deploy and test dspy-cli on Fly.io using local changes via temp git branch.

    137 GitHub stars~2.3k tokensUpdated 7 mo ago
    Auto-check: notes

Works with

Questions about Tmux

What does Tmux do?

Instructions for using tmux to spawn multiple processes, inspect them, and capture their output. Tmux is an agent skill from cmpnd-ai/dspy-cli. Instructions for using tmux to spawn multiple processes, inspect them, and capture their output.

How do I install Tmux in Claude Code?

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

How do I install Tmux in Codex?

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

Can I use Tmux 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 cmpnd-ai/dspy-cli --skill tmux -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, .gemini/skills/tmux, .github/skills/tmux and .opencode/skills/tmux in your project.

What does Tmux need to run?

SKILL.md names no scripts, command-line tools or credentials: Tmux is instructions for the agent only. Its frontmatter pre-approves these tools: Bash.

Does Tmux access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Tmux safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Tmux use?

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

How many tokens does Tmux use?

About 611 tokens (SKILL.md is roughly 2.4k 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?

Skills that share tags, products or a category with Tmux: Codex Plugin QA (code-yeongyu/oh-my-openagent, 70k stars), Tmux (openclaw/openclaw, 392k stars), 1password (trpc-group/trpc-agent-go, 1.8k stars) and CodeGraph Agent Eval (colbymchenry/codegraph, 73k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Tmux?

cmpnd-ai (a GitHub organization) maintains it in cmpnd-ai/dspy-cli, which has 137 GitHub stars. The repository holds 2 skills in this directory. The repository was last updated on March 3, 2026.

Source: cmpnd-ai/dspy-cli on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.