Skip to content

About

让 agent 自动监督你的 mailbox,然后回复

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

monitor-mail

English | 中文

A Claude Code skill that watches an Agent Mail inbox in real time (via agently-cli) and lets the AI read each new message and auto-reply with a context-aware response.

Installation

npx skills add yongfenggu/monitor-mail --skill -g -y

Prerequisites:

Usage

In Claude Code, just say:

  • Enable auto-reply for my mail
  • Watch my inbox
  • Monitor incoming mail

Claude will verify auth, ask you for a polling interval, run a self-test, and start the monitor. New mail triggers: read full body → AI drafts a reply → two-phase send → report to you in chat.

To stop:

  • Stop monitoring / stop

How it works

node bin/watch.mjs --interval 30
  ↓ execSync('agently-cli message +list')
agent.qq.com REST API
  ↓ diff against seen message_ids
{"event":"new_mail",...}  →  stdout
  ↓ Monitor tool consumes
Claude reads full → drafts reply → +reply (two-phase) → reports

The monitor only runs while your Claude Code session is alive. End the session, the monitor stops, no more auto-replies.

License

MIT

About

让 agent 自动监督你的 mailbox,然后回复

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages