cmux-keyboard-shortcuts

cmux-keyboard-shortcuts is a skill for Claude Code, Codex from DJRHails/dotfiles. It costs 83 tokens per session (2,844 once invoked), scanned A, a copy of cmux-keyboard-shortcuts, MIT.

A guide and command set for changing keyboard shortcuts in cmux, a macOS app for working with terminal sessions. It supports creating, changing, removing, resetting, and checking shortcut bindings.

In plain words
What is it for?
Setting up shortcut layouts such as tmux-style, Vim-style, terminal-focused, browser-focused, or iTerm-like controls.
Why use it?
It helps you manage cmux shortcuts without editing its configuration by hand or using unrecognized action names.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Setting up shortcut layouts such as tmux-style, Vim-style, terminal-focused, browser-focused, or iTerm-like controls.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/djrhails/dotfiles/cmux-keyboard-shortcuts
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 DJRHails/dotfiles --skill cmux-keyboard-shortcuts
Clone the repo
git clone --depth 1 https://github.com/DJRHails/dotfiles

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 cmux-keyboard-shortcuts

README.md
[![agentmods](https://agentmods.dev/badge/skills/djrhails/dotfiles/cmux-keyboard-shortcuts/github.svg)](https://agentmods.dev/skills/djrhails/dotfiles/cmux-keyboard-shortcuts)
Your own site
<a href="https://agentmods.dev/skills/djrhails/dotfiles/cmux-keyboard-shortcuts"><img src="https://agentmods.dev/badge/skills/djrhails/dotfiles/cmux-keyboard-shortcuts/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 cmux-keyboard-shortcuts

Your own site · 80×15
<a href="https://agentmods.dev/skills/djrhails/dotfiles/cmux-keyboard-shortcuts"><img src="https://agentmods.dev/badge/skills/djrhails/dotfiles/cmux-keyboard-shortcuts.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 83 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,844 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 97% copy Near-identical to another mod 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.00083 $0.02844
Opus 5 $0.00042 $0.01422
Sonnet 5 $0.00017 $0.00569
Haiku 4.5 $0.00008 $0.00284

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

Security

Grade A, and why

cmux-keyboard-shortcuts 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 9d 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.

Origin

This is a copy

97% identical to cmux-keyboard-shortcuts — 6 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

modules/agents/skills/cmux-keyboard-shortcuts/SKILL.md · 221 lines

How it starts

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

cmux-keyboard-shortcuts

Use this skill to turn a user's workflow preferences into cmux shortcut bindings in ~/.config/cmux/cmux.json. It should guide the user, propose compact templates, apply selected changes, and confirm the config parses with recognized keys.

Prerequisites

  • Work from a cmux checkout or worktree root when possible.
  • Use skills/cmux-settings/scripts/cmux-settings for every read/write. It reads JSONC, writes atomically, and validates JSON plus recognized settings keys.
  • For action IDs, read skills/cmux-settings/references/shortcut-actions.md.
  • For current defaults, read web/data/cmux-shortcuts.ts or Sources/KeyboardShortcutSettings.swift.
find_cmux_settings() {
  local root
  root="$(git -C "$(pwd)" rev-parse --show-toplevel 2>/dev/null || pwd)"
  for candidate in \
    "$root/skills/cmux-settings/scripts/cmux-settings" \
    "$HOME/.agents/skills/cmux-settings/scripts/cmux-settings" \
    "$HOME/.claude/skills/cmux-settings/scripts/cmux-settings"; do
    if [[ -x "$candidate" ]]; then
      printf '%s\n' "$candidate"
      return 0
    fi
  done
  return 1
}

if [[ -z "${CMUX_SETTINGS:-}" ]]; then
  CMUX_SETTINGS="$(find_cmux_settings)" || {
    echo "cmux-settings helper not found; run from a cmux checkout or install cmux-settings" >&2
    exit 1
  }
fi

Shortcut Model

  • Setting path: shortcuts.bindings.<actionId>.
  • Single stroke: "cmd+b".
  • Chord: ["ctrl+b","c"]. The first stroke needs a modifier unless the key is Space. The second stroke can be bare.
  • Unbind: prefer null for explicit unbinds. "", "none", "clear", "unbound", and "disabled" are accepted aliases, but null is the clearest JSON value and matches the templates below.
  • selectSurfaceByNumber and selectWorkspaceByNumber must use a digit from 1 to 9. cmd+1 means the full cmd+1 through cmd+9 family.
  • showHideAllWindows and globalSearch are system-wide shortcuts. They cannot be chords, require modifiers, and may be rejected by macOS if reserved.
  • showHideAllWindows also requires Settings > Global Hotkey > Enable System-Wide Hotkey. The binding can validate in cmux.json while the feature is disabled, so warn the user to enable that setting before reporting the shortcut as usable.
  • unset deletes a cmux.json override. It does not clear shortcut changes saved through the Settings UI/UserDefaults. If the user asks for true built-in defaults, tell them to use Settings > Keyboard Shortcuts > Reset Default Shortcuts after clearing file-managed overrides, then verify in the app. For showHideAllWindows, use Settings > Global Hotkey to restore the shortcut to ctrl+opt+cmd+. because Keyboard Shortcuts > Reset Default Shortcuts intentionally skips the global hotkey.
  • Saving cmux.json live reloads. Do not tell the user to restart cmux.

Read the full file on GitHub · 221 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. 9d ago First seen · 221 lines · 83 tokens per session scan A f11c49195b52

Subscribe to this mod's changes

cmux-keyboard-shortcuts is a skill published in the GitHub repository DJRHails/dotfiles (2 stars, last pushed yesterday), licensed MIT. It adds 83 tokens to every session and 2,844 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. It is 97% identical to cmux-keyboard-shortcuts, differing in 6 lines, and is treated as a copy.