macOS menu-bar plugin Β· SwiftBar

See which Claude Code session needs you.

The session that needs you is never the one in focus. Run five agents at once and never lose one β€” every session's status lives in your menu bar, glance-able, where you're already looking. Finished, working, stalled, ignored.

The smallest possible answer to β€œwhich agent needs me right now?” β€” and the best tool there is for running Claude Code in parallel.

View source

macOS Β· Python 3.9 stdlib Β· zero external deps

🟑 1 🟒 2 πŸ”΅ 1
Tools…updates every 5s

↑ live recreation β€” watch a session finish, spawn subagents, hit context limit

🟑
Working / waiting

Running a tool, or paused on a permission prompt.

🟒
Fresh

Finished β€” and you haven't opened it yet.

πŸ”΅
Acknowledged

You've opened it; still in active follow-up.

βšͺ
Stale

Quiet for a while β€” fades to grey, still reachable.

What it shows

Everything answers one question β€” which agent needs me right now? β€” without pulling focus. And nearly everything here is highly customizable: ~29 config knobs, so it bends to your workflow, not the other way around.

πŸ“Š

Menu-bar counters

At a glance, no labels: how many sessions are working, freshly finished, or in follow-up. Dims when nothing's urgent.

πŸ—‚οΈ

Urgency-sorted dropdown

Every session active in the last 3h, sorted active β†’ fresh β†’ acked β†’ stale. Click a row to jump to it in your editor.

πŸ—ƒοΈ

Session groups

File sessions into groups in the Claude Code sidebar and the menu mirrors them β€” either the group name prefixing each row, or one folded entry per group whose header counts the live states inside. Read-only: grouping stays in the IDE.

πŸ”

It keeps asking Β· new

A permission prompt announces itself once. Miss that banner and the agent just stands there. Now the same notification repeats on a doubling schedule until you answer β€” 10, 30, 70 minutes β€” then fades out on its own.

πŸ“₯

Archive, mirrored Β· new

Archive a session in the sidebar and its row leaves the menu too β€” unless you gave it a tag or a bookmark. Those are the bar's own markers, so setting one keeps a session in view no matter what the editor thinks.

❯

Terminal sessions

A session started in a shell is marked ❯, and its row raises the terminal tab that owns it β€” Terminal.app or iTerm2 by tty, then tmux, then screen, then claude --resume. No more resuming the same transcript twice.

⏳

Subscription usage

Your 5-hour and weekly windows as two bars under Statistics β€” yellow past 60%, red past 85%. Read straight from Claude Code's own get_usage: no inference, no quota spent, nothing left running.

πŸ””

Audible nudges Β· most-loved

Chime + a spoken line via macOS say + a click-to-jump banner when a session finishes, stalls, or sits unread β€” and it keeps asking if you leave a prompt standing. It speaks what the session did and which one needs you β€” every phrase and the voice yours to set. See below.

πŸ€–

Subagent rollup

Sessions spawning Task subagents grow a πŸ€–Γ—N badge, and the parent row holds 🟑 until the last one returns.

⚠️

Context warnings

Past 80% context the row shows ⚠ {pct}% (red past 90%) β€” a glance flags who's near auto-compact.

βŽ‡

Branch & worktree cues

Rows flag a shared-folder collision (βŽ‡), an isolated worktree checkout (ⓦ), and a blocked one reads waiting {duration} β€” so you see where work lands, not just that it's running.

πŸŒ™

Quiet hours & keep-awake

Pause notifications on a schedule; caffeinate -i wrapper (off / auto / always) keeps the Mac up while agents run.

🏷️

Per-row submenu

Remind (re-speak its last summary), Mark as read, Forget, Delete, Reveal in Finder β€” plus git branch, model chip, context %, and last tool_use on hover.

🧰

Tools submenu

Bulk acknowledge/forget, today's activity (turns, tokens, by model), a Banner-and-voice / Banner-only toggle, and a jump to your config.

πŸ“

Compact mode

Crowded bar on a notched MacBook? "compact": true drops the icon and swaps πŸŸ‘πŸŸ’πŸ”΅ for narrow ANSI bullets ●2 ●1 ●3 β€” saves ~30px.

πŸͺΆ

Stateless & light

No daemon, no IPC. A Python script rebuilds the menu from disk every 5s. macOS stdlib only β€” nothing to keep running.

βš™οΈ

