Status tracking
Copy pageWorkmux can display the status of the agent in tmux window names and Zellij tab titles, giving you at-a-glance visibility into what the agent in each window is doing.

Agent support
Section titled “Agent support”| Agent | Status |
|---|---|
| Claude Code | ✅ Supported |
| OpenCode | ✅ Supported |
| Codex | ✅ Supported |
| Copilot CLI | ✅ Supported* |
| Pi | ✅ Supported* |
| Oh My Pi | ✅ Supported |
| Gemini CLI | ✅ Supported |
| Grok | ✅ Supported |
Antigravity CLI (agy) |
✅ Supported* |
| Kiro | Tracking issue |
| Mistral Vibe | Tracking issue |
Notes:
- Copilot CLI: No 💬 waiting state
- Pi: No 💬 waiting state
- Codex: Registration occurs when the first turn begins because its session hook is turn-bound
- Antigravity CLI (
agy): No 💬 waiting state; registration occurs when agent execution begins - Kiro: Hooks support is messy: requires a custom agent since the default can’t be edited
Status icons
Section titled “Status icons”- 🤖 = agent is working
- 💬 = agent is waiting for user input
- ✅ = agent finished (auto-clears on window focus in tmux)
Automated setup
Section titled “Automated setup”Run workmux setup to automatically detect your agent CLIs and install status tracking hooks:
workmux setupThis detects Claude Code, Codex, Copilot CLI, Gemini CLI, Grok, Antigravity CLI, OpenCode, Pi, and Oh My Pi by checking for their executable or configuration directories, then offers to install the appropriate hooks. Agent-specific configuration directory overrides are respected. Workmux also offers updates when an installed integration differs from its bundled version.
Workmux automatically modifies your tmux window-status-format to display the status icons. This happens once per session and only affects the current tmux session (not your global config).
Claude Code setup
Section titled “Claude Code setup”If you prefer manual setup, install the workmux status plugin:
claude plugin marketplace add raine/workmuxclaude plugin install workmux-statusAlternatively, you can manually add the hooks to ~/.claude/settings.json. See .claude-plugin/plugin.json for the hook configuration.
Pi setup
Section titled “Pi setup”If you prefer manual setup, copy the workmux status extension to your global pi extensions directory:
mkdir -p ~/.pi/agent/extensionscurl -o ~/.pi/agent/extensions/workmux-status.ts \ https://raw.githubusercontent.com/raine/workmux/main/resources/pi/extensions/workmux-status.tsRestart pi for the extension to take effect.
Oh My Pi setup
Section titled “Oh My Pi setup”If you prefer manual setup, copy the workmux status extension to your global OMP extensions directory:
mkdir -p ~/.omp/agent/extensionscurl -o ~/.omp/agent/extensions/workmux-status.ts \ https://raw.githubusercontent.com/raine/workmux/main/resources/omp/extensions/workmux-status.tsRestart omp for the extension to take effect.
OpenCode setup
Section titled “OpenCode setup”If you prefer manual setup, download the workmux status plugin to your global OpenCode plugin directory:
mkdir -p ~/.config/opencode/pluginscurl -o ~/.config/opencode/plugins/workmux-status.ts \ https://raw.githubusercontent.com/raine/workmux/main/resources/opencode/plugins/workmux-status.tsRestart OpenCode for the plugin to take effect.
Codex setup
Section titled “Codex setup”If you prefer manual setup, first ensure hooks are enabled in your Codex config:
# ${CODEX_HOME:-$HOME/.codex}/config.toml[features]hooks = trueThen download the hooks configuration:
codex_home="${CODEX_HOME:-$HOME/.codex}"mkdir -p "$codex_home"curl -o "$codex_home/hooks.json" \ https://raw.githubusercontent.com/raine/workmux/main/resources/codex/hooks/workmux-status.jsonIf you already have a hooks.json in your Codex home, merge the hook entries from the downloaded file into your existing configuration.
Codex permission prompts use the 💬 waiting state.
Gemini CLI setup
Section titled “Gemini CLI setup”If you prefer manual setup, download the hooks configuration and merge it into your Gemini settings:
gemini_dir="${GEMINI_CLI_HOME:-$HOME}/.gemini"curl -s https://raw.githubusercontent.com/raine/workmux/main/resources/gemini/settings.json \ | jq -s '.[0] * .[1]' "$gemini_dir/settings.json" - > /tmp/gemini-settings.json \ && mv /tmp/gemini-settings.json "$gemini_dir/settings.json"If you don’t have an existing Gemini settings file, you can download the hooks configuration directly:
gemini_dir="${GEMINI_CLI_HOME:-$HOME}/.gemini"mkdir -p "$gemini_dir"curl -o "$gemini_dir/settings.json" \ https://raw.githubusercontent.com/raine/workmux/main/resources/gemini/settings.jsonGrok setup
Section titled “Grok setup”workmux setup installs Grok lifecycle hooks under $GROK_HOME/hooks/, or ~/.grok/hooks/ when GROK_HOME is unset. Start a new Grok session after setup so it discovers the hook.
For manual setup, download the hooks configuration:
grok_home="${GROK_HOME:-$HOME/.grok}"mkdir -p "$grok_home/hooks"curl -o "$grok_home/hooks/workmux-status.json" \ https://raw.githubusercontent.com/raine/workmux/main/.grok/hooks/workmux-status.jsonUserPromptSubmit and PostToolUse mark the pane working, Notification marks it waiting, and Stop or SessionEnd marks it done. Grok permission prompts do not all emit Notification, so some prompts may remain marked as working while waiting for input.
Antigravity CLI (agy) setup
Section titled “Antigravity CLI (agy) setup”workmux setup installs Antigravity lifecycle hooks in ~/.gemini/config/hooks.json. The first PreInvocation handler registers the pane when agent execution begins, subsequent invocation and tool handlers mark it working, and the terminal Stop event marks it done.
Antigravity loads hook configuration when a session starts, so restart existing agy sessions after setup.
For manual setup, merge this named hook group into ~/.gemini/config/hooks.json:
{ "workmux-status": { "PreInvocation": [ { "type": "command", "command": "workmux register-agent >/dev/null 2>&1 || true; printf '{}\\n'" }, { "type": "command", "command": "workmux set-window-status working >/dev/null 2>&1 || true; printf '{}\\n'" } ], "PreToolUse": [ { "matcher": ".*", "hooks": [ { "type": "command", "command": "workmux set-window-status working >/dev/null 2>&1 || true; printf '{}\\n'" } ] } ], "Stop": [ { "type": "command", "command": "workmux set-window-status done >/dev/null 2>&1 || true; printf '{}\\n'" } ] }}Copilot CLI setup
Section titled “Copilot CLI setup”Copilot CLI 0.0.422 or later supports personal hooks. If you prefer manual setup, install the workmux hook under $COPILOT_HOME/hooks/, or ~/.copilot/hooks/ when COPILOT_HOME is unset:
copilot_home="${COPILOT_HOME:-$HOME/.copilot}"mkdir -p "$copilot_home/hooks"curl -o "$copilot_home/hooks/workmux-status.json" \ https://raw.githubusercontent.com/raine/workmux/main/resources/copilot/hooks/workmux-status/hooks.jsonCopilot loads personal hooks in every repository. If the repository contains a .github/hooks/workmux-status installation, remove that directory to avoid running both copies of the hook. The Copilot CLI hooks API does not support detecting permission prompts, so only working/done states are tracked (no waiting state).
Customization
Section titled “Customization”You can customize the icons in your config:
status_icons: working: "🔄" waiting: "⏸️" done: "✔️"Tmux style codes are supported for colored icons, and work in both the tmux status bar and the dashboard:
status_icons: done: "#[fg=#a6e3a1]#[fg=default]"Zellij displays the visible icon text in its tab title and ignores tmux style codes. Zellij does not auto-clear waiting or done icons on tab focus; the next status update replaces them.
If you prefer to manage the tmux format yourself, disable auto-modification and add the status variable to your ~/.tmux.conf:
status_format: falseset -g window-status-format '#I:#W#{?@workmux_status, #{@workmux_status},}#{?window_flags,#{window_flags}, }'set -g window-status-current-format '#I:#W#{?@workmux_status, #{@workmux_status},}#{?window_flags,#{window_flags}, }'Interrupted agent detection
Section titled “Interrupted agent detection”When an agent is in “working” status but its pane output hasn’t changed for 10 seconds, workmux automatically detects it as interrupted. This typically happens when a user presses Ctrl+C to stop an agent.
The detection runs in the sidebar daemon. If the agent resumes producing output, the interrupted indicator clears automatically. The dashboard reads the detection results from a shared runtime file, so both views stay in sync.
Jump to completed or waiting agents
Section titled “Jump to completed or waiting agents”Use workmux last-done to quickly switch to the agent that most recently finished its task or is waiting for user input. Repeated invocations cycle through all completed and waiting agents in reverse chronological order (most recent first).
Add a tmux keybinding for quick access:
bind l run-shell "workmux last-done"Then press prefix + l to jump to the last completed or waiting agent, press again to cycle to the next oldest, and so on. This is useful when you have multiple agents running and want to quickly attend to agents that need your attention.
Toggle between agents
Section titled “Toggle between agents”Use workmux last-agent to toggle between your current agent and the last one you visited. This works like vim’s Ctrl+^ or tmux’s last-window - it remembers which agent you came from and switches back to it. Pressing it again returns you to where you were.
This is available both as a CLI command and as the Tab key in the dashboard.
Add a tmux keybinding for quick access:
bind Tab run-shell "workmux last-agent"Then press prefix + Tab to toggle between your two most recent agents.
Disabling status hooks for nested agents
Section titled “Disabling status hooks for nested agents”If you launch another agent from inside an agent, that nested agent may run its own configured workmux status hooks and report activity from the same pane. Set WORKMUX_DISABLE_SET_WINDOW_STATUS=1 on the nested command to make workmux set-window-status exit successfully without updating tmux or agent state:
WORKMUX_DISABLE_SET_WINDOW_STATUS=1 codexUse this when you want only the parent agent pane to drive the workmux status indicator.