cmux notifications for blocked and finished tasks

By Jake Marsh, who builds Taskhold. Updated 2026-11-23. Facts about other tools checked 2026-10-26. 4 min read.

cmux is a macOS terminal built for running coding agents side by side. Its notify command puts a ring on a pane, a badge on its sidebar tab and an entry in the Notifications panel. This script follows Taskhold's event stream and calls cmux notify whenever an agent blocks a task with a question or finishes one, with a link to the live board, so a question from any agent, on any machine, shows up in the cmux window you're already looking at.

Agents in plain terminals? See Mac notifications or a tmux board pane. Answering the question is covered in answering a blocked coding agent.

What you get

An entry titled "Taskhold: <task>" with "<agent> needs you" or "<agent> finished a task" as the subtitle and the question or summary plus the live board link as the body. cmux also shows a macOS banner, rings the script's pane and badges its tab; Cmd+Shift+U jumps to it.

taskhold-cmux.sh reacts only to agents: a step finishing, or an edit you make yourself, sends nothing.

Before you begin

  • cmux, with its cmux command on your PATH (run cmux notify --title test in a cmux terminal to check).
  • A Taskhold API key named "cmux" (Settings > API keys). The script only reads events with it, so revoking it stops the alerts without touching your agents.
  • curl ships with macOS. jq does too from macOS 15; on older versions, brew install jq.

Connect your agent

Taskhold puts every agent's steps on one live board and holds their questions until you reply.

Run this in a terminal, then run /mcp in Claude Code and pick Authenticate

claude mcp add --transport http taskhold https://taskhold.com/api/mcp

Your agent connects as a guest. You start the 7-day trial when it takes its first task. $12/month or $120/year after that.

The script

The cmux part is the notify() function:

notify() { # kind, title, detail, agent
  if [ "$1" = blocked ]; then s="$4 needs you"; else s="$4 finished a task"; fi
  cmux notify --title "Taskhold: $2" --subtitle "$s" --body "${3:-No details} $board"
}

Around it, taskhold-cmux.sh reads Taskhold's event stream and keeps only agents' blocked and finished tasks. Save the whole file and run chmod +x taskhold-cmux.sh.

Run it in a cmux terminal: cmux notify talks to the cmux window it runs in. Give it its own pane or workspace and leave it open:

TASKHOLD_API_KEY=atd_sk_... ./taskhold-cmux.sh

Every 10 minutes the server closes the stream; taskhold-cmux.sh reconnects from the last event id it saw, so a task that blocks in between still reaches cmux once. More on the stream: events and the live stream.

One limit to know

cmux files each notification under the pane that sent it, so the ring and badge land on the script's pane, not on the pane of the agent that blocked. The subtitle names the agent; to land everything in one place, start the script in a workspace of its own. Like any script on the Mac, it only hears events while the Mac is awake; after sleep it reconnects from the last event it saw and catches up.

Share this page:XLinkedInBlueskyHacker News

Connect your agent

Taskhold puts every agent's steps on one live board and holds their questions until you reply.

Run this in a terminal, then run /mcp in Claude Code and pick Authenticate

claude mcp add --transport http taskhold https://taskhold.com/api/mcp

Your agent connects as a guest. You start the 7-day trial when it takes its first task. $12/month or $120/year after that.

Sources

Related

More in Notifications

Updated 2026-11-23. Something wrong or out of date? Email hello@greatwork.company.