Condensed from the user guide, which has every prompt and the full digest format.
Requires
- Skill:
email-triage-pro(local, free). It runs on your Mac; the only calls that leave it are the judging calls to a model under your own API key.
Before you start
The skill sets both of these up on the first run; you never paste a password or key into the chat.- Mail access. Either the Gmail connector you may already have (no setup, slower), or a Gmail app password over IMAP (recommended; faster, and better sorting because it sees the real headers).
- A Gemini API key of your own, used to judge each thread with today’s date and the thread’s age.
GMAIL_ADDRESS=, GMAIL_APP_PASSWORD= and GEMINI_API_KEY= into the workspace .env with instructions as comments, opens the file for you, and continues once the login works and the key answers a test call.
How it runs
1
First run
Say “triage my inbox, including the backlog”. It learns who matters from 90 days of your Sent folder and calendar (VIPs, your team’s domain, companies you meet, newsletters, automation), sweeps the entire inbox newest first, and registers itself for two runs each business day.
2
The digest
Four standing groups, every line labelled with its fate:
Threads you already answered and calendar mail about past events are never “needs you”; upcoming meetings always stay.
3
Reply by label
“Bring back A3” restores a thread and files a dated rule so the sender is never buried again; “undo today” restores everything the last run archived. “Draft D2” writes a threaded draft in your voice that waits for “send the draft”. “Done W1” stops carrying an item; “why D3?” shows the rule or reasoning.
4
Twice a day
Later runs cover the last 36 hours at 08:30 and 16:30 on business days (change it by saying so) and land wherever you last spoke to the agent. Unhandled items are carried under “Still with you” until you say done.
5
The cockpit
A second pass turns mail into facts with evidence: money (receipts and invoices including PDFs, subscriptions, failed payments, price changes), deadlines and expiries, security events, and legal, hiring, customer and travel threads. Ask “what am I paying for?” or “who’s waiting on me?”. Every total is computed in code, and any amount not printed verbatim in the email or PDF is rejected. The cockpit proposes; it writes nothing to your calendar or contacts without your yes.
What it learns
Every decision is a ledger row. Each run reads what you did with earlier digests (restored, answered, trashed, ignored); consistent signals update the sender table, anything less certain becomes one yes/no question. Corrections such as “always put mail from Northwind in D” apply at once and are filed as dated rules in your words.Where your data lives
Everything the skill produces is a file in your workspace: the sender table, rules, decision ledger, money and facts ledgers, report pages and attachment cache. Mail is read over IMAP from your Mac; nothing is uploaded to AG2 Space. The digest your agent posts into a room is stored like any chat message; the mail behind it is not. Deleting the app and the workspace folder leaves nothing elsewhere.Guardrails
- Nothing is deleted. Archiving is a label change, verified on the server per message, restorable by label or all at once.
- Nothing is sent without you. Drafts are create-only; forwards go only to addresses you allowed.
- Threads are addressed by Message-ID, never by subject search, and senders are classified by domain before subject, because subjects are attacker-controlled.
- One-time codes and secrets are left alone; the skill never uses them.