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: desktop notification + chime when a reply finishes, with configurable duration threshold

npmnpm
Version
1.0.3
Version published
Weekly downloads
3
-78.57%
Maintainers
1
Weekly downloads
 
Created
Source

task-complete-notify

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

Features

  • Desktop popup + chime after every reply completes
  • Duration threshold: notify only when reply exceeds N seconds
  • Supports success/failure status (model can explicitly call the notify tool)
  • Auto-detects audio player: mpv → ffplay → pw-play → cvlc → paplay

Install

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

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

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-package

FAQs

Package last updated on 03 Aug 2026

Related posts