Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Manage Claude Code Tmux Sessions

ASecurity

Manage Claude Code instances living inside tmux sessions. Users usually create separate tmux sessions for separate projects. Use this skill when you need to read the latest Claude Code response in a particular tmux session / project, send it a prompt and get the response, or run…

19 stars
0 votes
0 copies
1 views
Added 9/19/2026
ai-agentsgo

Works with

claude code

Security Analysis

A100/100

Scanned 9/19/2026

Install to Claude Code

$npx -y skills add rondoflow/rondoflow --skill manage-claude-code-tmux-sessions --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Manage Claude Code Tmux Sessions?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Manage Claude Code Tmux Sessions
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/rondoflow-manage-claude-code-tmux-sessions/badge)](https://www.skillsdirectory.com/skills/rondoflow-manage-claude-code-tmux-sessions)

More formats (shields.io, HTML) on the badges page.

Download with Pro
Files
SKILL.md
---
name: manage-claude-code-tmux-sessions
description: "Manage Claude Code instances living inside tmux sessions. Users usually create separate tmux sessions for separate projects. Use this skill when you need to read the latest Claude Code response in a particular tmux session / project, send it a prompt and get the response, or run…"
category: "AI & Agents"
author: community
version: "1.0.0"
icon: bot
---

## Goal
Give Codex a repeatable checklist for interacting with Claude Code when it’s running inside tmux. Everything happens with standard tmux commands—no helper scripts. Follow these steps any time you see instructions like “check Claude in session X” or “run /compact on Claude.”

## Conventions
1. **Session naming** – We refer to tmux sessions by their tmux session name. Session names can be assigned using `tmux new-session -s <session_name>`. E.g. if we had created a tmux session for project FooBar using `tmux new-session -s foobar`, then we will refer to this session by the name `foobar`.
2. **Claude pane** – Within a session, there should be exactly one pane whose *window title* or *pane title* is `claude`. If the pane isn’t named, rename it first (`Ctrl-b : select-pane -T claude`).
3. **Standard markers** – Claude Code prints user prompts with `❯ …` and its replies with `⏺ …`. We rely on that to spot the latest exchange.

## Workflow

### 1. Locate the Claude pane
```
tmux list-panes -a -F '#{session_name}:#{window_index}.#{pane_index} #{pane_title}' | grep "^<session_name>" | grep -i claude
```
- If nothing matches, say “No pane titled ‘claude’ found inside session <name>.”
- If multiple panes match, pick the one with the lowest `window_index/pane_index` unless context says otherwise.
- Record the target as `<session>:<window>.<pane>` for subsequent commands.

### 2. View the latest exchange
```
tmux capture-pane -p -J -t <target> -S -200
```
- Scan from the bottom upward for the last `❯` block (user) followed by `⏺` (Claude). Quote those lines back to the user.
- If no `❯/⏺` pair exists, say “No exchange found yet.”

### 3. Send a prompt
```
tmux send-keys -t <target> -l -- "<prompt>"
sleep 0.1
 tmux send-keys -t <target> Enter
```
- After sending, poll using capture-pane until a new `⏺` block appears (or a sensible timeout, e.g., 3 minutes). Report the reply verbatim.
- If the timeout expires, say “Claude hasn’t replied yet—still waiting.”

### 4. Run `/compact`
Same as sending any prompt, but send `/compact`. Confirm with “Triggered /compact in session <name>.” (Claude will respond in-pane; no need to quote unless asked.)

### 5. Dump raw buffer (debug)
```
tmux capture-pane -p -J -t <target> -S -400
```
Use this when the user wants the entire scrollback or when parsing fails.

## Tips
- Always double-check you’re addressing the right pane before sending commands—especially in shared sessions.
- If the Claude pane lives on a non-default tmux socket, prefix every tmux command with `tmux -S /path/to/socket …`.
- When summarizing results, mention the session/pane you used—for traceability.
- If the user wants multiple sessions handled, repeat the workflow per session.

This skill keeps things simple: pure tmux, no external code. Use it whenever you need hands-on access to Claude Code running inside tmux.

Attribution

rondoflowrondoflow
View sourceMore from rondoflow →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Caveman

Ultra-compressed communication mode that cuts output tokens while keeping technical accuracy. Levels: lite, full, ultra and the wenyan variants. Use for /caveman, "caveman mode", "talk like caveman", "be brief" or "less tokens".

1074701 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

693621 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3351 votes

catchup

Recovers the conversation and failed tool calls of a previous Codex, Claude Code, Antigravity, Cline, Copilot CLI, Cursor, DeepSeek Harness, Kimi, OpenCode, Pi Agent, or ZCode session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", asks to recover/summarize a previous session before continuing, or asks to diagnose or report a catchup failure. Do NOT use for the current conversation, git history, or any non-agent log.

691 votes

math-skill

A comprehensive mathematical reasoning skill for AI assistants — handles arithmetic to research-level problems with rigorous step-by-step reasoning, systematic verification, and transparent uncertainty handling

381 votes
View all in ai-agents →