auto-tmux

auto-tmux is a skill for Codex from tradecatlabs/vibe-coding-cn. It costs 100 tokens per session (7,075 once invoked), scanned C, original, from a forked repository, MIT.

A set of safe helpers for tmux, a terminal tool that keeps command-line sessions running in windows and panes.

In plain words
What is it for?
Use it to read logs, send keys or commands, monitor groups of terminals, manage shared task state and file locks, and control a persistent worker session.
Why use it?
It makes it easier to inspect, control, and coordinate multiple visible AI terminal sessions without sending commands to the wrong pane.

Skill for Codex

Written for Codex: runs codex exec. Also seen: mentions Codex.

Good fit Use it to read logs, send keys or commands, monitor groups of terminals, manage shared task state and file locks, and control a persistent worker session.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tradecatlabs/vibe-coding-cn/auto-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 tradecatlabs/vibe-coding-cn --skill auto-tmux
Clone the repo
git clone --depth 1 https://github.com/tradecatlabs/vibe-coding-cn

Made for: Codex.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/tradecatlabs/vibe-coding-cn/auto-tmux"><img src="https://agentmods.dev/badge/skills/tradecatlabs/vibe-coding-cn/auto-tmux.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 100 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,075 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin fork From a forked repository.
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.00100 $0.07075
Opus 5 $0.00050 $0.03537
Sonnet 5 $0.00020 $0.01415
Haiku 4.5 $0.00010 $0.00707

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

Security

Grade C, and why

auto-tmux scanned grade C 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 9d ago.

The scan reads SKILL.md. This mod also ships 27 executable files (scripts/audit-package.sh, scripts/auto-tmux-smoke-test.sh, scripts/auto-tmux.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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

- 不盲发破坏性按键:`kill-server`、`rm -rf` 等必须先 capture-pane 确认目标上下文。
skills/auto-tmux/SKILL.md · 369 lines

How it starts

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

auto-tmux Skill

让 AI 像熟练运维一样操作 tmux:优先使用 scripts/auto-tmux.sh 安全封装读取终端输出、发送按键、批量巡检、协作/救援其他终端;使用 scripts/swarm-state.sh 管理蜂群任务、锁、状态和结果;必要时再回退到 tmux 原生命令。默认兼容 tools/external/.tmux(gpakosz/oh-my-tmux),并在本技能内通过 assets/oh-my-tmuxassets/tmux-src 暴露上游 submodule。

When to Use This Skill

触发条件(满足其一即可):

  • 需要远程读取/复制某个 tmux pane 的最新输出(日志、提示、错误)。
  • 需要向指定 pane 发送按键/命令(确认 yEnterCtrl+C、广播同一窗口)。
  • 需要批量巡检/接管多 AI 终端(蜂群协作、自动救援卡死任务)。
  • 用户显式要求进入 Codex Pilot Mode:让当前主 Codex 通过 tmux 控制一个持久化、交互式、对人类可见的 worker Codex pane。
  • 需要初始化 AI 多终端工作台、等待输出 pattern、录制 pane 日志或保存巡检证据。
  • 需要给 tmux 蜂群建立任务队列、状态日志、文件锁和结果报告。
  • 需要快速回忆 oh-my-tmux 快捷键、前缀或同步面板操作。
  • 需要在当前仓库复用 tools/external/.tmux 配置并避免修改主配置。
  • 需要从技能目录内快速查看 oh-my-tmux 配置或 tmux 上游源码入口。

Not For / Boundaries

  • 不用于执行非 tmux 环境(目标不存在时先创建 session/window/pane)。
  • 不直接编辑 ~/.tmux.conf / .tmux.conf(遵循 oh-my-tmux:修改请放到 .tmux.conf.local)。
  • 不盲发破坏性按键:kill-serverrm -rf 等必须先 capture-pane 确认目标上下文。
  • 不把脚本当成权限绕过器;敏感会话、密码输入、生产数据库操作仍需人工确认。
  • 如果 tmux 版本 < 2.6,需先升级再使用本技能的命令组合。

Quick Reference

常用模式(≤20 条,直接复制即用)

脚本帮助与语法检查

bash -n skills/auto-tmux/scripts/auto-tmux.sh
bash -n skills/auto-tmux/scripts/swarm-state.sh
bash -n skills/auto-tmux/scripts/swarm-brief.sh
bash -n skills/auto-tmux/scripts/swarm-watch.sh
bash -n skills/auto-tmux/scripts/swarm-archive.sh
bash -n skills/auto-tmux/scripts/swarm-board.sh
bash -n skills/auto-tmux/scripts/swarm-deps-graph.sh
bash -n skills/auto-tmux/scripts/swarm-export.sh
bash -n skills/auto-tmux/scripts/swarm-timeline.sh
bash -n skills/auto-tmux/scripts/swarm-blockers.sh
bash -n skills/auto-tmux/scripts/swarm-results.sh
bash -n skills/auto-tmux/scripts/swarm-report-pack.sh
bash -n skills/auto-tmux/scripts/swarm-assign.sh
bash -n skills/auto-tmux/scripts/swarm-health.sh
bash -n skills/auto-tmux/scripts/remote-readonly.sh
bash -n skills/auto-tmux/scripts/record-summary.sh
bash -n skills/auto-tmux/scripts/check-jsonl.sh
bash -n skills/auto-tmux/scripts/review-checklist.sh
bash -n skills/auto-tmux/scripts/verify-report-pack.sh
bash -n skills/auto-tmux/scripts/incident-report.sh
bash -n skills/auto-tmux/scripts/completion.bash
bash -n skills/auto-tmux/scripts/safety-check.sh
bash -n skills/auto-tmux/scripts/render-swarm-prompt.sh
bash -n skills/auto-tmux/scripts/swarm-dispatch.sh
bash -n skills/auto-tmux/scripts/validate-auto-tmux.sh
skills/auto-tmux/scripts/auto-tmux.sh help
skills/auto-tmux/scripts/swarm-state.sh help

Read the full file on GitHub · 369 lines

Files

What ships with it

56 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. 9d ago First seen · 369 lines · 100 tokens per session scan C b8cffb5c8873

Subscribe to this mod's changes

auto-tmux is a skill published in the GitHub repository tradecatlabs/vibe-coding-cn (16,122 stars, last pushed 3d ago), licensed MIT. It adds 100 tokens to every session and 7,075 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). It comes from a forked repository.

