Skip to content

About

Native macOS menu bar app for monitoring AI coding agents through herdr-core, with live status, notifications, and one-click access to Herdr.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Herdr Core Bar icon

Herdr Core Bar

Your AI coding agents at a glance, from the macOS menu bar.
A native companion for herdr-core and Herdr.app.
Website

Latest release CI macOS 27+ Swift 6.4 MIT License

The Herdr Core Bar popover. Agents that need you are listed first, then the rest by most recent use, each with its agent's logo.

Herdr Core Bar is a native macOS menu bar app for monitoring AI coding agents through herdr-core, on this Mac and on your remote machines. The menu bar shows how many agents are blocked, finished or working. One click takes you to the agent's pane in Herdr, with the keyboard already in its terminal.

Menu bar item showing 2 blocked, 2 finished and 3 working agents

Contents

Features

  • Live status, no polling. It subscribes to herdr-core's ordered event stream. Changes show up the moment an agent reports them, and the app recovers on its own after the core restarts or the connection drops.
  • Counts in the menu bar. Only nonzero groups are shown: needs you (!), finished but unread (✓) and working. When nothing needs you, it is just the icon.
  • Needs You first. Blocked agents (permission, question, sign-in), errors and unread finished turns come first, sorted by urgency. The rest follow under Recent, most recently used first. You can also sort them By Space, grouped by machine and Herdr space, then tab.
  • One click to the agent. Herdr opens with that agent's pane in front and keyboard focus in its terminal. Herdr is launched first if it isn't running.
  • Read state shared with Herdr. Opening a finished agent marks it read everywhere. Herdr Core Bar uses the same herdr.seen marker that Herdr.app writes, so neither app shows a done agent you have already looked at.
  • Agent logos. Rows show the mark of GitHub Copilot, Claude, Codex, Gemini, Cursor, OpenCode, Hermes and Pi. Other agents show their initial.
  • Remote machines. Terminals on machines added with hc machine add show up under their own heading.
  • AI credit usage. Each GitHub Copilot CLI agent shows the AI credits its current session has used. The footer adds the credits of the listed agents (Live) and all Copilot CLI usage on this Mac since midnight (Today). You can show them as AI credits or as US dollars (1 AI credit = US$0.01).
  • Notifications that respect your attention. You get a notification when an agent needs you or finishes a turn, with Open and Mark as Read actions. They wait briefly and are skipped if you already looked at the agent in Herdr.
  • Native and light. SwiftUI and Liquid Glass on macOS 27, SF Symbols animations, full keyboard control, VoiceOver labels, and support for Reduce Motion, light and dark mode.
  • Starts at login and stays current. A launch-at-login switch, and Sparkle updates that are EdDSA-signed and notarized.
Two Copilot agents showing 186 and 13 AI credits, above live and today totals Logos of Copilot, Claude, Codex, Gemini, Cursor, OpenCode, Hermes and Pi
AI credits per agent, live and today Official agent logos

Requirements

  • macOS 27 or later, on Apple silicon
  • herdr-core (hc) 0.1.22 or later, running locally
  • Herdr.app to open agents. The status display works without it.

Agent monitoring uses the status agents report to herdr-core through OSC 7501. It does not discover or monitor unrelated agent processes running outside herdr-core.

Install

Homebrew

brew install --cask olohmann/tap/herdr-core-bar

Disk image

Download HerdrCoreBar-<version>.dmg from the latest release, open it and drag Herdr Core Bar to Applications. Every release is signed with a Developer ID and notarized by Apple.

From source

See Building from source.

Using it

Click the menu bar item to open the popover.

Action How
Open an agent in Herdr Click its row, or select it and press Return
Move the selection ↑ / ↓
Close the popover Esc
Reconnect to herdr-core ⌘ R
Settings ⌘ , or the gear menu
Mark all finished agents as read Mark All Read in the footer
Sort by most recent use or by space The sort button in the footer
Show plain shells too The filter button in the footer
More actions Right-click a row: Open in Herdr, Mark as Read, Copy Address, Copy Working Directory, Reveal in Finder

Status

Status Meaning
Needs you (amber !) The agent waits for a permission, an answer or a sign-in
Error The agent reported an error
Finished (green ✓) The agent finished a turn you haven't looked at yet
Working (blue ring) The agent is working, with a progress bar when it reports progress
Idle The agent is waiting for its next task
Empty state: all quiet Offline state with retry and settings buttons
Nothing needs you herdr-core isn't reachable

Settings

Open Settings… from the gear menu.

Tab Options
General Launch at login, Sort by (Most Recent or By Space), Agents only (hide plain shells), Remote machines, Idle agents, Show AI credit usage and its unit (AI credits or US dollars)
Notifications When an agent needs you, when an agent finishes a turn, play sound, send a test notification
Connection herdr-core socket (auto-detected or set by hand), herdr-app path, core name, version and machines, Reconnect
Updates Automatic checks, Check Now, time of the last check
About Version, license and links

General settings Connection settings

How it works

flowchart LR
  subgraph Mac
    core["herdr-core (hc)"] -- "JSON-RPC events<br/>UNIX socket" --> bar["Herdr Core Bar"]
    bar -- "herdr-app do agent.focus<br/>pane.focus" --> app["Herdr.app"]
    bar -- "terminal.label herdr.seen" --> core
    app -- "terminal.label herdr.seen" --> core
  end
  remote["Remote machine core"] -- "machine/t7" --> core
