Cmux workspace status

From phatblat/dotfiles · View interactive version

Cmux workspace status is an AI agent skill from the GitHub repository phatblat/dotfiles. Set the cmux workspace to done with `cmux workspace status set done`. Use at the end of a verified session in a cmux terminal; skip when blocked, handed off, or nothing changed.

How to use this skill

Skill file

cmux-workspace-status

cmux shows a status lane per workspace in its left sidebar. The lane is normally inferred from live signals (agent needs input > agent running > open PR > all PRs merged or closed > dirty git tree > todo), so a finished session whose tree is still dirty keeps reading as working. Pinning done is what makes the sidebar reflect a reached goal.

When to invoke

Invoke once, immediately before the final response of a session in which all of these hold:

Do not invoke when:

Guard and command

The command targets the caller's workspace through CMUX_WORKSPACE_ID. Outside a cmux terminal that variable is unset and cmux falls back to whichever workspace is focused, which is the wrong one. Check first and do nothing when it is empty:

[ -n "$CMUX_WORKSPACE_ID" ] || exit 0
cmux workspace status set done

Expected output:

done
inferred: <lane>
override: done (auto-clears when inferred moves off <lane>)

Notes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.