New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

task-complete-notify

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

task-complete-notify

Pi extension that sends desktop notification + chime when a reply finishes. Supports duration threshold and explicit notify tool.

latest
npmnpm
Version
1.0.6
Version published
Weekly downloads
6
-64.71%
Maintainers
1
Weekly downloads
 
Created
Source

task-complete-notify

Pi extension: desktop notification + chime when a reply finishes, with configurable duration threshold.

Only notifies when you actually need to be reminded.

npm version License: MIT Pi Extension

Why?

When Pi runs a long task in the terminal, you often switch away to do something else. Coming back to check repeatedly wastes time. This extension pops a desktop notification + chime the moment a reply settles, so you know immediately.

What sets it apart

Featuretask-complete-notifyOther notifiers
Configurable duration threshold✅ Only notify on tasks > N seconds❌ Usually always notify
Model-callable notify tool✅ Success/failure statusPartially
Chinese status support✅ "完成" / "失败"❌
Multi-player auto-detection✅ mpv/ffplay/pw-play/cvlc/paplayFewer
PlatformCurrently LinuxDepends

Install

pi install npm:task-complete-notify
# or
pi install git:github.com/lxp731/task-complete-notify

Platform: currently Linux only (requires notify-send + D-Bus notification service).

Configuration

MethodUsagePriority
Env varexport PI_NOTIFY_THRESHOLD=60Highest (per session)
Command/notify-threshold 60Persisted to config.json
Default0 = always notifyLowest

Disable auto-notify: set a very large threshold, e.g. 9999 seconds:

export PI_NOTIFY_THRESHOLD=9999     # per session
/notify-threshold 9999              # persisted (config.json)

Mute (no popup, no chime):

export PI_NO_NOTIFY=1

Usage

Automatic Notification

Works out of the box — fires a desktop notification + chime on every agent_settled event. Default threshold is 0 (always notify). Adjust to only alert on long-running tasks:

/notify-threshold 30    # only notify if reply took >30s
/notify-threshold       # show current threshold

Explicit Invocation

The model can call the notify tool to send a notification for important events like task failure or long-running task completion:

notify(message: "Data export complete: 100,000 records", status: "完成")
notify(message: "Build failed: TypeScript compilation error", status: "失败")
ParameterTypeRequiredDescription
messagestringYesNotification content
status"完成" / "失败"NoDefaults to "完成"; determines popup title and icon

FAQ

Q: Why no notification pops up?

  • Make sure libnotify is installed (notify-send command is available)
  • Your desktop must support D-Bus notifications (GNOME, KDE, XFCE, etc.)
  • Check PI_NO_NOTIFY is not set to 1
  • If a threshold is set, confirm the task actually took longer than the threshold

Q: I see the popup but hear no sound?

The extension tries players in order: mpv → ffplay → pw-play → cvlc → paplay. Install at least one (recommended: mpv).

Q: How do I temporarily turn off notifications?

export PI_NO_NOTIFY=1 or set a huge threshold like 9999.

Q: Does it support macOS / Windows?

Not yet. Currently Linux only. Cross-platform support is on the roadmap.

Dependencies

  • Desktop notification: notify-send (libnotify)
  • Audio: mpv (or ffplay / pw-play / cvlc / paplay)
  • Linux desktop environment (D-Bus notification service)

Directory Structure

extensions/
├── index.ts            # main entry
└── assets/
    └── prompt-tone.mp3 # notification chime

Keywords

pi

FAQs

Package last updated on 04 Aug 2026

Related posts