Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/PsychQuant/che-apple-mail-mcpnpx agentmods add commands/psychquant/che-apple-mail-mcp/archive-mailWrote 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/commands/psychquant/che-apple-mail-mcp/archive-mail)<a href="https://agentmods.dev/commands/psychquant/che-apple-mail-mcp/archive-mail"><img src="https://agentmods.dev/badge/commands/psychquant/che-apple-mail-mcp/archive-mail/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/commands/psychquant/che-apple-mail-mcp/archive-mail"><img src="https://agentmods.dev/badge/commands/psychquant/che-apple-mail-mcp/archive-mail.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.00019 | $0.51124 |
| Opus 5.5 | $0.00008 | $0.20450 |
| Sonnet 5.5 | $0.00004 | $0.10225 |
| Haiku 4.5 | $0.00002 | $0.05112 |
Grade A, and why
archive-mail scanned grade A with 1 finding 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 yesterday.
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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
from urllib.parse import quote How it starts
The opening of the file, as written. The whole thing — 2,210 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Archive Mail
歸檔指定聯絡人的郵件到 Markdown 檔案。
使用方式
/archive-mail # 零參數(v2.12.0+;v2.16.0+ 讀 .claude/.mail/config.yaml,.md fallback)
/archive-mail [email protected]
/archive-mail [email protected] communication/emails
/archive-mail [email protected] --no-confirm # 略過確認(旗標可放在任何位置;見 Step 1)
/archive-mail --no-confirm # 只給旗標:仍走零參數模式,filters 來自 config
/archive-mail [email protected] -- --odd-dir # `--` 之後一律是位置參數(目錄名以 - 開頭時用)
- 第一個參數(v2.12.0+ 可選):Email 過濾條件(寄件人或收件人包含此字串)
- 第二個參數(可選):輸出目錄,預設
communication/emails --no-confirm(可選,#540):等同使用者說「直接做」,略過 Phase 1–3 的確認(Step 1.5 的 mail#334 例外與 Step 4.5 的略過範圍不變,Step 7 報告會揭露)。只認這一次叫用實際打的旗標- 其他以
--開頭的旗標(含智慧破折號打成的—no-confirm)會回不認得的旗標並停止,不會被當成輸出目錄;引號不成對也會停止
零參數模式
當 cwd 已有 .claude/.mail/config.yaml(v2.16.0+;舊 .md 仍 fallback,首次 invoke auto-migrate 為 .yaml)並設定 filters 時,可不帶任何參數呼叫;從 config 讀取:
| Field | 用途 |
|---|---|
filters |
多個 filter,作 OR-search 合併 corpus |
output_dir |
覆寫 default communication/emails |
last_archived |
給 search_emails 設 date_from(只抓此時點之後的信) |
exclude_mailboxes |
search 跳過(垃圾郵件 / 草稿等) |
sender_includes |
Layer 2 post-fetch: keep thread 若任一 message sender 含 substring(v2.20.0+, #84) |
sender_excludes |
Layer 2 post-fetch: drop thread 若任一 message sender 含 substring(v2.20.0+, #84) |
recipient_includes |
Layer 2 post-fetch: keep thread 若任一 message recipient 含 substring(v2.20.0+, #84) |
recipient_excludes |
Layer 2 post-fetch: drop thread 若任一 message recipient 含 substring(v2.20.0+, #84) |
subject_includes |
Layer 2 post-fetch: keep thread 若任一 message bare subject 含 substring(v2.20.0+, #76) |
subject_excludes |
Layer 2 post-fetch: drop thread 若任一 message bare subject 含 substring(v2.20.0+, #76) |
distributed_archives |
YAML 清單:分派去向的 archive 目錄(不限 symlink、不限在 output_dir 底下)。Step 2.1 把這些目錄的 message_id 併入 capture 層 dedup set,支援 capture-then-distribute 工作流(v2.38.0+, #285) |
兩層 corpus model:filters / subject_keywords / exclude_mailboxes 是 Layer 1 search-time(定義 corpus);6 個 *_includes / *_excludes 是 Layer 2 post-fetch refinement(thread-coherent narrowing,excludes-precedence on same axis,case-insensitive substring)。完整契約見 spec openspec/specs/archive-mail-corpus-refinement/spec.md。
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.
- yesterday Changed · +202 lines 524b44a71b1b
- 4d ago Changed · +46 lines fcb0f87ec30d
- 7d ago Changed · +224 lines 2cc9c94ea101
- 8d ago Changed · +230 lines b2d45e1b15a1
- 1mo ago First seen · 1,508 lines · 19 tokens per session scan A ae03c0519b65
archive-mail is a command published in the GitHub repository PsychQuant/che-apple-mail-mcp (10 stars, last pushed yesterday), licensed MIT. It adds 19 tokens to every session and 51,124 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other commands, from other repositories
devkit.write-a-minute-of-a-meeting
Generates professional meeting minutes from transcripts or notes. Use when you need to create structured meeting documentation after a meeting.
search
Search across all project artifacts by keyword, document type, or requirement ID.
archive
Archive older journal entries via journal-tools archive. Keeps last 20 in main, appends rest to JOURNALARCHIVE.md. Triggers - "archive journal", "prune journal", "compact journal".
start-11-3.en
Lesson 11-3: News Fetching → Email/Slack Distribution!
start-11-3
A lesson on building a workflow that fetches news from an RSS feed and distributes it by email or Slack. An RSS feed is a regularly updated list of items from a website.
control
Initialize a cross-session cmux control center. Discovers active workspaces, lets the user pick which to monitor, captures the day's focus, and starts a background watcher that surfaces decisions / idle / done events to the calling session.