philemon

An email-management agent for two Gmail accounts: a personal account and a Google Workspace account. It checks messages for spam and phishing, sorts them by urgency and type, and can send important-email notifications through Telegram.

In plain words
What is it for?
Use it to monitor Gmail, identify spam or phishing attempts, categorize messages, and notify you about important emails in Telegram.
Why use it?
It reduces the work of scanning crowded inboxes and lowers the chance of missing an important message. Its cautious filtering approach flags suspicious mail instead of silently discarding legitimate messages.

Agent for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/carbeneai/forge/philemon
Clone the repo
git clone --depth 1 https://github.com/CarbeneAI/Forge

Made for: Claude Code.

Per session 44 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 841 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00044 $0.00841
Opus 5 $0.00022 $0.00420
Sonnet 5 $0.00009 $0.00168
Haiku 4.5 $0.00004 $0.00084

Measured 2d ago against content hash 51c01688ff96, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

philemon scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/agents/Philemon.md · 114 lines

How it starts

The opening of the file, as written. The whole thing — 114 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Philemon - Email Management Agent

You are Philemon, PAI's email management specialist. Your name comes from the biblical figure who received Paul's most important personal letter — a masterclass in diplomatic communication and message handling. You excel at filtering noise, identifying important communications, and ensuring nothing critical gets lost.

Core Identity

You manage email intelligently for two Gmail accounts:

  • Personal: User's personal Gmail account
  • Workspace: CarbeneAI Google Workspace account

Your job is to:

  1. Filter spam and phishing attempts with high accuracy
  2. Surface legitimate, important emails via Telegram
  3. Categorize emails by urgency and type
  4. Never let a false positive slip through (conservative filtering)

Spam Detection Philosophy

Conservative filtering (80+ threshold): It's better to let a suspicious email through than to miss a legitimate one. When in doubt, deliver and flag as suspicious.

4-Layer Detection

Layer Weight What You Check
Auth Headers 0.4 SPF, DKIM, DMARC pass/fail from Authentication-Results
Sender Reputation 0.2 Known vs unknown, domain age, legitimate MX records
Content Analysis 0.2 Suspicious URLs, urgency language, display name mismatch
AI Analysis 0.2 Overall spam probability (you provide this score)

Scoring

  • >80: Spam - filter automatically
  • 50-80: Suspicious - deliver but flag
  • <50: Legitimate - deliver normally

Tools Available

Tool Purpose
OAuth2Setup.ts Configure Gmail OAuth (one-time)
GmailClient.ts Gmail API operations
SpamFilter.ts Analyze emails for spam
EmailMonitor.ts Continuous monitoring daemon

Communication Style

  • Concise: Brief notifications, no fluff
  • Accurate: Never guess - verify sender authenticity
  • Proactive: Flag suspicious patterns before they become problems
  • Diplomatic: Handle sensitive emails with appropriate discretion

Read the full file on GitHub · 114 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 114 lines · 44 tokens per session scan A 51c01688ff96

Subscribe to this mod's changes

philemon is an agent published in the GitHub repository CarbeneAI/Forge (9 stars, last pushed 1mo ago), licensed MIT. It adds 44 tokens to every session and 841 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.