HeyAgent provides real-time notifications for Claude Code and Codex CLI. It benefits developers and operations teams by alerting them to agent activities. It connects to Slack, Telegram, WhatsApp, and terminal apps for integration into existing workflows.
git clone https://github.com/gergomiklos/heyagent.gitHeyAgent CLI connects Claude Code and Codex to Telegram, allowing developers to interact with AI agents through chat messages entirely from their phone or terminal. The tool operates fully locally without external servers or cloud storage, making it suitable for teams prioritizing privacy and control. Users can switch between Claude and Codex providers mid-session, manage multiple sessions, and send text, images, documents, audio, and video attachments through Telegram. Setup uses either QR-code phone pairing or manual bot token entry, storing all configuration locally. The skill supports both Telegram commands and local CLI input, with message queuing and provider execution control through permission flags.
[{"step":1,"action":"Install HeyAgent and connect your preferred notification platform (Slack, Telegram, WhatsApp, or terminal). Use the HeyAgent CLI to authenticate: `heyagent auth --platform [slack|telegram|whatsapp|terminal]`","tip":"For Slack, create a dedicated channel like #agent-alerts and invite HeyAgent as a member."},{"step":2,"action":"Configure monitoring rules for your agents. Use the HeyAgent config file or CLI to specify events to track: `heyagent config --events [task_completed|task_failed|progress_update] --agent [claude|codex]`","tip":"Start with critical events (failures, timeouts) before adding progress updates to avoid notification fatigue."},{"step":3,"action":"Integrate HeyAgent with your existing workflows. For example, link it to your CI/CD pipeline by adding a step in your GitHub Actions workflow: `- name: Monitor Agent - uses: heyagent/action@v1 with: events: task_completed, task_failed`","tip":"Use the `--context` flag to include project names or priority levels in notifications for better filtering."},{"step":4,"action":"Test the setup by triggering a dummy event. Run a test command: `heyagent test --event task_failed --project test-project` and verify the alert appears in your chosen platform.","tip":"Check your notification platform's settings to ensure HeyAgent has permission to send messages."},{"step":5,"action":"Monitor and refine. Review notification logs with `heyagent logs` and adjust rules as needed. For example, mute non-critical events during off-hours using `heyagent config --schedule '0-8'`.","tip":"Use the `--format json` flag to export logs for further analysis in tools like Grafana or ELK."}]
Receive and respond to AI agent prompts from Telegram while away from your terminal
Switch between Claude and Codex providers without restarting your session
Send documents, images, and voice notes to agents through Telegram
Run multiple independent agent sessions and resume them by session ID
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/gergomiklos/heyagentCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
Monitor [AGENT_NAME] activities in real-time using HeyAgent. Set up notifications for [SPECIFIC_EVENTS] like task completions, errors, or progress updates. Send alerts to [PREFERRED_PLATFORM: Slack/Telegram/WhatsApp/Terminal]. Include [ADDITIONAL_CONTEXT] such as project name or priority level. Example: 'HeyAgent, monitor my Claude Code agent for task failures or long-running processes. Send alerts to my Slack #dev-alerts channel with the project name and error details.'
``` 🚨 HeyAgent Alert: Agent Activity Detected Agent: Claude Code (ID: cc-20240512-1422) Event: Task Failed Project: API-Refactor Error: Timeout after 120s while compiling /src/utils/validation.js Duration: 3m 45s Next Steps: 1. Check logs: tail -n 50 /var/log/claude/cc-20240512-1422.log 2. Restart agent with: claude --debug --project API-Refactor 3. Notify team lead: @channel Timestamp: 2024-05-12 14:25:33 UTC ``` ``` ✅ HeyAgent Alert: Agent Activity Detected Agent: Codex CLI (ID: cx-20240512-1510) Event: Task Completed Project: Data-Pipeline Output: Successfully processed 1,247 records (98% success rate) Files Generated: - /output/processed/2024-05-12_batch1.csv - /output/errors/2024-05-12_errors.json Next Steps: 1. Verify output files: ls -lh /output/processed/ 2. Deploy to staging: ./deploy.sh --env staging --batch 2024-05-12 3. Update dashboard: https://metrics.company.com/pipelines Timestamp: 2024-05-12 15:12:18 UTC ```
AI assistant built for thoughtful, nuanced conversation
Get more done every day with Microsoft Teams – powered by AI
Automate security compliance and monitor real-time security posture seamlessly.
Automate your spreadsheet tasks with AI power
Agentic AI Workflow platform
Connected workspace for docs, wikis, and projects
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan