tmux-ghostty-workflow

tmux-ghostty-workflow is a skill for Claude Code, Codex from kings0527/agent-skills. It costs 81 tokens per session (1,599 once invoked), scanned A, original, MIT.

A setup guide for using Ghostty, a terminal app, together with tmux, a tool for keeping named terminal workspaces running. It explains tabs, sessions, windows, and panes in simple terms.

In plain words
What is it for?
Use it to configure Ghostty and tmux for projects such as main, harness, or blog. It provides a small set of commands for entering, creating, listing, saving, and restoring workspaces.
Why use it?
It avoids confusion about where terminal work is stored and how to return to it later. Workspaces can be named, switched, saved, and restored without making every new terminal tab attach automatically.

Skill for Claude CodeCodex

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

Good fit Use it to configure Ghostty and tmux for projects such as main, harness, or blog. It provides a small set of commands for entering, creating, listing, saving, and restoring workspaces.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kings0527/agent-skills/tmux-ghostty-workflow
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 kings0527/agent-skills --skill tmux-ghostty-workflow
Clone the repo
git clone --depth 1 https://github.com/kings0527/agent-skills

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-ghostty-workflow

README.md
[![agentmods](https://agentmods.dev/badge/skills/kings0527/agent-skills/tmux-ghostty-workflow/github.svg)](https://agentmods.dev/skills/kings0527/agent-skills/tmux-ghostty-workflow)
Your own site
<a href="https://agentmods.dev/skills/kings0527/agent-skills/tmux-ghostty-workflow"><img src="https://agentmods.dev/badge/skills/kings0527/agent-skills/tmux-ghostty-workflow/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 tmux-ghostty-workflow

Your own site · 80×15
<a href="https://agentmods.dev/skills/kings0527/agent-skills/tmux-ghostty-workflow"><img src="https://agentmods.dev/badge/skills/kings0527/agent-skills/tmux-ghostty-workflow.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 81 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,599 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00081 $0.01599
Opus 5 $0.00041 $0.00800
Sonnet 5 $0.00016 $0.00320
Haiku 4.5 $0.00008 $0.00160

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

Security

Grade A, and why

tmux-ghostty-workflow 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 12d 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.

tmux-ghostty-workflow/SKILL.md · 170 lines

How it starts

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

Tmux Ghostty Workflow

Use this skill to keep Ghostty simple and let tmux handle named workspaces.

Overview

Apply a low-confusion workflow:

  • Ghostty Cmd + T opens a fresh normal terminal tab in ~
  • tmux is entered explicitly with short commands
  • tmux session names are visible and readable
  • save/restore is available with simple commands

Prefer this model unless the user explicitly wants Ghostty to auto-attach into tmux on launch.

Target workflow

Use these conventions:

  • Ghostty tabs are just terminal tabs
  • tmux sessions are workspaces, for example main, harness, blog
  • tmux windows are sub-areas inside one workspace
  • tmux panes are splits inside one window

Keep the user's mental model simple:

  1. Cmd + T gives a clean terminal in ~
  2. ta enters the main tmux workspace
  3. tn <name> enters or creates a named workspace
  4. ts saves tmux state
  5. tr restores tmux state
  6. tl lists all tmux sessions

Required config shape

Ghostty

Keep Ghostty opening plain tabs from the home directory. Do not make every new tab auto-attach to the same tmux session.

Expected ~/.config/ghostty/config lines:

working-directory = home

Do not keep a default line like this unless the user explicitly wants it:

command = /opt/homebrew/bin/tmux new-session -A -s main

That pattern makes new Ghostty tabs look like cloned views of the same tmux client, which is confusing for many users.

zsh helpers

Add these helpers in ~/.zshrc:

alias ta='if [ -n "$TMUX" ]; then tmux switch-client -t main 2>/dev/null || tmux new-session -d -s main -c "$HOME" && tmux switch-client -t main; else tmux attach -t main || tmux new -s main -c "$HOME"; fi'

tn() { if [ -z "$1" ]; then echo "usage: tn <session> [dir]"; return 1; fi; local dir="${2:-$HOME}"; if [ -n "$TMUX" ]; then tmux has-session -t "$1" 2>/dev/null || tmux new-session -d -s "$1" -c "$dir"; tmux switch-client -t "$1"; else tmux has-session -t "$1" 2>/dev/null && tmux attach -t "$1" || tmux new-session -s "$1" -c "$dir"; fi }

alias tl='tmux ls'
alias ts='tmux run-shell ~/.tmux/plugins/tmux-resurrect/scripts/save.sh'
alias tr='tmux run-shell ~/.tmux/plugins/tmux-resurrect/scripts/restore.sh'

Read the full file on GitHub · 170 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. 12d ago First seen · 170 lines · 81 tokens per session scan A 2188276dc7c2

Subscribe to this mod's changes

tmux-ghostty-workflow is a skill published in the GitHub repository kings0527/agent-skills (5 stars, last pushed 1mo ago), licensed MIT. It adds 81 tokens to every session and 1,599 once invoked, about $0.0004 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.

Related

Other skills, from other repositories