Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
面向Claude Code /Codex /OpenCode /Gemini /ZCode /DeepSeek Harness 的多通道AI CLI 任务完成提醒,支持耗时阈值、桌面端与命令行、通用 Webhook(飞书/钉钉/企微)、Telegram、邮件、桌面/声音提示,配备自动监听日志,AI摘要等功能
Jump to setup instructionsFetched from the repository for this visit.
|
ai-chongzhi | ai-chongzhi offers ChatGPT Plus / Pro top-ups for your own account, with WeChat Pay and Alipay, self-service ordering, and order tracking. It also offers AI services including Claude, Grok, Google Gemini, and Muse. Thank you for supporting this open-source project. |
An intelligent task completion notification tool for Claude Code / Codex / OpenCode / Gemini / ZCode / DeepSeek Harness / Grok CLI / Antigravity, supporting multiple notification channels and flexible configuration options. Get notified automatically through various methods when AI assistants complete long-running tasks, so you don't have to wait in front of your computer.
Supported Notification Methods:
📱 Webhook (Feishu/DingTalk/WeCom) • 💬 Telegram Bot • 📧 Email (SMTP)
🖥️ Desktop Notifications • 🔊 Sound/TTS Alerts • ⌚ Smart Band / Watch Alerts (via existing notification channels)
Important: For the best experience, it's recommended to grant AI assistants full file read/write permissions when using Claude Code / Codex / OpenCode / Gemini. ZCode is not affected: it completes through its native Stop hook and has no Watch path, so it does not need these permissions.
Benefits:
Stop, Codex's Stop, ZCode's Stop, Gemini CLI's AfterAgent, and OpenCode's session.status idle / session.idle / session.error events provide more timely and accurate completion signals than watch-based log polling. Codex can use native hooks when the client supports them; Watch remains available as a fallback.ai-cli-complete-notify-<version>-portable-win-x64.zip from ReleasesD:\Tools\).env.example to .env and fill in your notification configuration according to the requirements insideai-cli-complete-notify_<version>_aarch64.dmgai-cli-complete-notify_<version>_x86_64.dmgai-cli-complete-notify.app into Applications.~/.ai-cli-complete-notify/.env. On first launch it creates .env.example there when configuration is missing.Requires macOS 13.5 or later (the bundled Node.js runtime's minimum). Check About This Mac to identify your chip or processor. These are separate architecture-specific packages, not Universal binaries. Both include Node.js; installing the DMG does not require Node.js/npm or Rust/Cargo.
The following steps are only needed for Linux, development, or users who prefer to build from source. Source/dev mode requires Node.js/npm and Rust/Cargo. Tauri calls cargo when running npm run dev; if cargo --version fails, install Rust from the official Rust installation page first.
# Clone repository
git clone https://github.com/ZekerTop/ai-cli-complete-notify.git
cd ai-cli-complete-notify
# Verify Rust/Cargo is available
cargo --version
# Install dependencies
npm install
# Configure environment variables (source/dev mode)
cp .env.example .env
# Edit .env file and fill in your notification configuration
# Run desktop application
npm run dev
Optional: build a double-clickable macOS app from source:
# Build .app
npm run dist:mac:app
# Build .dmg for distribution
npm run dist:mac:dmg
The desktop app opens Quick Start the first time you open the window. Start setup and Choose a tool open Integrations, where you can install the tool's hook or plugin. Enable notifications opens Sources. Enable the source there and select a channel you have enabled in Notifications. Send a test opens the test panel in Integrations. After testing the channel, complete a turn in your AI tool to verify automatic delivery.
Skip guide takes you to Notifications and stops Quick Start from opening automatically. Open User Guide in the sidebar any time and use Back to return to your previous page. Turn off System → Show user guide to hide the sidebar entry and the launch guide. Turning it back on restores the entry and keeps your previous skip choice.
View the Notifications home screenshot





After selecting "Hide to tray", the application hides its window and keeps running. On Windows, the icon may be in the taskbar's ^ collapsed area; on macOS, use the menu bar icon to reopen the window. With silent start enabled, the app launches hidden in the tray without a balloon.
On macOS, enable Advanced → Hide from Dock (show only in macOS menu bar) to hide the Dock icon. This setting is off by default and is saved as ui.hideDockIcon; it is separate from silent start and close behavior. Click the menu bar icon, or choose Show from its menu, to reopen the window. If you use Ice or another menu bar manager and cannot find the icon, check its hidden sections and available menu bar space, then refresh the manager's layout.
WSL note: CLI reminders work for webhook/Telegram/email. Desktop notifications and sound can use Windows PowerShell from WSL; tray remains a Windows-app feature. Log monitoring works only when the AI CLI runs inside WSL (logs under
~/.claude,~/.codex,~/.gemini). For WSL/CLI config, use.envfor AI summary and Feishu card;.envoverridessettings.json.
Note: For CLI usage from source (Node), run npm install first.
On Windows portable builds:
ai-cli-complete-notify.exe is the desktop GUI.ai-reminder.exe is the packaged CLI/sidecar and should be used for terminal commands.# Source / Node
node ai-reminder.js help
# Windows portable EXE
ai-reminder.exe help
# 0) Windows PowerShell: verify WSL is installed
wsl -l -v
# 1) Enter your distro (Ubuntu example)
wsl -d Ubuntu
# 2) Install Node.js / npm inside WSL (Ubuntu example)
sudo apt update
sudo apt install -y nodejs npm
node -v
npm -v
# 3) Enter project and install deps (adjust path to your machine)
cd "/mnt/d/path/to/ai-cli-complete-notify"
npm install
cp .env.example .env
# 4) Start log watch mode (recommended for long-running use)
node ai-reminder.js watch --sources all --gemini-quiet-ms 3000 --claude-quiet-ms 60000
# 5) Wrap an AI command with automatic timing
node ai-reminder.js run --source codex -- codex <args...>
# 6) Keep watcher running in background (nohup option)
nohup node ai-reminder.js watch --sources all > ~/ai-cli-notify.watch.log 2>&1 &
tail -f ~/ai-cli-notify.watch.log
# 7) Optional: keep it in tmux (more stable)
sudo apt install -y tmux
tmux new -s ai-notify
# Run watch command inside tmux, then press Ctrl+b, d to detach
tmux attach -t ai-notify
# 8) Useful WSL <-> Windows path helpers
explorer.exe .
wslpath -w ~/.codex
Notes:
.env for webhook and summary-related settings; global channel switches already saved in the desktop app still follow settings.json.# Send notification immediately (ignore threshold)
node ai-reminder.js notify --source claude --task "Task completed"
# Check current hook status
node ai-reminder.js hooks status
# Install Claude Code hook
node ai-reminder.js hooks install --target claude
# Install Codex hooks (user-level; review / trust in Codex /hooks afterwards)
node ai-reminder.js hooks install --target codex
# Check, preview or uninstall Codex hooks
node ai-reminder.js hooks status --target codex
node ai-reminder.js hooks preview --target codex
node ai-reminder.js hooks uninstall --target codex
# Install Gemini CLI hook
node ai-reminder.js hooks install --target gemini
# Install OpenCode global plugin
node ai-reminder.js hooks install --target opencode
# Install the Herdr plugin (herdr-ai-notify) and auto-configure it
node ai-reminder.js hooks install --target herdr
# Install the ZCode hook (user-level; enables ZCode's hooks runner automatically)
node ai-reminder.js hooks install --target zcode
# Preview the hook / plugin file that will be written
node ai-reminder.js hooks preview --target opencode
# Remove a hook / plugin
node ai-reminder.js hooks uninstall --target claude
node ai-reminder.js hooks uninstall --target herdr
Notes:
Stop hook event.AfterAgent hook event.session.status idle / session.idle / session.error.sources.zcode.enabled). Installation registers UserPromptSubmit and Stop process hooks in the user-level ~/.zcode/cli/config.json and enables hooks.enabled. Existing settings and other hooks are preserved; uninstall removes only this tool’s handlers.UserPromptSubmit starts the timer and Stop checks the duration threshold: 0 allows a notification on every completed turn; a positive value requires at least that many minutes. With a positive threshold, no notification is sent if the start time is missing. Reinstall the hook when upgrading from a Stop-only installation. ZCode channel preferences can be changed independently; delivery still requires the corresponding global channel to be enabled and configured.0, and test in a new session after restarting. Test Notification sends directly and bypasses the duration threshold; it does not verify actual hook execution.herdr-ai-notify plugin through herdr plugin install, listens to pane.agent_status_changed (done / blocked), and writes AI_REMINDER_PATH into the plugin's config.env (auto-detected from the current executable path). Herdr notifications use their own herdr source, so titles are prefixed [Herdr] and its channels are configured separately (see sources.herdr). The community plugin forces delivery, so duration thresholds do not filter these events.UserPromptSubmit and Stop command hooks in CODEX_HOME/hooks.json (default ~/.codex/hooks.json), preserving existing settings and other hooks. UserPromptSubmit starts timing and Stop checks the configured duration threshold; 0 allows each completed turn to notify. Uninstall removes only this tool's handlers./hooks in a Codex client with native hook support, review / trust the new definitions, and ensure hooks are enabled. This installer does not change Codex trust decisions or enable a disabled hooks runner. Not every Codex client supports native hooks; use Watch for clients without native hook support or with hooks disabled; hybrid mode keeps Watch as a fallback.DeepSeek Harness is an independent source, disabled by default (sources.deepseek.enabled), with no Watch path. It notifies only when a main-session turn directly requested by the user completes successfully, with the reply body and optional AI summary. A threshold of 0 allows each completed turn to notify. A positive value requires the recorded duration to reach that many minutes. DEEPSEEK_WEBHOOK_URLS optionally overrides this source's webhook destinations.
On macOS, Integrations → DeepSeek Harness offers Mount in Desktop / Update Desktop mount when the official bundled dsh and an initialized Desktop profile are available. Launch Harness once, then press ⌘Q to quit fully before mounting. The app generates the plugin and registers it in the desktop profile. You can also mount it from the CLI.
node ai-reminder.js hooks mount --target deepseek --json
The card uses three status colors.
Reopen Harness, enable the DeepSeek source and the desired source/global channels, then complete one real task to verify delivery. A successful Test Notification does not verify Harness plugin execution.
For other platforms or profiles, or when Desktop is unavailable, use Generate plugin / Update plugin and register manually.
node ai-reminder.js hooks install --target deepseek
node ai-reminder.js hooks status --target deepseek
node ai-reminder.js hooks preview --target deepseek
dsh plugin --profile YOUR_PROFILE add "/ABSOLUTE/PATH/deepseek-plugin"
hooks install writes package.json, index.js and cordis.patch.yml in the app data directory's deepseek-plugin folder. Replace the example path with that directory and YOUR_PROFILE with your actual profile. For Desktop, use Desktop's bundled dsh with --profile desktop and follow the same quit and reopen steps.
Keep the plugin directory while Harness links to it. Unregister with the matching dsh and profile before deleting local files. The app protects the directory when macOS Desktop registration is confirmed or cannot be verified. Check other profiles manually.
dsh plugin --profile YOUR_PROFILE remove ai-cli-complete-notify-deepseek-plugin
node ai-reminder.js hooks uninstall --target deepseek
Grok CLI is enabled by default (sources.grok.enabled). If you previously turned it off in Sources, it stays off after upgrading. Both notification modes use native hooks. UserPromptSubmit starts timing. Stop checks the duration threshold when the main session reports end_turn. A threshold of 0 allows every normal completion. A positive threshold requires a recorded duration of at least that many minutes. Alerts are deduplicated by session and prompt.
When Stop supplies the final assistant reply, the alert can include it as original output. If AI Summary is configured, it can summarize that reply. Set WEBHOOK_INCLUDE_OUTPUT_WHEN_SUMMARY=true to keep the original reply alongside a successful Webhook summary.
Install the hook in Integrations → Grok CLI or use the commands below. The integration writes a separate $GROK_HOME/hooks/ai-cli-complete-notify.json file (default ~/.grok/hooks/ai-cli-complete-notify.json).
node ai-reminder.js hooks install --target grok
node ai-reminder.js hooks status --target grok
node ai-reminder.js hooks preview --target grok
node ai-reminder.js hooks uninstall --target grok
In Sources, confirm Grok CLI is enabled and select a channel enabled in Notifications. In a project you trust, review the hooks and run /hooks-trust. Open /hooks and press r to reload, or restart Grok CLI. Confirm Stop is enabled in /hooks. To test delivery, set the duration threshold to 0 and complete a turn in Grok CLI. Set GROK_WEBHOOK_URLS to use dedicated Webhook destinations.
If another Stop hook blocks completion, Grok can continue working after the reminder is sent. Grok CLI hooks documentation
Antigravity is enabled by default (sources.antigravity.enabled). If you previously turned it off in Sources, it stays off after upgrading. Both notification modes use native hooks. Install the hook in Integrations → Antigravity or use the commands below. Installation adds one entry to ~/.gemini/config/hooks.json and preserves the other hooks.
node ai-reminder.js hooks install --target antigravity
node ai-reminder.js hooks status --target antigravity
node ai-reminder.js hooks preview --target antigravity
node ai-reminder.js hooks uninstall --target antigravity
In Sources, confirm Antigravity is enabled and select a channel enabled in Notifications. Start a new conversation in Antigravity App, CLI, or IDE with native hook support. PreInvocation starts timing. Stop sends a completion alert when the turn succeeds, the agent is fully idle, and the duration threshold is met. Set ANTIGRAVITY_WEBHOOK_URLS to use dedicated Webhook destinations. Antigravity hook documentation
The app uses the final reply supplied by Stop or reads the final response from the matching turn in the local conversation transcript. When a reply is available, it can appear as original output or be summarized if AI Summary is configured. If the reply is unavailable, the default Feishu card shows the completion details and asks you to view the reply in Antigravity.
Open Third-party tools → Herdr. The page checks status automatically; use ① Check → ② Install and connect plugin…, then enable notifications separately. Herdr is a standalone terminal tool for running and managing AI tools such as Codex in one window. Only tasks running inside Herdr send these notifications; Codex Desktop users do not need this integration. Requires Herdr ≥ 0.7.0, Bash and Python 3; the macOS app uses bundled Node. Ready/success is green; setup required is yellow. Turning Herdr off grays out and disables channel controls while preserving selections. Normal startup/watch does not probe Herdr, and opening this page does not install anything automatically. Custom plugin settings and existing AI integrations are preserved. Only selected, globally enabled channels are used. Using Herdr and a native integration for the same task may cause duplicate notifications. Click ? to show or hide the Herdr explanation; Plugin repository opens herdr-ai-notify, and the contributor link opens 8liang.
# Explicit plugin status (ordinary hooks status does not run Herdr)
node ai-reminder.js hooks status --target herdr
# Configuration does not enable this app's Herdr notifications
node ai-reminder.js hooks install --target herdr
# Enable only after reviewing duplicate-notification risks
node ai-reminder.js config --set '{"sources":{"herdr":{"enabled":true}}}'
# Windows (EXE)
ai-reminder.exe watch --sources all --gemini-quiet-ms 3000 --claude-quiet-ms 60000
# macOS / Linux / WSL (Node)
node ai-reminder.js watch --sources all --gemini-quiet-ms 3000 --claude-quiet-ms 60000
# Windows (EXE)
ai-reminder.exe run --source codex -- codex <args...>
# macOS / Linux / WSL (Node)
node ai-reminder.js run --source codex -- codex <args...>
Note: -- separates this tool's arguments from the real command to execute. codex <args...> is just the actual AI CLI invocation (you can replace it with claude or gemini).
# Start timer
node ai-reminder.js start --source gemini --task "Build project"
# ...execute your task...
# Stop timer and send notification
node ai-reminder.js stop --source gemini --task "Build project"
--source / --sources: Specify AI source (claude / codex / opencode / gemini / zcode / deepseek / grok / antigravity / all). watch --sources all currently covers Claude / Codex / Gemini; OpenCode, ZCode, DeepSeek Harness, Grok CLI, and Antigravity use the plugin / hook paths above.--task: Task description--interval-ms: Polling interval (milliseconds)--gemini-quiet-ms: Gemini debounce time (milliseconds)--claude-quiet-ms: Claude debounce time (milliseconds)--force: Force send notification, ignore threshold# Print settings.json, state file, and watch-log paths
node ai-reminder.js paths
# Print the current effective runtime config
node ai-reminder.js config
# Check whether .env exists; create .env.example when missing
node ai-reminder.js env-status --create-example
Copy from .env.example and fill in your configuration:
Where to put .env:
ai-cli-complete-notify.exe, same as previous versions.~/.ai-cli-complete-notify/.env. Do not put it inside the .app bundle, and do not rely on the read-only .dmg volume.ai-reminder paths to see the current data directory and recommended .env path. To fully override it, set AI_CLI_COMPLETE_NOTIFY_ENV_PATH=/path/to/.env.On first launch, the packaged macOS app checks for .env automatically. If it is missing, the app creates .env.example in the data directory and shows a setup reminder; if .env exists, the app shows that the configuration loaded successfully. If Finder does not show .env.example, press Command + Shift + . to show hidden files, then copy .env.example to .env and fill in your settings.
# Webhook configuration (supports Feishu/DingTalk/WeCom)
WEBHOOK_URLS=https://open.feishu.cn/open-apis/bot/v2/hook/XXXXX
# DingTalk custom robots: set the security keyword to "AI提醒"; every Webhook message includes it.
# Optional per-source overrides. A configured source uses only its own URLs.
# CLAUDE_WEBHOOK_URLS=https://example.com/claude-hook
# CODEX_WEBHOOK_URLS=https://example.com/codex-hook
# GEMINI_WEBHOOK_URLS=https://example.com/gemini-hook
# OPENCODE_WEBHOOK_URLS=https://example.com/opencode-hook
# ZCODE_WEBHOOK_URLS=https://example.com/zcode-hook
# DEEPSEEK_WEBHOOK_URLS=https://example.com/deepseek-hook
# GROK_WEBHOOK_URLS=https://example.com/grok-hook
# ANTIGRAVITY_WEBHOOK_URLS=https://example.com/antigravity-hook
# Feishu card format (true/false). .env overrides settings.json.
# WEBHOOK_USE_FEISHU_CARD=false
# Webhooks send summary-only when AI summary succeeds by default.
# Turn this on to also include the original output.
# WEBHOOK_INCLUDE_OUTPUT_WHEN_SUMMARY=false
# Max characters for original output in non-card webhooks.
# WEBHOOK_OUTPUT_MAX_LENGTH=3000
# Desktop notifications and sound
# Used as defaults only when settings.json has not explicitly set these channel switches
NOTIFICATION_ENABLED=true
# Used as a default only when settings.json has not explicitly set the sound switch
SOUND_ENABLED=true
# Telegram Bot
# Keep the token private. For Unauthorized, run telegram-check and check the credential source first.
# Revoke it immediately if it appeared in a public screenshot, issue, or log.
TELEGRAM_BOT_TOKEN=your_bot_token
TELEGRAM_CHAT_ID=your_chat_id
# Email configuration (optional)
# EMAIL_HOST=smtp.example.com
# EMAIL_PORT=465
# EMAIL_SECURE=true
# EMAIL_USER=bot@example.com
# EMAIL_PASS=your_smtp_password
# EMAIL_FROM=AI Notify <bot@example.com>
# EMAIL_TO=you@example.com
# AI summary (optional)
# SUMMARY_ENABLED=false
# SUMMARY_PROVIDER=openai # model platform: openai | anthropic | google | qwen | deepseek
# SUMMARY_API_URL=https://api.openai.com
# SUMMARY_API_KEY=your_api_key
# SUMMARY_MODEL=gpt-4o-mini
# SUMMARY_TIMEOUT_MS=30000
# SUMMARY_PROMPT=You are a technical assistant. Output one short summary sentence.
# Custom paths (optional)
# AI_CLI_COMPLETE_NOTIFY_DATA_DIR=...
# AI_CLI_COMPLETE_NOTIFY_ENV_PATH=...
WSL/CLI quick toggles:
# .env (WSL/CLI)
SUMMARY_ENABLED=true
WEBHOOK_USE_FEISHU_CARD=true
Open the verified @BotFather account. Send /newbot, choose a name and a username ending in bot, and copy the returned Token. For an existing bot, use /mybots, select the bot, then API Token. Copy only the Token, without a URL or bot prefix. Keep it private; revoke it if exposed. Official instructions
For personal notifications, open your own bot's chat, not BotFather, press Start, and send a fresh message such as test123. No reply is required. Open the following URL in your browser, replacing all of <TOKEN> and retaining the preceding bot:
https://api.telegram.org/bot<TOKEN>/getUpdates
Find the matching message's message.chat.id. In this example, the Chat ID is 123456789, not update_id or the Token's numeric prefix:
{"ok":true,"result":[{"update_id":987654321,"message":{"chat":{"id":123456789,"type":"private"},"text":"test123"}}]}
Do not share the credential-bearing URL; close it afterwards and remember it may remain in browser history. An empty result: [] means there are no pending updates: send a new message to the correct bot and refresh. Another connected program may have read the updates. A webhook conflict means another service receives this bot's updates; obtain the ID there or use a separate notification bot to avoid disrupting it. For groups, add the bot and send /start@your_bot_username, then use message.chat.id, preserving any minus sign. For channels, grant the bot posting permission and use channel_post.chat.id from a new channel post. API reference
Click Open data directory and edit .env with a plain-text editor. If absent, copy .env.example to .env, not .env.txt. Packaged macOS apps use ~/.ai-cli-complete-notify/.env; press Command + Shift + . in Finder to show hidden files. See above for other platforms. Update existing entries rather than duplicating them:
TELEGRAM_BOT_TOKEN=your_bot_token
TELEGRAM_CHAT_ID=your_chat_id
The Channels page contains switches, not Token / Chat ID input fields.
If the browser connects but the app times out with proxyEnabled: false, set your proxy's HTTP or Mixed port in .env:
# Example only: replace 10818 with your actual HTTP / Mixed port
HTTP_PROXY=http://127.0.0.1:10818
HTTPS_PROXY=http://127.0.0.1:10818
Do not add export or semicolons. Telegram supports HTTP(S) CONNECT proxies; a SOCKS5-only port will not work here. Keep the proxy running. Desktop-launched apps may not inherit terminal exports.
Save and fully restart the app. Enable Telegram globally and for the intended source, then save. In Test notification, click Check Telegram (since 2.17.0), or run node ai-reminder.js telegram-check from the source checkout. ok: true at stage: getChat confirms authentication and chat access; check that botUsername matches. A 401 at getMe requires checking tokenSource; a timeout requires checking connectivity, not assuming the Token is invalid. A getChat failure requires checking the receiving ID and chat access.
The check sends no messages. Select the intended source and send a test notification. Verify both OK telegram in the app and an actual message in the target chat. See Telegram troubleshooting for credential precedence details.
Configuration file location:
%APPDATA%\ai-cli-complete-notify\settings.json~/.ai-cli-complete-notify/settings.jsonThis file is automatically managed by the desktop application and contains source enable status, thresholds, and other settings.
# Tauri dev mode (recommended)
npm run dev
# Frontend only
npm run dev:ui
# Default build: platform-specific output
# Windows:
# dist/ai-cli-complete-notify-<version>-portable-win-x64/
# dist/ai-cli-complete-notify-<version>-portable-win-x64.zip
# macOS:
# src-tauri/target/release/bundle/macos/ai-cli-complete-notify.app
npm run dist
# Windows portable build
npm run dist:portable
# Windows NSIS installer build (optional)
npm run dist:installer
# macOS .app
npm run dist:mac:app
# macOS .dmg (optional, for distribution)
npm run dist:mac:dmg
# Build sidecar only
npm run build:sidecar
Windows notes:
npm run dist now looks for Rust automatically from CARGO_HOME, D:\cargo, or %USERPROFILE%\\.cargo.build-tauri.bat defaults to the portable package.build-tauri.bat installer if you still need the NSIS installer.README*.md; only the executables and required runtime files are shipped.macOS notes:
--arch x64 alone does not cross-compile an ARM runtime. Maintainers can run Actions → Build Intel macOS app for native Intel builds, architecture checks, and regression tests.npm run build:sidecar generates the Tauri sidecar for the current Mac architecture, for example src-tauri/binaries/ai-reminder-aarch64-apple-darwin on Apple Silicon.npm run dist:mac:app outputs a double-clickable .app.npm run dist:mac:dmg outputs a .dmg for distribution..app sends desktop notifications through the Tauri native notification plugin. macOS may ask for notification permission once; after allowing ai-cli-complete-notify, regular reminders should not trigger repeated AppleScript access prompts..app into /Applications from the .dmg. Running the app directly from Desktop or Downloads can trigger macOS "allow access to Desktop/Downloads" privacy prompts because the sidecar runtime and resources are inside the app bundle at that protected path.run / start-stop / watch mode), notify command ignores threshold and sends directlyerrcode./hooks and an enabled hooks runner.CODEX_COMPLETION_ONLY=1 in .env, Codex confirm alerts are disabled (set it to 0 or remove it).
v2.xis the current Tauri-based desktop line.v1.xwas the Electron-based line.
EPERM during directory renames by shortening file-handle lifetimes and retrying temporary rename contention.request_user_input_async, including question titles and string options. An asynchronous tool acknowledgement keeps the turn waiting for user input instead of treating it as completed.429 and 5xx responses up to twice; Watch diagnostics include delivery errors with webhook URLs redacted.Thanks to w-java123 for PR #43 and PR #44.
CODEX_HOME/hooks.json (default ~/.codex/hooks.json) while preserving other hooks.UserPromptSubmit records the start time and Stop checks the configured duration threshold. Timing is isolated by session and turn; 0 allows each completed turn to notify, while a positive threshold requires a recorded duration.active or paused./hooks and ensure hooks are enabled. Hybrid mode keeps Watch as a fallback; clients without native hook support or with hooks disabled can continue using Watch. Watch-only mode also suppresses Codex hooks.task_complete timestamp, asynchronous Stop handling uses that completion time for the duration threshold, rather than counting processing delay as task runtime.LC_ALL, retaining the standard drag-to-Applications installation layout..env. Added Check Telegram in Test notification and node ai-reminder.js telegram-check to verify the token and chat without sending messages. See Telegram troubleshooting (Issue #37).node ai-reminder.js hooks install --target zcode. UserPromptSubmit records each turn’s start and Stop checks its duration. Timers are isolated by project and session; repeated Stop events keep the first completion time and are deduplicated. Start a new ZCode session after upgrading the hook.ZCODE_WEBHOOK_URLS, and AI summaries. No Watch path is added, and Watch-only mode does not suppress ZCode hooks.ai-cli-complete-notify_2.15.0_x86_64.dmg; the existing Apple Silicon _aarch64.dmg is unchanged. Added a native Intel build workflow and a runtime-architecture guard to prevent mixed-architecture packages.source.subagent metadata, including other: "guardian", now uses the existing subagent filter; normal parent-session completion notifications remain enabled. Thanks to Bbbbqsh for PR #34.401 / Unauthorized diagnostics with guidance to regenerate invalid or revoked Bot Tokens through @BotFather and revoke exposed tokens. This improves error reporting; it does not repair invalid credentials automatically (Issue #33).cwd, Guardian filtering with normal parent completion, and Telegram authentication diagnostics.AI提醒 marker to every Webhook payload and to the default test message, so DingTalk custom robots can use one keyword consistently for manual tests and real CLI completion alerts.AI提醒 原文 with the task or output text, while successful summaries use AI提醒 AI摘要 and preserve the existing original-output option.thread_goal_updated states for /goal tasks. Completion alerts are suppressed while a goal is active or paused, then sent once after it becomes complete, blocked, usage_limited, or budget_limited.request_user_input confirm alerts, and compatibility with older Codex logs that do not emit Goal events.tool_use / tool_result cycles. Tool results no longer reset the turn as human input, while tool calls and empty Assistant records no longer start or retain the completion timer; only the final non-empty Assistant text can trigger the completion alert.request_user_input events. Normal task_complete responses that end with questions such as "Should I continue?" remain completion alerts.CLAUDE_WEBHOOK_URLS, CODEX_WEBHOOK_URLS, GEMINI_WEBHOOK_URLS, and OPENCODE_WEBHOOK_URLS respectively.sources.<source>.webhookUrls now replaces the global URL set for that source. When no source-specific value is configured, the existing WEBHOOK_URLS and channels.webhook.urls behavior remains unchanged.Interactive sessions only source option to suppress false completion alerts from SDK-derived Agent Team, Workflow, worktree, background Agent, and claude -p sessions.entrypoint: "sdk-cli" / promptSource: "sdk" for SDK sessions and preserving normal notifications for entrypoint: "cli" / promptSource: "typed" sessions.claude -p completion alerts are required.AfterAgent Hook installation to use the required nested schema. Existing legacy flat entries are migrated automatically, unrelated Hooks are preserved, and status/uninstall now recognize the valid structure without false positives.{} response.session.status idle events in the global plugin while keeping session.idle / session.error compatibility.OpenCode Complete message.AI Summary: request timed out, original output is shown.WEBHOOK_OUTPUT_MAX_LENGTH..app now routes desktop notifications through Tauri native notifications to avoid repeated AppleScript access prompts, while CLI/source runs keep osascript display notification as a fallback. Sound alerts support say / beep, and custom audio files use afplay.ai-reminder-aarch64-apple-darwin or ai-reminder-x86_64-apple-darwin for the current architecture so packaged macOS builds can find the sidecar correctly.npm run dist:mac:app builds a double-clickable .app, while npm run dist:mac:dmg builds a .dmg for distribution.npm run dist to pick the output by platform: Windows keeps the portable package flow, while macOS builds the .app..env location as ~/.ai-cli-complete-notify/.env and added it to the paths output; Windows portable builds still support .env next to the exe..env at startup: when missing it creates .env.example and prompts the user to configure it, including a Finder hint to press Command + Shift + . when hidden files are not visible; when present it shows a successful load state.open command.package.json at build time instead of hard-coding it..app / .dmg output notes, and the reminder that public macOS distribution may require code signing and notarization.session_meta and their completion/confirm reminders are suppressed, so the reminder is sent only by the parent conversation when the whole turn finishes.session_meta instead of relying only on the tail seed window.cwd, so a long-running turn in one project no longer blocks completion alerts from another project.WARN lines, such as plugin/app-list/tool-suggestion 403 responses that do not stop the current turn.task_complete.watch / hooks behavior remains unchanged..env defaults such as SOUND_ENABLED / NOTIFICATION_ENABLED no longer forcibly override global channel switches already saved in settings.json.OpenCode as a fourth source with independent enable/threshold/channel settings.hooks install --target opencode, which writes a global plugin under ~/.config/opencode/plugins/ and triggers reminders from session.status idle / session.idle / session.error.OpenCode, including install, status, and reminder testing.dist/ai-cli-complete-notify-2.0.1-portable-win-x64/ output, the full portable desktop package is now roughly in the 40-50 MB range, and the zip package is about 20 MB.React 18 + TypeScript + Tailwind CSS, with the current bilingual settings console and simplified navigation structure.pkg, so existing node ai-reminder.js ... workflows remain compatible.Vite + Tauri, with separate frontend, sidecar, portable package, and optional installer outputs.Claude Code and Gemini CLI, while Codex currently continues to rely primarily on log watching for completion reminders.Feishu, DingTalk, and WeCom, and sends the proper payload format for each platform.code / errcode).task_complete events for faster and more stable final reminders.CODEX_COMPLETION_ONLY=1 and disabled confirm alerts by default to keep completion reminders clean.gpt-5.3-codex to avoid premature reminders..env control for Feishu card format with .env taking precedence.Issues and Pull Requests are welcome!
Thanks to everyone who has contributed to this project through code, documentation, feedback, and ideas.
This project is licensed under the ISC License.
Enjoy smart notifications and let AI work for you! 🎉
GitHub checked 63h ago - refresh overdue. Recently viewed repositories target hourly refresh.
Find a documented setup for your client. No sign-in, installation, or tool execution.
If this MCP is also published on mcpchannel.ai, you can subscribe from Browse and use the gateway config there instead.