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.
git clone --depth 1 https://github.com/PsychQuant/che-apple-mail-mcpWrote 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-registry)<a href="https://agentmods.dev/commands/psychquant/che-apple-mail-mcp/archive-mail-registry"><img src="https://agentmods.dev/badge/commands/psychquant/che-apple-mail-mcp/archive-mail-registry/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-registry"><img src="https://agentmods.dev/badge/commands/psychquant/che-apple-mail-mcp/archive-mail-registry.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.00038 | $0.01486 |
| Opus 5.5 | $0.00015 | $0.00594 |
| Sonnet 5.5 | $0.00008 | $0.00297 |
| Haiku 4.5 | $0.00004 | $0.00149 |
Grade A, and why
archive-mail-registry 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 1mo 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 — 84 lines — stays where its author put it; the contents beside it link to each section on GitHub.
歸檔目標登錄與分派
全域登錄檔為 ~/.claude/.mail/archives.json,與只存別名的 identity.yaml 分開。只有使用者明確要求新增/修改登錄時才寫檔;不掃描整台機器、不自動推導父子關係、不自動註冊本次工作區。home 檔案不受 workspace gitignore 管轄,也不代表自動跨機器同步。
只讀命令
先定位目前載入的 plugin 根目錄(以下 <plugin-root>),不要假設使用者 cwd 有 plugin/。執行固定 helper,路徑使用獨立 shell 引數/正確引用,不將 registry 內容當程式碼。
python3 "<plugin-root>/scripts/archive_registry.py" list
python3 "<plugin-root>/scripts/archive_registry.py" validate
python3 "<plugin-root>/scripts/archive_registry.py" snapshot --target "target-id"
python3 "<plugin-root>/scripts/archive_registry.py" plan --target "target-id" --candidates "/absolute/candidates.json"
list顯示全部目標的用途、filter 軸、parent/root、路徑與失效項目。validate檢查完整登錄;失效時為非零 exit 與 JSON error,不當成空登錄。snapshot讀指定目標整個組織樹的 indexes,包含已離開目錄的歷史 ID。historical_index_only是去重證據,不能宣稱知道內容現在在哪裡。任何 scope index 失效即停止;不相關樹的問題仍可由 list 看見。plan是只讀預覽,不代表已執行或已取得分派授權。同祖先鏈取最深匹配、跨支線匹配留最低共同祖先 intake、未匹配留 root intake;所有新信都先 capture 到 root,保留子層獨有候選。
候選 JSON 格式:
[{"message_id":"<[email protected]>","matched_target_ids":["project-a"]}]
matched_target_ids 來自已確認的分類判準;filter_axis 只是說明,不是可執行搜尋語法,也不等同信件歸屬。沒有可靠分類時用空陣列,不猜一個下層。
登錄格式
{
"version": 1,
"targets": [
{
"id": "intake",
"parent_id": null,
"workspace": "/absolute/capture-workspace",
"config_file": "/absolute/capture-workspace/.claude/.mail/config.yaml",
"output_dir": "/absolute/capture-workspace/communication/intake",
"index_file": "/absolute/capture-workspace/.claude/.mail/state/archives/intake/email_index.json",
"purpose": "待分類的信件",
"filter_axis": "本人的機構帳號"
},
{
"id": "project-a",
"parent_id": "intake",
"workspace": "/absolute/project-a",
"config_file": "/absolute/project-a/.claude/.mail/config.yaml",
"output_dir": "/absolute/project-a/communication/emails",
"index_file": "/absolute/project-a/.claude/.mail/state/archives/emails/email_index.json",
"purpose": "專案 A 往來",
"filter_axis": "專案協作者",
"attachment_roots": ["/absolute/shared-research-data"]
}
]
}
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.
- 1mo ago First seen · 84 lines · 38 tokens per session scan A c0e69fbee517
archive-mail-registry is a command published in the GitHub repository PsychQuant/che-apple-mail-mcp (11 stars, last pushed 7d ago), licensed MIT. It adds 38 tokens to every session and 1,486 once invoked, about $0.0002 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-10-30.
archive-mail-registry compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| archive-mail-registryPsychQuant/che-apple-mail-mcp | Command | 11 | 7d ago | MIT | A | 38 | Claude Code |
| mailomarshahine/apple-pim | Command | 68 | 4d ago | MIT | A | 27 | Claude Code |
| remindersomarshahine/apple-pim | Command | 68 | 4d ago | MIT | A | 21 | Claude Code |
| contactsomarshahine/apple-pim | Command | 68 | 4d ago | MIT | A | 17 | Claude Code |
| remindPsychQuant/che-ical-mcp | Command | 45 | yesterday | MIT | A | 9 | Claude Code |
| weekPsychQuant/che-ical-mcp | Command | 45 | yesterday | MIT | A | 7 | Claude Code |
| todayPsychQuant/che-ical-mcp | Command | 45 | yesterday | MIT | A | 9 | Claude Code |