Skip to content

Repository files navigation

Herdr Perch icon

Herdr Perch

Your Herdr agents, perched in the MacBook notch.

English · 简体中文

CI Latest release Downloads
macOS 14+ Swift 6 Herdr 0.9.5+ License

An agent gets blocked and peeks out of the notch; hovering opens the full list, one agent in each state

What it does

  • Every agent at a glance. A pixel ram in the notch takes the colour of your most urgent agent; hover to see them all, grouped into Needs you, Done, Working and a folded Idle.
  • Speaks up when it matters. When an agent asks for approval or input, finishes, or Herdr goes away, the notch peeks out with just that card; hover to see everything. Peeks for finished agents can be turned off in Settings.
  • One click back. Click a row to focus that agent's pane in the Herdr TUI and bring your terminal to the front, or to show the agent in the Herdr app.
  • Zero setup. Perch finds every local Herdr TUI session and herdr-core session by itself and follows them as they start, stop and reconnect. Agents on machines you added to herdr-core show up too.
  • Stays out of the way. No Dock icon, no extra processes; it idles at well under 1% CPU.

Peek: a finished and a blocked agent stack up as cards, then leave once handled

Requirements

  • macOS 14 Sonoma or later on Apple silicon. Built for MacBooks with a notch; on other displays Perch draws a notch-shaped panel at the top of the screen.
  • Herdr 0.9.5 or later, or herdr-core 0.1 (with or without the Herdr app), running locally. Both can run at the same time.

Install

Download Herdr-Perch-<version>.dmg from the latest release, open it and drag Herdr Perch into Applications.

The app is not notarized yet, so macOS blocks it the first time you open it. To allow it, open System Settings → Privacy & Security, scroll down and click Open Anyway next to the message about Herdr Perch. You only need to do this once.

How it works

Perch is a read-only companion. It connects directly to each Herdr server's Unix socket, subscribes to agent status events, and shows exactly what herdr agent list reports — it never guesses a state Herdr did not report. It does not install hooks into your agents, change Herdr's configuration, or start any processes. The only thing it ever asks Herdr to do is focus a pane, and only when you click a row.

With herdr-core, Perch follows the core's event stream and shows every terminal whose program reports a status (OSC 7501); a program that doesn't report one isn't listed. Done matches the Herdr app's agents list: an agent that finished while you weren't looking, until you look at it in the app or jump to it from Perch. Clicking a row asks the Herdr app to show that agent.

Agent titles from tools such as oh-my-pi carry prompt characters and Nerd Font icons (π > 󰈙 …); Perch strips them for display. You can turn this off in Settings.

Clicking a row brings your terminal forward if it is Ghostty, Terminal, iTerm2, kitty, WezTerm, Alacritty or Warp.

Settings

Open Settings from the gear in the expanded notch, or from the ram in the menu bar.

Setting Options
Notch style Clean (count) · Dots (one per agent) · Counts (per state)
Peek when an agent finishes On · Off
Display Built-in Notch Display · Main Display
Clean agent titles On · Off
Reduce motion when the system asks to Off · On
Launch at login Off · On

Build from source

Requires Xcode 16 or later (Swift 6).

git clone https://github.com/Hariketsu/herdr-perch.git
cd herdr-perch
scripts/bundle.sh          # builds dist/Herdr Perch.app
open "dist/Herdr Perch.app"
scripts/make-dmg.sh        # optional: dist/Herdr-Perch-<version>.dmg

Tests:

swift test                                                   # unit tests
uv run --project Tests/E2E pytest Tests/E2E -p no:cacheprovider   # end-to-end, against a throwaway Herdr session and core

perchctl dump | watch prints the state Perch derives from Herdr, which is handy for debugging.

Contributing

Bug reports, ideas and pull requests are welcome. See CONTRIBUTING.md for how to build, test and submit changes, and ARCHITECTURE.md for a map of the code.

Acknowledgments

License

GPL-3.0. Herdr Perch is an independent project and is not affiliated with or endorsed by Herdr. Agent marks are trademarks of their respective owners and are used only to identify agents.

Releases

Packages

Contributors

Languages