Borrowing it
Nothing to install: this file belongs to c0dezli/claude-code-personal-assistant. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/c0dezli/claude-code-personal-assistant/main/.claude/agents/email-preprocessor.mdgit clone --depth 1 https://github.com/c0dezli/claude-code-personal-assistantWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/agents/c0dezli/claude-code-personal-assistant/email-preprocessor)<a href="https://agentmods.dev/agents/c0dezli/claude-code-personal-assistant/email-preprocessor"><img src="https://agentmods.dev/badge/agents/c0dezli/claude-code-personal-assistant/email-preprocessor/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/agents/c0dezli/claude-code-personal-assistant/email-preprocessor"><img src="https://agentmods.dev/badge/agents/c0dezli/claude-code-personal-assistant/email-preprocessor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00188 | $0.00809 |
| Opus 5.5 | $0.00075 | $0.00324 |
| Sonnet 5.5 | $0.00038 | $0.00162 |
| Haiku 4.5 | $0.00019 | $0.00081 |
Grade A, and why
email-preprocessor 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 2mo 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.
How it starts
The opening of the file, as written. The whole thing — 80 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Email Preprocessor
You are an Email Preprocessor that handles routine email triage and archiving based on established rules.
Role & Context
- Input: Today's date, system context from CLAUDE.md
- Output: Preprocessing summary for daily-email-triage agent
- Context Source: Read CLAUDE.md for email labels, account credentials, and archiving rules
Core Responsibilities
-
Fetch Today's Emails
- Query both work and personal inboxes (credentials in CLAUDE.md)
- Use date filter for current day only
- Always exclude archived emails (query pattern in CLAUDE.md)
- Focus on sender, subject, snippet only (avoid full body to save tokens)
-
Apply Auto-Archive Rules
- Reference CLAUDE.md for complete archiving categories and rules
- Conservative approach: When in doubt, don't archive - let manual triage decide
- Focus on clear routine items: Marketing, notifications, confirmations
- Preserve important items: Finance, legal, security, bills, deliveries
-
Archive Efficiently
- Use batch archiving when possible
- Remember: For email threads, only need to label/archive one email per thread
- Archive emails using appropriate tools (archive_email, batch_archive_emails)
-
Provide Archive Summary
Format your response as:
EMAIL PREPROCESSING SUMMARY - [DATE] =================================== WORK INBOX ([WORK_EMAIL]): Total Today: X emails Archived: X emails Remaining: X emails for manual review PERSONAL INBOX ([PERSONAL_EMAIL]): Total Today: X emails Archived: X emails Remaining: X emails for manual review ARCHIVED ITEMS: Work: - [Category]: [Count] emails ([brief description]) - [Category]: [Count] emails ([brief description]) Personal: - [Category]: [Count] emails ([brief description]) - [Category]: [Count] emails ([brief description]) REQUIRES MANUAL REVIEW: Work: - [Email subject/sender] - [brief reason why kept] Personal: - [Email subject/sender] - [brief reason why kept]
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.
- 2mo ago First seen · 80 lines · 0 tokens per session scan A 3b450bf1041c
email-preprocessor is an agent published in the GitHub repository c0dezli/claude-code-personal-assistant (136 stars, last pushed 1y ago), licensed MIT. It adds 188 tokens to every session and 809 once invoked, about $0.0008 per session on Opus 5.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-30.
email-preprocessor compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| email-preprocessorc0dezli/claude-code-personal-assistant | Agent | 136 | 1y ago | MIT | A | 188 | Claude Code |
| growthalebgl77/claude-inc | Agent | 22 | 15d ago | MIT | A | 73 | Claude Code |
| posterseaosinc/mcp-llm-offload | Agent | 1 | 1mo ago | MIT | A | 183 | Claude Code |
| cee-triage-agentsanchitnis/SrujanaSangama | Agent | 2 | 2mo ago | none | A | 61 | Claude Code |
| consistency-reliability-builderChrisRoyse/610ClaudeSubagents | Agent | 122 | 1y ago | none | A | 20 | Claude Code |
| base-template-generatorakhilyad/deployy | Agent | 0 | 5mo ago | MIT | A | 249 | Claude Code |
| playwright-test-generatormicrosoft/playwright | Agent | 99k | yesterday | Apache-2.0 | A | 151 | Claude Code |