One command when attention is needed
A script or agent runs tmsg notify with a plain-text message. There is no daemon to manage and no separate application server in the middle.
A small Telegram notification CLI for scripts and AI agents that need your attention.
I wanted my scripts and AI agents to have a simple way to reach me when I was away from the computer.
Long-running work does not always finish while I am sitting at the terminal. Sometimes an agent completes a task, gets blocked, or needs a decision before it can continue. Checking the screen repeatedly defeats the point of letting that work run on its own.
tmsg gives that work one small escape hatch: send a Telegram message and stop. It is intentionally direct, with local configuration and behavior that a shell script can understand.
A script or agent runs tmsg notify with a plain-text message. There is no daemon to manage and no separate application server in the middle.
The bot token and numeric target ID stay in an XDG-compatible config file, protected by private permissions and replaced atomically when settings change.
Success, runtime failure, and invalid usage have distinct exit codes. Diagnostics go to stderr, and the bot token is redacted from Telegram API errors.
tmsg does one outbound notification job and stops. Features that would blur that boundary stay outside the project.
Automation needs a small, stable contract more than it needs a long feature list.
tmsg notify "Agent finished and needs review"Read the source, setup instructions, and command reference in the repository.