cmux-diagnostics
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinesecmux Diagnostics
cmux 诊断
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.
使用此skill为终端用户收集并解读支持安全的cmux诊断信息。默认执行只读检查。请勿导出钩子配置文件、会话存储、提示日志、令牌或环境密钥。
Quick Report
快速报告
Run the bundled read-only diagnostic script first:
bash
undefined首先运行捆绑的只读诊断脚本:
bash
undefinedFrom a cmux checkout
From a cmux checkout
skills/cmux-diagnostics/scripts/cmux-diagnostics
skills/cmux-diagnostics/scripts/cmux-diagnostics
From an installed skill
From an installed skill
~/.agents/skills/cmux-diagnostics/scripts/cmux-diagnostics
~/.agents/skills/cmux-diagnostics/scripts/cmux-diagnostics
From a Codex-only skills.sh install
From a Codex-only skills.sh install
~/.codex/skills/cmux-diagnostics/scripts/cmux-diagnostics
Use `--include-context` only when workspace names, cwd paths, and current cmux identifiers are relevant to the user-reported issue:
```bash
skills/cmux-diagnostics/scripts/cmux-diagnostics --include-context~/.codex/skills/cmux-diagnostics/scripts/cmux-diagnostics
仅当工作区名称、当前工作目录路径和当前cmux标识符与用户报告的问题相关时,才使用`--include-context`参数:
```bash
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.
-
CLI与套接字健康状况:bash
command -v cmux cmux ping cmux capabilities --json如果套接字命令执行失败,请检查Agent是否在cmux终端内运行,以及套接字自动化是否已启用。 -
设置健康状况:bash
~/.agents/skills/cmux-settings/scripts/cmux-settings validate ~/.agents/skills/cmux-settings/scripts/cmux-settings get terminal.autoResumeAgentSessions如果用户通过安装,请改用skills.sh。 如果~/.codex/skills/cmux-settings/scripts/cmux-settings为false,cmux会恢复面板,但不会自动恢复已保存的Agent会话。terminal.autoResumeAgentSessions -
钩子安装情况:bash
cmux hooks setup --agent codex cmux hooks setup --agent opencode cmux hooks setup仅在用户同意后再运行安装或卸载命令。会安装PATH中找到的受支持Agent,并跳过缺失的Agent。cmux hooks setup -
会话恢复证据:bash
ls -lh ~/.cmuxterm/*-hook-sessions.json 2>/dev/null缺少会话存储通常意味着自钩子安装后,Agent未在cmux内运行、钩子已禁用,或者Agent集成不支持恢复捕获。 -
通知路径:bash
cmux notify "cmux diagnostic test"仅当用户准备好接收可见的测试通知时才使用此命令。
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.
- 未找到:CLI未安装,或未在此shell的PATH中。
cmux - 失败:应用无法通过当前套接字路径访问、应用已关闭,或自动化访问已禁用。
cmux ping - 无或
CMUX_WORKSPACE_ID:命令可能在cmux终端外运行。部分钩子在cmux外会故意不执行任何操作。CMUX_SURFACE_ID - 钩子配置存在但无会话存储:安装钩子后,在cmux内运行一个受支持的Agent,然后重新检查。
- 会话存储存在但恢复未启动Agent:检查设置,以及保存的可执行文件是否仍存在于PATH中。
terminal.autoResumeAgentSessions - 设置验证失败:先修复配置。无效配置会导致后续症状产生误导。
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.
- 在用户要求修复问题前,保持只读状态。
- 切勿打印原始钩子文件、会话JSON、提示日志、shell历史记录、令牌或API密钥。
- 总结文件的存在性、大小、修改时间和标记存在情况,而非内容。
- 优先选择针对性修复,例如,而非重新安装所有集成。
cmux hooks setup --agent codex - 修复后,重新运行诊断脚本并报告更改的行。