cmux-keyboard-shortcuts

cmux-keyboard-shortcuts is a skill for Codex from disler/learning-cmux-with-agents. It costs 69 tokens per session (2,835 once invoked), scanned A, original, MIT.

A guide for changing cmux keyboard shortcuts, including adding, removing, resetting, or checking key bindings. cmux is a macOS terminal app, and its shortcuts are stored in a configuration file.

In plain words
What is it for?
Use it to create tmux-like, Vim-like, terminal-focused, browser-focused, iTerm-style, or agent-triage shortcut layouts, then apply and audit them.
Why use it?
It turns a preferred workflow into validated shortcut settings without requiring you to remember action names or edit configuration by hand. It also checks that the resulting configuration is valid.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: mentions Codex.

Good fit Use it to create tmux-like, Vim-like, terminal-focused, browser-focused, iTerm-style, or agent-triage shortcut layouts, then apply and audit them.

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

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/disler/learning-cmux-with-agents/cmux-keyboard-shortcuts/github.svg)](https://agentmods.dev/skills/disler/learning-cmux-with-agents/cmux-keyboard-shortcuts)
Your own site
<a href="https://agentmods.dev/skills/disler/learning-cmux-with-agents/cmux-keyboard-shortcuts"><img src="https://agentmods.dev/badge/skills/disler/learning-cmux-with-agents/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/disler/learning-cmux-with-agents/cmux-keyboard-shortcuts"><img src="https://agentmods.dev/badge/skills/disler/learning-cmux-with-agents/cmux-keyboard-shortcuts.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 69 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,835 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Rogue Agent · line 3
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
How audits are shown
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.00069 $0.02835
Opus 5 $0.00034 $0.01418
Sonnet 5 $0.00014 $0.00567
Haiku 4.5 $0.00007 $0.00283

Measured 12d ago against content hash d201a817e171, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, 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 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

ai_docs/cmux-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" \
    "${CODEX_HOME:-$HOME/.codex}/skills/cmux-settings/scripts/cmux-settings" \
    "$HOME/.agents/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

Files

What ships with it

1 file 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. 12d ago First seen · 221 lines · 69 tokens per session scan A d201a817e171

Subscribe to this mod's changes

cmux-keyboard-shortcuts is a skill published in the GitHub repository disler/learning-cmux-with-agents (110 stars, last pushed 2mo ago), licensed MIT. It adds 69 tokens to every session and 2,835 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-30.

Related

Other skills, from other repositories