← Plugins

Better alerts

Custom per-event alert sounds, in-app toasts, and floating desktop notification cards across all connected Paseo hosts.

$ clisbot plugin add matchy233/better-alerts
Report a bug
MatchyUtils0installs8e78e6f5485eSource
Better alerts screenshot 1Better alerts screenshot 2Better alerts screenshot 3Better alerts screenshot 4

Better alerts plays a chime and shows a card for the same five categories Paseo's own notifications have: an agent needs permission, an agent errored, an agent finished, a terminal needs input, and a terminal finished. The card shows the agent or terminal, the host, and a short preview. Click an agent card to open the agent. A terminal card shows the terminal name and its folder, and opens the workspace. A terminal with no workspace gives a card that opens nothing.

When Paseo is focused, the card appears in the app. In Paseo Desktop on Windows, an alert can appear as a floating card while the window is in the background or minimized. Clicking it brings Paseo forward and opens the agent. If Windows declines to bring the window forward, the taskbar button flashes and the agent still opens. In a browser, alerts received in a background tab stay visible when you return.

Requirements

Use Paseo 0.18.0 or later on every connected host. Install Better alerts on the daemon running on the same Windows machine as Paseo Desktop, because floating cards need it there. A window on a machine with no such daemon gets in-app cards. To get floating cards on several computers, install Better alerts on each computer's daemon, at the same version.

More than one host

When several hosts run Better alerts, the copies work as one. In every window they pick the same copy to send the alerts, automatically; it cannot be chosen. Each event still alerts once, in the window used most recently. Below, the plugin host means the host whose copy sends the alerts. The sending copy asks its own daemon to draw a floating card, then the other copies' daemons, so the card appears on the Windows machine where the alerting window is; if no daemon there runs Better alerts, the card appears in the app.

The sending copy's settings apply. Its settings page starts with "⭐ Alerts in this window are sent from this host". On the other hosts, the page shows "📨 Alerts in this window run from another host" and an Open active settings button instead of the settings. The other copies copy the active settings every few seconds, so a copy that takes over alerts the same way. The Alerts row and Toggle mute alerts always change the active settings. When the sending host's daemon disconnects, or Better alerts is turned off there, another copy takes over within seconds. If the copies cannot agree, each alerts on its own, so an alert may arrive twice but none is lost.

Settings

Open the Alerts sidebar row, or Better alerts under Settings > Plugins. The page has four tabs: General, Events, Providers and Projects. On General, choose whether to use sound, cards, both, or neither. On Events, you can enable each of the five categories separately and use its built-in chime or provide an absolute path to a WAV or MP3 file on the plugin host. Sound files can be up to 1 MiB. When a custom sound cannot load or play, Better alerts tries the built-in chime.

General also lets you turn floating cards off, choose the top-right or bottom-right corner, set how long cards stay open, limit how many stack, and set a Font (a font name or comma-separated list). Font is empty by default to follow Paseo's UI font, falling back to the system font when unset, and applies to both floating and in-app cards. The focused-agent setting suppresses alerts when the relevant agent already has focus in a focused window, for agents on every host that runs Better alerts. Alert for subagents controls alerts for agents started by other agents. It is on by default.

Test each event's sound on Events, and both kinds of cards on General. The Command Center offers Test floating alert and Toggle mute alerts. Unmuting restores your selected alert mode. Agent finished and Terminal finished are off until you switch them on, as in Paseo. A setting you saved before keeps its value; an install that never saved settings stops alerting on finished turns until Agent finished is switched on.

To avoid duplicates on a computer, open Paseo's Settings > Notifications and turn off Agent needs permission, Agent errored, Agent finished, Terminal needs input and Terminal finished, or turn off Enable notifications. Those switches are saved per device.

Provider and project rules

The Providers and Projects tabs list the agent providers and projects on the plugin host. A rule for one of them can set its own sound file for each event, keep its cards without sound, or turn its alerts off. With sound only as the alert style, a cards-only rule produces no alert. An event left empty in a custom rule uses the next layer. A project rule comes before a provider rule, and both come before the event's own sound. Provider rules cover the three agent events. Project rules cover all five, terminals included, in every workspace and worktree of the project. Rules never turn on an event that is switched off. If an agent's details cannot be read within 1.5 seconds, its alert uses the event defaults.

Data and limits

Agent IDs, titles, message previews, terminal names and folders arrive from connected hosts inside Paseo. To apply rules and the subagent switch, Better alerts reads an agent's provider, workspace, project and parent agent from its host. A saved rule keeps the provider or project name and its sound paths in the plugin settings. The daemon running the plugin reads custom sound files and sends their bytes to the client that asked, which can be on another device. For floating cards, the daemon on Windows starts a local PowerShell helper script, with the execution policy bypassed for that process, and passes it the card text and font. The helper also reads the Windows preferred language list so Chinese, Japanese and Korean text uses your preferred script. The client briefly puts a random token in the window title so the helper can identify the window. With several copies, each daemon sends the window a short hash of its machine name, platform and home folder so every window picks the same copy, and the copies share settings and card requests inside the window. The plugin sends this data only within Paseo and to its local helper.

  • A collapsed sidebar does not stop alerts. A window in which the Alerts row has not appeared since it opened does not alert and leaves alerts to the other windows.
  • Keep the Alerts sidebar row enabled. It supplies the list of connected hosts and stays mounted when the sidebar is collapsed. In workspace focus mode, while the plugin host is disconnected, or while the row is hidden in Settings > Sidebar, Better alerts continues listening to the hosts it already knows. It discovers new hosts when the row returns. If the row is hidden at app startup, alerts stay inactive until it returns. After a hard load straight onto the settings page, alerts and the test buttons also stay inactive until the Alerts row has mounted, because the app theme is not known before then.
  • All windows share the plugin host's settings. Of all the Paseo browser and desktop windows connected to the plugin host, one alerts per event: the one used most recently (switched to, clicked or typed in), or the one connected longest if none was used. When it closes, another window takes over, and this also holds after the plugin host restarts. The election cannot tell computers apart, so a window on another computer can be the one that alerts. The test buttons always act in the window where you press them. Focused-agent suppression applies to agents on hosts that run Better alerts. Terminal alerts are not skipped while the terminal is on screen, because Paseo does not tell plugins which terminal is focused.
  • In a browser, interact with the page once before it can play sounds. Pressing Test sound counts.
  • Paseo sends one alert for the first pending permission request. Further requests while one is still pending leave that alert unchanged.
  • Better alerts does nothing in the iOS and Android apps: no Alerts row, no settings, no sounds and no cards. Paseo's own notifications keep working there. Paseo saves its notification switches per device, so turn them off on the computer and leave them on in the phone. In Paseo 0.18 the host sends the phone a notification when no Paseo app has been used for about three minutes, also while the phone app is closed, and only for two days after the phone app last connected to the host. Paseo in a phone's browser counts as a browser window. Change the plugin's settings from a browser or desktop window.