Highly customizable

~29 config knobs: phrases, voice, sounds, quiet hours, thresholds, the menu-bar icon, fresh/ack windows, compact mode, editor. Defaults work β€” change only what you want.

most-mentioned feature

Hear what a session did β€” and which one needs you.

When a session finishes, stalls on a permission prompt, or sits unread, your Mac says it out loud β€” not just a chime, but a one-line summary of what it did and, for a blocked session, its name, so with five agents running you know by ear which to open without ⌘-tabbing. The summary comes from the *-- Name - Summary* line your replies end with. And the thing people keep calling out: every spoken phrase is yours to change.

  • 🟒 On finish β€” speaks the summary of what the session just did (no marker β†’ a random notify_phrases line)
  • 🟑 On a permission prompt β€” names the blocked session + what it was doing, after a notify_wait_phrases line
  • ⏰ Idle nudge β€” a finished session you never opened is re-announced after 30 min, then at doubling intervals for as long as the row stays green, with its own notify_idle_phrases
  • πŸ” It keeps asking β€” leave a permission prompt standing and the same notification repeats on a doubling schedule (10 β†’ 30 β†’ 70 min): a blocked agent costs more than an unread one
  • πŸ” Remind β€” any row's submenu re-speaks its last summary on demand, even under Banner only
  • πŸ”‡ One-click Banner only in Tools β†’ Notifications mutes speech + chime, keeps the banner
  • πŸ—£οΈ Any macOS voice via notify_voice; multi-part lines land as separate beats with a short pause between them

Your name, inside jokes, a movie line, your dog's name β€” whatever makes you look up. The same marker can also retitle the menu rows (opt-in).

config.json
{
  "notify_phrases": ["It is done, my liege", "Touch grass, I got this"],
  "notify_wait_phrases": ["I need an adult", "Halt β€” human required"],
  "notify_idle_phrases": ["Still here β€” still unread"],
  "notify_voice": "Samantha",
  "notify_threshold_sec": 30
}
◐
❓ I need an adult
api-gateway β€” ⓦ feat/rate-limit
Rate limiter β€” needs approval to edit nginx.conf Β· click to open
now

subagent rollup

A long Task won't lie to you.

When a session fans out into Task subagents, the row grows a live πŸ€–Γ—N badge β€” and the parent stays 🟑 working for as long as any subagent is in flight, so a 10-minute fan-out never drifts into a misleading 🟒 finished.

  • πŸ€– Live count of in-flight subagents on the parent row
  • 🧾 Per-agent detail stays in the extension β€” the bar answers how many
  • 🟑 Parent holds working until the last subagent returns
🟑 Refactor authentication middleware πŸ€–Γ—3 working
  • πŸ“auth-service
  • β‘‚feat/middleware-rewrite
  • β—·62% β€” 380k/1000k

In the wild

Real SwiftBar, real sessions.

The menu bar and dropdown with several Claude Code sessions
The menu bar and dropdown, sorted by urgency.
Compact mode with narrow ANSI bullets
Compact mode β€” narrow ANSI bullets for a crowded bar.

Install

Homebrew. Idempotent β€” safe to re-run.

step 1

Install

brew install --cask swiftbar
brew install terminal-notifier
brew install alexey-krylov/claude-agents-bar/claude-agents-bar
step 2

Wire it up

claude-agents-bar setup

Symlinks the plugin, registers the Claude Code hook, and merges hook entries into settings.json (with a timestamped backup).

step 3

Verify

claude-agents-bar doctor

Checks jq + python3 + SwiftBar.app, hook registration, sidecar freshness, and your editor app.

terminal-notifier is optional β€” the menu-bar UI works without it, but banners + chime won't fire. No Homebrew? There's a git-clone path in the repo.

How it works

A Python script polls every 5 seconds. It reads the JSONL transcripts Claude Code already writes (for titles and cwd) plus a small sidecar TSV that a Claude Code hook updates on every session event β€” UserPromptSubmit, PreToolUse, PermissionRequest, Stop, and friends. (Not SessionStart: the editor fires it on every tab switch, which would light up rows nobody is working in.)

No daemon, no IPC. The plugin is stateless and rebuilds the menu from disk on every tick. Without the hook it still runs, but every session reads as idle β€” the state TSV is what distinguishes working / waiting from idle.

Architecture (PLUGIN.md) Design rationale (ADRs) Full configuration