Skip to main content

Push notifikasi ke HP via Telegram saat AI agent selesai task

Project description

CI PyPI version Python versions License

CLI Notifier

Push notifikasi ke HP via Telegram saat AI agent selesai task.

AI Agent → notify → Telegram Bot API → HP

Quick Install

pipx install cli-notifier
notify --init        # Setup AI agent global (CommandCode, Claude, Copilot)
notify --setup       # Setup Telegram @radjaCLInotifierBOT

Selesai. Setiap AI agent di project mana pun bakal kirim notifikasi ke HP.

Cara Kerja

notify adalah zero-dependency Python script (stdlib aja — urllib, subprocess). Kirim notifikasi langsung ke Telegram Bot API — gak perlu backend/server sendiri.

Fitur Status
Telegram bot bawaan — gak perlu bikin sendiri
Zero dependency (stdlib only)
Cross-platform (macOS, Linux, Windows)
Auto-detect chat ID via getUpdates
Env var override: CLI_NOTIFIER_TOKEN
Global AI agent config via --init
Clean uninstall via --uninstall
Expo backend support (opsional)

Usage

Wrap command (jalanin + notify pas selesai):

notify "sleep 5 && echo selesai"

Direct dari AI agent:

notify --agent "CommandCode" --message "Berhasil setup database"
notify --agent "Claude Code" --message "Gagal deploy" --status failed

Semua Command

Perintah Fungsi
notify <command> Jalankan command + notify
--message, -m Kirim notifikasi langsung
--status, -s success (default) / failed
--agent, -a Nama AI agent
--setup Setup ulang Telegram/Expo
--init Setup AI agent global config
--uninstall Hapus semua config
--version Tampilkan versi

Setup Kustom

Lewati bot bawaan dan pake bot sendiri:

export CLI_NOTIFIER_TOKEN="token_dari_bot_father"
notify --setup

Atau install dari source:

git clone https://github.com/dinarradja/cli-notifier
cd cli-notifier
pipx install .
notify --init
notify --setup

Expo (Opsional)

Kalau prefer Expo instead of Telegram:

make server
notify --setup   # Pilih Expo

Development

git clone https://github.com/dinarradja/cli-notifier
cd cli-notifier
python -m venv venv && source venv/bin/activate
pip install build twine
python -m unittest tests/test_notify.py -v

Build + Publish

python -m build
python -m twine upload dist/*

Struktur Proyek

cli-notifier/
├── notify_cli.py           ← Main script (stdlib only)
├── tests/test_notify.py    ← 20 unit tests
├── backend/main.py         ← FastAPI server (opsional, untuk Expo)
├── App.js                  ← Expo app (opsional)
├── Makefile                ← Helper commands
└── .github/workflows/ci.yml ← CI pipeline

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cli_notifier-0.6.0.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cli_notifier-0.6.0-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file cli_notifier-0.6.0.tar.gz.

File metadata

  • Download URL: cli_notifier-0.6.0.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for cli_notifier-0.6.0.tar.gz
Algorithm Hash digest
SHA256 5f8bf029c9e597c6635ec448f10113120fb5d74abe0fe270021b45fed70bcc94
MD5 43ad3b54a07724278e5553a78f1fecf5
BLAKE2b-256 8c243bda16daf456aabc00d31ed3ea197e7f3343b7de0fe6ea7e4b58d2b8bea9

See more details on using hashes here.

File details

Details for the file cli_notifier-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: cli_notifier-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 8.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for cli_notifier-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8c58f03d90c20f486cc73e23e6e8d8799f685fa6c3e06770675f30d106b151a4
MD5 1881df420d2e9cdf3a12ef04cb81ec0e
BLAKE2b-256 a43019d440a6072aa3a843d2e43e7ce4429a54b0f4c6cd693eab21630be258f2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page