explaingit

collindjohnson/agent-notify

18ShellAudience · vibe coderComplexity · 1/5LicenseSetup · easy

TLDR

A small tool that sends you a desktop alert when your AI coding assistant finishes a task or needs a response, so you can step away from your screen without missing the moment it is done and waiting.

Mindmap

mindmap
  root((agent-notify))
    What it does
      Desktop alerts
      Voice announcements
      Custom sounds
    Supported Tools
      Claude Code
      OpenAI Codex
      Gemini CLI
      Cursor
    Platforms
      macOS
      Linux
      Windows
    Install
      Homebrew
      npm
      Shell script
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Things people build with this

USE CASE 1

Step away while Claude Code runs a long task and receive a desktop pop-up the moment it finishes

USE CASE 2

Get a voice announcement on macOS or Windows when your AI agent pauses for input

USE CASE 3

Enable notifications per project so only certain workspaces trigger alerts

Tech stack

ShellHomebrewnpm

Getting it running

Difficulty · easy Time to first run · 5min
MIT license, use, copy, modify, and distribute freely for any purpose, including commercial use.

In plain English

Agent-Notify is a small tool that sends your computer a desktop notification whenever an AI coding assistant finishes a task or needs your attention. If you use Claude Code, OpenAI Codex, Google Gemini CLI, or the Cursor editor's agent mode, you can run this in the background and step away from your screen without missing the moment the AI is done and waiting for you. The tool hooks into the notification or hook systems that each AI tool already exposes. For Claude Code, it writes entries into a settings file that Claude checks at the end of each task. For Codex and Gemini, it does the same through their respective config files. When the AI finishes or pauses for a decision, the hook fires a script that triggers a system notification on macOS, Linux, or Windows. No middleware or cloud service is involved. Installation is intentionally simple. On macOS you can use Homebrew with a single command. On Linux or Windows, there are one-line install scripts. An npm path also works across all three platforms. Once installed, running the command an on scans for whichever supported AI tools you have and enables notifications for all of them at once. You can also enable per-tool or per-project rather than globally. Beyond basic pop-up alerts, the tool supports playing a custom sound when a task completes and reading out a voice announcement on macOS and Windows. You can control which kinds of events trigger notifications: by default it only alerts when the AI is idle and waiting for input, but you can add alerts for tool permission requests or when sub-agents finish. The project is a fork of an earlier tool called code-notify and is released under the MIT license.

Copy-paste prompts

Prompt 1
I just installed agent-notify and want to enable it for Claude Code only. What command do I run and what config file does it write to?
Prompt 2
How do I configure agent-notify to play a custom sound file when a Claude Code task completes instead of the default system beep?
Prompt 3
I want agent-notify to alert me when sub-agents finish but not for every tool permission prompt. How do I configure which event types trigger notifications?
Prompt 4
I'm on Linux and want to install agent-notify. Walk me through the one-line install and enabling it for both Claude Code and Gemini CLI at once.
Open on GitHub → Explain another repo

← collindjohnson on gitmyhub — every repo by this author, as a profile.

Verify against the repo before relying on details.