Related

Other skills, from other repositories

happiness-skill

A Chinese-language guide to happiness based on reducing unmet wants, focusing on the present, and treating happiness as a trainable skill.

kangarooking/cangjie-skill · 136 tokens

setup-matt-pocock-skills

A setup skill that configures engineering skills for a repository, including its issue tracker, labels, and documentation layout. A repository is the project folder managed by version control.

devcxl/mattpocock-skills-zh · 43 tokens

frontend-design

A design guide for building polished web interfaces such as pages, dashboards, forms, navigation, and reusable UI components. It covers HTML, CSS, JavaScript, and common frontend frameworks.

AnastasiyaW/codex-claude-code-config · 264 tokens

alterlab-cobrapy

Build and analyze genome-scale constraint-based metabolic models with COBRApy — flux balance analysis (FBA), flux variability analysis (FVA), gene and reaction knockouts, flux sampling, and SBML model I/O. Use when simulating metabolic networks, predicting growth or knockout phenotypes, or running systems-biology and…

AlterLab-IEU/AlterLab-Academic-Skills · 91 tokens

alterlab-depmap

Query the Cancer Dependency Map (DepMap) for cancer cell line gene dependency scores (CRISPR Chronos), drug sensitivity data, and gene effect profiles. Use when identifying cancer-specific genetic vulnerabilities, finding synthetic lethal interactions, checking whether a gene is essential in given cell lines, or…

AlterLab-IEU/AlterLab-Academic-Skills · 77 tokens

alterlab-syllabus-ai-policy

Drafts course-level generative-AI use policies and syllabus statements: assigns each graded task a permitted/restricted/prohibited tier (modeled on Cornell's prohibit/allow-with-attribution/encourage framework), writes the disclosure clause with a verbatim APA (OpenAI, 2023) or MLA Works Cited citation template for…

AlterLab-IEU/AlterLab-Academic-Skills · 222 tokens