claude-code-personal-assistant: Agent for Claude Code

.claude/agents/email-preprocessor.md

email-preprocessor is an agent for Claude Code from c0dezli/claude-code-personal-assistant. It costs 188 tokens per session (809 once invoked), scanned A, original, MIT.

An agent that reviews the day's emails, archives routine messages according to set rules, and prepares a list for manual review and labelling.

In plain words
What is it for?
It helps process work and personal inboxes, archive marketing and notification emails, summarise results, and preserve important messages.
Why use it?
It reduces inbox clutter while keeping potentially important finance, legal, security, billing, and delivery messages for human review.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; mentions CLAUDE.md.

This is c0dezli/claude-code-personal-assistant's own configuration. It tells Claude Code how to work on claude-code-personal-assistant itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything claude-code-personal-assistant configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/c0dezli/claude-code-personal-assistant/main/.claude/agents/email-preprocessor.md
Clone the repo
git clone --depth 1 https://github.com/c0dezli/claude-code-personal-assistant

Made for: Claude Code.

Wrote 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.

agentmods badge for email-preprocessor

README.md
[![agentmods](https://agentmods.dev/badge/agents/c0dezli/claude-code-personal-assistant/email-preprocessor/github.svg)](https://agentmods.dev/agents/c0dezli/claude-code-personal-assistant/email-preprocessor)
Your own site
<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.

agentmods 80×15 button for email-preprocessor

Your own site · 80×15
<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>
Per session 188 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 809 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.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

Measured 2mo ago against content hash 3b450bf1041c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

.claude/agents/email-preprocessor.md · 80 lines

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

  1. 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)
  2. 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
  3. 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)
  4. 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]
    

Read the full file on GitHub · 80 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. 2mo ago First seen · 80 lines · 0 tokens per session scan A 3b450bf1041c

Subscribe to this mod's changes

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.

Related

email-preprocessor compared with agents from other repositories

email-preprocessor next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
email-preprocessorc0dezli/claude-code-personal-assistantAgent1361y agoMITA188Claude Code
growthalebgl77/claude-incAgent2215d agoMITA73Claude Code
posterseaosinc/mcp-llm-offloadAgent11mo agoMITA183Claude Code
cee-triage-agentsanchitnis/SrujanaSangamaAgent22mo agononeA61Claude Code
consistency-reliability-builderChrisRoyse/610ClaudeSubagentsAgent1221y agononeA20Claude Code
base-template-generatorakhilyad/deployyAgent05mo agoMITA249Claude Code
playwright-test-generatormicrosoft/playwrightAgent99kyesterdayApache-2.0A151Claude Code