tmux-task-manager

tmux-task-manager is a skill for Claude Code, Codex from ttttmr/pi-tmux-task. It costs 62 tokens per session (1,194 once invoked), scanned A, original, MIT.

A skill for running project tasks in tmux, a terminal tool that keeps commands running in separate windows.

In plain words
What is it for?
It helps run development servers, background services, log monitoring, watch modes, long scans, polling loops, scheduled commands, and parallel project tasks.
Why use it?
It prevents long-running commands such as servers, watchers, scans, and tests from blocking the main work. Each logical task can remain available for later inspection.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument.

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.

agentmods
npx agentmods add skills/ttttmr/pi-tmux-task/old-skill
Any agent
npx skills add ttttmr/pi-tmux-task --skill old-skill
Clone the repo
git clone --depth 1 https://github.com/ttttmr/pi-tmux-task

Made for: Claude Code, 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 tmux-task-manager

README.md
[![agentmods](https://agentmods.dev/badge/skills/ttttmr/pi-tmux-task/old-skill.svg)](https://agentmods.dev/skills/ttttmr/pi-tmux-task/old-skill)
Your own site
<a href="https://agentmods.dev/skills/ttttmr/pi-tmux-task/old-skill"><img src="https://agentmods.dev/badge/skills/ttttmr/pi-tmux-task/old-skill.svg" alt="Measured on agentmods" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,194 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00062 $0.01194
Opus 5 $0.00031 $0.00597
Sonnet 5 $0.00012 $0.00239
Haiku 4.5 $0.00006 $0.00119

Measured 6d ago against content hash 70ed02cdf34e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

tmux-task-manager 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 6d ago.

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.

evals/tmux-task-manager-workspace/iteration-1/old-skill/SKILL.md · 137 lines

How it starts

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

Tmux Task Manager

Use this skill for any project task that should not block the main line of work.

Typical cases:

  • dev servers
  • backend services
  • watch mode commands
  • log tailing / observation
  • long scans or crawls
  • polling / monitoring loops
  • delayed or scheduled shell tasks
  • parallel subtasks you want to keep alive

Do not use tmux for short one-shot commands when you need the output immediately in the current turn.

Rules

  • Reuse the shared project tmux session in $PI_TMUX_SESSION.
  • If $PI_TMUX_SESSION is missing, compute it with ./tmux-session-name.sh.
  • Use one tmux window per logical task.
  • Give each task a short, descriptive window name.
  • Preferred names: web, api, worker, logs, watch, scan, tests, build.
  • Avoid long names, timestamps, random suffixes, and vague names like task or misc.
  • When rerunning the same task intentionally, replace the old same-name window.
  • Once a window exists, prefer window id (@12) for follow-up operations.
  • Notifications mention both id and name, e.g. @12 (web).

Session bootstrap

Prefer the injected value from the extension:

if [[ -z "${PI_TMUX_SESSION:-}" ]]; then
  PI_TMUX_SESSION="$(./tmux-session-name.sh)"
  export PI_TMUX_SESSION
fi

Ensure the shared session exists:

tmux has-session -t "$PI_TMUX_SESSION" 2>/dev/null || \
  tmux new-session -d -s "$PI_TMUX_SESSION" -n shell

Standard start / replace flow

TASK_NAME=web

EXISTING_WINDOW_ID="$({ tmux list-windows -t "$PI_TMUX_SESSION" -F '#{window_id}\t#{window_name}' || true; } \
  | awk -F $'\t' -v name="$TASK_NAME" '$2==name { print $1; exit }')"

if [[ -n "$EXISTING_WINDOW_ID" ]]; then
  tmux kill-window -t "$EXISTING_WINDOW_ID"
fi

tmux new-window -t "$PI_TMUX_SESSION" -n "$TASK_NAME" \
  "bash -lc 'cd \"$PWD\" && npm run dev'"

WINDOW_ID="$({ tmux list-windows -t "$PI_TMUX_SESSION" -F '#{window_id}\t#{window_name}' || true; } \
  | awk -F $'\t' -v name="$TASK_NAME" '$2==name { print $1; exit }')"

if [[ -n "$WINDOW_ID" ]]; then
  tmux setw -t "$WINDOW_ID" remain-on-exit on
fi

Read the full file on GitHub · 137 lines

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. 6d ago First seen · 137 lines · 62 tokens per session scan A 70ed02cdf34e

Subscribe to this mod's changes

tmux-task-manager is a skill published in the GitHub repository ttttmr/pi-tmux-task (5 stars, last pushed 1mo ago), licensed MIT. It adds 62 tokens to every session and 1,194 once invoked, about $0.0003 per session on Opus 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.