Desktop Notifications

April 12, 2026 · View on GitHub

When Nanocoder is running a long task in the background, you might switch to another window and miss when it needs your input. Desktop notifications let you know when attention is required.

Quick Start

Open /settings and select Notifications to enable them. Toggle which events you want to be notified about:

  • Tool Confirmation — a tool call needs your approval
  • Question Prompt — the AI has asked you a question
  • Generation Complete — the AI has finished responding and is ready for your next message

You can also enable notification sound.

How It Works

Nanocoder uses native OS notification APIs — no bundled binaries or external dependencies.

PlatformMethodIcon Support
macOSterminal-notifier (if installed)Yes
macOSosascript (fallback)No
Linuxnotify-sendYes
WindowsPowerShell toastNo

macOS — Getting the Best Experience

By default, Nanocoder falls back to osascript which shows basic notifications without the Nanocoder icon. For the full experience with icon support and proper click-to-focus behaviour, install terminal-notifier via Homebrew:

brew install terminal-notifier

Nanocoder will automatically detect and use it. You may need to allow notifications for terminal-notifier in System Settings > Notifications the first time.

Linux

Notifications use notify-send, which is included with most desktop environments (GNOME, KDE, etc.). The Nanocoder icon is included automatically when available.

Configuration

Notification preferences are stored in nanocoder-preferences.json under the nanocoder.notifications namespace. You can configure them via /settings or by editing the file directly:

{
  "nanocoder": {
    "notifications": {
      "enabled": true,
      "sound": true,
      "events": {
        "toolConfirmation": true,
        "questionPrompt": true,
        "generationComplete": false
      },
      "customMessages": {
        "toolConfirmation": {
          "title": "Action Required",
          "message": "Nanocoder needs your approval"
        }
      }
    }
  }
}
OptionTypeDefaultDescription
enabledbooleanfalseMaster toggle for all notifications
soundbooleanfalsePlay a sound with each notification
events.toolConfirmationbooleantrueNotify when a tool needs approval
events.questionPromptbooleantrueNotify when the AI asks a question
events.generationCompletebooleantrueNotify when a response is ready
customMessages.<event>objectOverride the default title and message for an event

Notification titles include the current project directory name, e.g. "Tool Confirmation Required in my-project".