cmux-diagnostics
Original:🇺🇸 English
Translated
1 scriptsChecked / no sensitive code detected
Run end-user cmux diagnostics. Use when cmux hooks, notifications, session restore, settings, browser automation, socket access, CLI control, or agent resume behavior is not working, or when the user asks for a cmux health check, doctor report, or support-safe debug summary.
5installs
Sourcemanaflow-ai/cmux
Added on
NPX Install
npx skill4agent add manaflow-ai/cmux cmux-diagnosticsTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →cmux Diagnostics
Use this skill to collect and interpret support-safe cmux diagnostics for end users. Default to read-only checks. Do not dump hook config files, session stores, prompt logs, tokens, or environment secrets.
Quick Report
Run the bundled read-only diagnostic script first:
bash
# From a cmux checkout
skills/cmux-diagnostics/scripts/cmux-diagnostics
# From an installed skill
~/.agents/skills/cmux-diagnostics/scripts/cmux-diagnostics
# From a Codex-only skills.sh install
~/.codex/skills/cmux-diagnostics/scripts/cmux-diagnosticsUse only when workspace names, cwd paths, and current cmux identifiers are relevant to the user-reported issue:
--include-contextbash
skills/cmux-diagnostics/scripts/cmux-diagnostics --include-contextWhat to Check
-
CLI and socket health:bash
command -v cmux cmux ping cmux capabilities --jsonIf socket commands fail, check whether the agent is running inside a cmux terminal and whether socket automation is enabled. -
Settings health:bash
~/.agents/skills/cmux-settings/scripts/cmux-settings validate ~/.agents/skills/cmux-settings/scripts/cmux-settings get terminal.autoResumeAgentSessionsIf the user installed with, useskills.shinstead. If~/.codex/skills/cmux-settings/scripts/cmux-settingsis false, cmux restores panes but will not automatically resume saved agent sessions.terminal.autoResumeAgentSessions -
Hook installation:bash
cmux hooks setup --agent codex cmux hooks setup --agent opencode cmux hooks setupOnly run install or uninstall commands after the user agrees.installs supported agents found on PATH and skips missing agents.cmux hooks setup -
Session restore evidence:bash
ls -lh ~/.cmuxterm/*-hook-sessions.json 2>/dev/nullMissing session stores usually means the agent has not run inside cmux since hooks were installed, hooks are disabled, or the agent integration does not support resume capture. -
Notification path:bash
cmux notify "cmux diagnostic test"Use this only when the user is ready for a visible test notification.
Interpretation
- not found: the CLI is not installed or not on PATH for this shell.
cmux - fails: app is not reachable through the current socket path, the app is closed, or automation access is disabled.
cmux ping - No or
CMUX_WORKSPACE_ID: the command is probably running outside a cmux terminal. Some hooks intentionally no-op outside cmux.CMUX_SURFACE_ID - Hook config exists but no session store: run one supported agent inside cmux after installing hooks, then re-check.
- Session store exists but restore does not launch agents: check and whether the saved executable still exists on PATH.
terminal.autoResumeAgentSessions - Settings validation fails: fix the config first. Invalid config can make later symptoms misleading.
Rules
- Stay read-only until the user asks to fix something.
- Never print raw hook files, session JSON, prompt logs, shell history, tokens, or API keys.
- Summarize file presence, size, modified time, and marker presence instead of contents.
- Prefer narrow fixes such as over reinstalling every integration.
cmux hooks setup --agent codex - After a fix, rerun the diagnostic script and report the changed lines.