Skip to content

Notification skill for Agent (e.g., Claude and Codex).

Notifications You must be signed in to change notification settings

caopulan/Notification-Skill

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

πŸ”” Notification Skill

δΈ­ζ–‡

Send push notifications when an Agent task finishes or when you need to notify users (currently supports Bark and email).

✨ Features

  • ⚑ Quick setup: Only three steps to get started: install a skill, set environment variables, and update AGENTS.md so the Agent can notify
  • πŸ–₯️ Multi-device naming: Set CODEX_MACHINE_NAME to distinguish devices
  • πŸ“£ Multi-device notification Bark (iphone), Email (any devices)

πŸ“– Usage

1. πŸ“¦ Install Notification-Skill

Choose the notification tool you need to install:

$skill-installer https://github.com/caopulan/Notification-Skill/tree/main/bark-notify
$skill-installer https://github.com/caopulan/Notification-Skill/tree/main/email-notify

2. βš™οΈ Configure

1) πŸ”‘ Get required keys or parameters

  1. Bark
  2. Email (Gmail as example)

2) πŸ”§ Set environment variables on the machine

Set environment variables (for example in ~/.zshrc or ~/.bashrc):

export CODEX_MACHINE_NAME="Your-Machine-Name"

# Bark
export CODEX_BARK_KEY="your-bark-key"
export CODEX_BARK_BASE_URL="https://api.day.app"

# Email
export CODEX_EMAIL_SMTP_HOST="smtp.example.com"
export CODEX_EMAIL_SMTP_PORT="587"
export CODEX_EMAIL_USERNAME="user@example.com"
export CODEX_EMAIL_PASSWORD="..."
export CODEX_EMAIL_FROM="user@example.com"
export CODEX_EMAIL_TO="recipient1@example.com,recipient2@example.com"
export CODEX_EMAIL_USE_TLS="false" # true/false, default false
export CODEX_EMAIL_USE_SSL="true" # true/false, default true

3) 🏷️ (Optional) Set project name

  • Add a project name in AGENTS.md
  • Otherwise, the directory name is used as the project name

3. πŸš€ Use

1) πŸ“ Add instructions in AGENTS.md

You can configure the global AGENTS.md to notify for all tasks on this machine. For example in ~/.codex/AGENTS.md:

- After each task, notify the user via the bark-notify/email-notify skill

2) πŸ’» Explicit invocation

  1. Bark
python bark-notify/scripts/send_bark_notification.py \
  --task-title "Task summary" \
  --status "success" \
  --summary "What was done" \
  --project-name "..."
  1. Email
python email-notify/scripts/send_email_notification.py \
  --task-title "..." \
  --status "success" \
  --summary "..." \
  --project-name "..."

About

Notification skill for Agent (e.g., Claude and Codex).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages