@xinsd/cli-notice
v0.1.3
Published
npx installer for CLI Notice Codex, Gemini, and Qwen voice reminder integrations.
Downloads
29
Maintainers
Readme
CLI Notice
CLI Notice adds native macOS voice reminders to Codex CLI, Gemini CLI, and Qwen Code.
It helps you notice the moments that matter most while working in the terminal:
- when a CLI is likely waiting for your confirmation
- when a task has finished and the result is ready to review
The package is published as @xinsd/cli-notice and installs all integrations
through a single npm-driven workflow.
Highlights
- Native voice reminders for Codex CLI
- Native voice reminders for Gemini CLI
- Native voice reminders for Qwen Code
- Install all integrations with one command
- Install only Codex, Gemini, or Qwen if needed
- Backup and rollback built into the installer
- Runtime on/off switch with
CLI_NOTICE_ENABLED=true|false - macOS-first implementation using the system
saycommand
Install
Install the package:
npm i @xinsd/cli-noticeInstall all integrations:
npx cli-notice allInstall only one integration:
npx cli-notice codexnpx cli-notice gemininpx cli-notice qwenWhat Gets Installed
Running the installer updates your real local CLI environment.
For Codex:
- copies the Codex integration to
~/plugins/cli-notice-codex - writes
~/.codex/hooks.json - enables
features.codex_hooks = true - updates
~/.agents/plugins/marketplace.json
For Gemini:
- links the Gemini integration into
~/.gemini/extensions/cli-notice-gemini - enables notifications in
~/.gemini/settings.json
For Qwen:
- links the Qwen integration into
~/.qwen/extensions/cli-notice-qwen - ensures
~/.qwen/settings.jsondoes not disable hooks globally
Each installer creates a timestamped backup and rollback script before changing your local environment.
Quick Start
After installation, keep using your CLIs normally.
Examples:
codexgeminiqwenThe reminders are automatic once the integration is installed.
Runtime Toggle
You can turn reminders on or off per command:
CLI_NOTICE_ENABLED=true codex ...
CLI_NOTICE_ENABLED=false codex ...CLI_NOTICE_ENABLED=true gemini ...
CLI_NOTICE_ENABLED=false gemini ...CLI_NOTICE_ENABLED=true qwen ...
CLI_NOTICE_ENABLED=false qwen ...Configuration
All integrations support the same environment variables:
export CLI_NOTICE_ENABLED="true"
export CLI_NOTICE_VOICE="Tingting"
export CLI_NOTICE_LANG="zh-CN"
export CLI_NOTICE_APPROVAL_TEXT="Please check the terminal."
export CLI_NOTICE_COMPLETE_TEXT="Task finished. Please review the result."
export CLI_NOTICE_DEDUP_SECONDS="30"Defaults:
CLI_NOTICE_ENABLED=trueCLI_NOTICE_VOICE=TingtingCLI_NOTICE_LANG=zh-CN- reminder dedup window:
30seconds
How It Works
Codex
The Codex integration uses native hooks and a local voice script to announce:
- best-effort approval reminders before commands that are likely to require manual confirmation
- completion reminders when a turn finishes
Important limitation:
- Codex does not currently expose a dedicated native approval-request hook, so approval reminders are heuristic by design
Gemini
The Gemini integration uses native extension hooks to announce:
- confirmation notifications when Gemini asks for tool permission
- completion reminders after the agent finishes a task
Qwen
The Qwen integration uses native extension hooks to announce:
- permission reminders via the
PermissionRequestevent right before Qwen shows a confirmation dialog - completion reminders via the
Stopevent when the current response finishes
Project Layout
The three integrations live side by side under integrations/:
Installers:
- scripts/install_real_env.py
- scripts/install_codex_plugin.py
- scripts/install_gemini_extension.py
- scripts/install_qwen_extension.py
CLI entry:
Component Docs
Integration-specific documentation:
- Codex: integrations/cli-notice-codex/README.md
- Gemini: integrations/cli-notice-gemini/README.md
- Qwen: integrations/cli-notice-qwen/README.md
Release history:
Local Development
If you are working directly in this repository, you can still run the Python installers without going through npm:
python3 scripts/install_real_env.pypython3 scripts/install_codex_plugin.pypython3 scripts/install_gemini_extension.pypython3 scripts/install_qwen_extension.pyYou can also verify the npm package shape locally with:
npm pack --dry-runNotes
- macOS is the primary supported platform in the current release
- speech playback failures are fail-open and do not block the CLI session
- Codex approval reminders are intentionally conservative to reduce false positives during normal workspace-local file operations
- Qwen approval reminders use the native
PermissionRequesthook available in Qwen Code 0.14.0
License
MIT. See LICENSE.
