agent-email-guard
A tool that limits AI agents’ email volume and flags repeat sends and recipients who require approval.
What does it do?
Define sending limits in agent-email-guard.json and connect the checks to your application’s email sending path. A check returns one of 3 outcomes: allow, await human approval, or deny, along with the reason and relevant figures. In-memory storage keeps a separate budget for each process, while Redis or Postgres storage lets multiple processes share limits. The repository also includes a GitHub Action that checks email sending code.
Key features
- Limit the number of emails sent per hour and per minute
- Detect repeated messages and hold email to specific recipients for approval
- Return allow, await approval, or deny decisions with reasons
- Share sending budgets across processes with Redis or Postgres
- Use a GitHub Action to check whether email sending paths have a guard
- Use the same policy file in Node, Python, PHP, and Go