Loading
  1. Connect. The app finds the herdr-core socket the same way hc does: HC_SOCKET, $XDG_RUNTIME_DIR/herdr-core/<session>.sock, then ~/.local/state/herdr-core/<session>/<session>.sock. You can also set a path in Settings. It then sends hello with protocol generation 1.
  2. Subscribe. events.subscribe returns a snapshot of every terminal, including remote ones such as machine/t7. After that come ordered events: created, status, turn, title, labels, finished, removed and more. Each carries a sequence number, so the app drops stale events. When the core reports missed, the app replaces its state with a fresh snapshot.
  3. Watch the connection. The core sends a heartbeat every 15 seconds. If 40 seconds pass without one, the app reconnects with exponential backoff, from 1 up to 30 seconds.
  4. Decide what needs you. A terminal is an agent once it reports a status through OSC 7501. A finished agent counts as unread while turn is greater than its herdr.seen label.
  5. Open. Herdr Core Bar activates Herdr, runs herdr-app do agent.focus and pane.focus, then writes herdr.seen = turn so Herdr.app agrees.
  6. Count AI credits. herdr-core doesn't report usage, so the app reads the session.usage_record events that GitHub Copilot CLI writes to $COPILOT_HOME/session-state/<session>/events.jsonl (~/.copilot by default).
    • It finds an agent's session by the inuse.<pid>.lock file that the agent's copilot process holds.
    • FSEvents tells it when a log grows, and only the new lines are read.
    • Other agents and remote machines aren't counted.

The protocol details are in docs/protocol.md.

Privacy

Herdr Core Bar talks only to your local herdr-core socket and runs the local herdr-app tool. To show AI credit usage, it reads Copilot CLI's session logs in ~/.copilot/session-state. It only reads them, and nothing from them leaves your Mac. You can turn this off under Settings → General. It has no analytics and no telemetry. The only network request is Sparkle's update check against this repository's GitHub releases, and you can turn it off under Settings → Updates.

Troubleshooting

The popover says "Offline"
  • Check that the core runs: hc server status.
  • Apps started from Finder or at login don't see your shell's environment. If you use a custom HC_SESSION, HC_SOCKET or XDG directory, set the socket under Settings → Connection. To find the path, list the herdr-core folders: ls ~/.local/state/herdr-core/*/ or ls "$XDG_RUNTIME_DIR/herdr-core/".
  • Press ⌘ R to reconnect now.
Clicking an agent does nothing, or shows an error
  • Herdr Core Bar needs the herdr-app command-line tool, which Herdr.app installs to ~/.local/bin/herdr-app. Settings → Connection shows the path it found, and you can choose another one.
  • Terminals that Herdr.app doesn't display, such as background workers without a herdr.space label, can't be opened in Herdr.
I don't get notifications

Open Settings → Notifications. If permission was denied, Open Notification Settings… takes you to System Settings. Send Test Notification checks delivery.

An agent I already read shows up as finished

Read state comes from the herdr.seen label on the terminal. Opening the agent in Herdr or from the bar updates it. Mark All Read clears every finished agent at once.

Logs
log stream --predicate 'subsystem == "com.olohmann.herdr-core-bar"' --level info

Building from source

You need Xcode 27 (Swift 6.4) on macOS 27.

git clone https://github.com/olohmann/herdr-core-bar.git
cd herdr-core-bar
scripts/build.sh --open                # builds, ad-hoc signs and launches dist/Herdr Core Bar.app
swift test                             # Swift Testing suites
swift-format lint --strict -r Sources Tests
Path Contents
Sources/HerdrCoreKit The UI-free protocol library: JSON-RPC over a UNIX socket, models, the event reducer, presentation, notification policy and the reconnecting session
Sources/HerdrCoreBar The SwiftUI app: menu bar label, popover, settings, notifications, Herdr focus, Sparkle
Tests/ Unit tests for both, including an in-process socket server
scripts/ build.sh, verify-bundle.sh, release.sh, make-dmg.sh, update-cask.sh, test-release.sh, update-agent-logos.py
Resources/ Info.plist, the Icon Composer app icon and the agent logos with their sources (AgentLogos/SOURCES.md)

Developer conveniences:

  • HerdrCoreBar --preview runs the app with invented sample data.
  • HerdrCoreBar --render-preview <dir> writes the README screenshots to <dir>.
  • HCBAR_SCRATCH_SOCKET=<socket> swift test adds an integration test against an isolated core, for example HC_SESSION=scratch hc server start.

Releasing

Releases are cut by scripts/release.sh, either locally or from GitHub Actions when a v* tag is pushed. The script:

  • builds and signs with the Developer ID;
  • notarizes and staples the zip and the DMG;
  • signs the Sparkle appcast;
  • publishes the GitHub release;
  • updates the Homebrew cask.

Setup and steps are in docs/releasing.md. Changes are listed in the changelog.

License

MIT © 2026 Oliver Lohmann.

Herdr Core Bar is an independent project and is not affiliated with Herdr.

The agent logos are trademarks of their owners: GitHub, Anthropic, OpenAI, Google, Anysphere, OpenCode, Nous Research and Earendil. Herdr Core Bar uses them only to identify each agent. That use doesn't mean the owners endorse Herdr Core Bar or are affiliated with it. Sources and terms are listed in Resources/AgentLogos/SOURCES.md.

About

Native macOS menu bar app for monitoring AI coding agents through herdr-core, with live status, notifications, and one-click access to Herdr.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages