Your AI coding agents at a glance, from the macOS menu bar.
A native companion for herdr-core and Herdr.app.
Website
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.
- Features
- Requirements
- Install
- Using it
- Settings
- How it works
- Privacy
- Troubleshooting
- Building from source
- Releasing
- License
- 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.seenmarker 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 addshow 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.
|
|
| AI credits per agent, live and today | Official agent logos |
- 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.
brew install --cask olohmann/tap/herdr-core-barDownload 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.
See Building from source.
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 | 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 |
![]() |
![]() |
| Nothing needs you | herdr-core isn't reachable |
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 |
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
- Connect. The app finds the herdr-core socket the same way
hcdoes: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 sendshellowith protocol generation 1. - Subscribe.
events.subscribereturns a snapshot of every terminal, including remote ones such asmachine/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 reportsmissed, the app replaces its state with a fresh snapshot. - 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.
- Decide what needs you. A terminal is an agent once it reports a status through OSC 7501.
A finished agent counts as unread while
turnis greater than itsherdr.seenlabel. - Open. Herdr Core Bar activates Herdr, runs
herdr-app do agent.focusandpane.focus, then writesherdr.seen = turnso Herdr.app agrees. - Count AI credits. herdr-core doesn't report usage, so the app reads the
session.usage_recordevents that GitHub Copilot CLI writes to$COPILOT_HOME/session-state/<session>/events.jsonl(~/.copilotby default).- It finds an agent's session by the
inuse.<pid>.lockfile that the agent'scopilotprocess holds. - FSEvents tells it when a log grows, and only the new lines are read.
- Other agents and remote machines aren't counted.
- It finds an agent's session by the
The protocol details are in docs/protocol.md.
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.
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_SOCKETor XDG directory, set the socket under Settings → Connection. To find the path, list theherdr-corefolders:ls ~/.local/state/herdr-core/*/orls "$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-appcommand-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.spacelabel, 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 infoYou 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 --previewruns the app with invented sample data.HerdrCoreBar --render-preview <dir>writes the README screenshots to<dir>.HCBAR_SCRATCH_SOCKET=<socket> swift testadds an integration test against an isolated core, for exampleHC_SESSION=scratch hc server start.
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.
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.



