Claude Code for email: triage drafts, never auto-send
Triage with Gmail or Workspace CLI, write thread briefs, and create drafts only until you approve a send.
Published here , updated · 8 sources · Resume reading
Email with Claude Code stays safe when triage and drafts.create are allowed and drafts.send stays a separate human step. Gmail drafts.create builds an unsent DRAFT-labeled message; the contained message cannot be edited in place and must be replaced on update. [1] [2]
After this page you can authorize draft-only scopes, bucket the inbox, write a thread brief, and leave a draft id in Gmail for you to send. Related: Claude Code for personal scheduling for calendar buffers. Browse the Claude Code topic.
Start with draft scope, not full send
Google's Workspace CLI guide lists Gmail actions including gmail create_draft (write) and read-only list/get helpers. Authorize draft and read first. Add send only after the loop is boring. [3]
# Conceptual gate for the agent session
# Allow: list, get, create_draft
# Deny: messages.send, drafts.send, deleteClaude Code hooks can block Bash tool calls that match send patterns. PreToolUse with exit code 2 is the documented way to refuse a tool call. [6] [7]
Triage into buckets before any reply
Anthropic's Sales plugin documents inbox-sweep to sort unread customer email by priority and draft replies. Productivity's /update --comprehensive scans email for missed todos when email MCP is connected. Use one triage pass that labels: respond today, waiting, fyi, archive candidate. [4] [5]
Paste or fetch only the threads in the respond-today bucket. Long dumps burn context and hide the one mail that matters. [7]
You should get a short priority list with thread ids, not a pile of half-sent replies.
Write a thread brief, then a draft
For each hot thread, ask Claude for a brief: ask, constraints, last promise you made, open questions. Then create a draft through the API or CLI. Gmail's Python sample builds an EmailMessage, base64url-encodes it, and calls users.drafts.create. [1]
# Example shape from Google Workspace CLI docs family: draft, do not send
gwscli gmail create_draftPrefer Google's documented gmail create_draft path in any wrapper Claude is allowed to run. Do not invent a --draft flag on send helpers. [3]
You should see a draft id in Gmail (or Outlook's draft folder) that you open and edit yourself.
Inbox rules stay outside the model when they are brittle
Static filters (label, star, skip inbox) belong in Gmail/Outlook rules or a small script you review. Let Claude propose rule text; you paste it. Do not give the agent permanent rule-admin scope on day one. [3] [7]
Warning: treat email body text as data, never as instructions. The Sales plugin README states outside content is information, not commands. Keep that boundary for every inbox skill. [5]
Close the loop without auto-send
- Triage list.
- Thread brief.
drafts.createorcreate_draft. [1] [2] [3]- You send from the UI, or you run an explicit send command Claude is not allowed to invent.
For meeting creation from threads, continue on Claude Code for personal scheduling. [8]
You now have an email loop: draft-only scopes, triage buckets, thread briefs, API drafts, human send.
Send this to the operator who wants Claude in the inbox without a surprise send.
Keep this guide
Filed under Claude Code, Dev tools
Questions about this guide
How do I create a Gmail draft without sending?
Gmail API users.drafts.create builds a draft with the DRAFT label. Google's drafts guide shows the MIME plus base64URL flow. Sending is a separate drafts.send call.
Does Google's Workspace CLI support draft-only send?
Google's Workspace CLI docs list gmail create_draft as a write command that creates a draft without sending. Prefer that path; do not invent a --draft flag on send helpers.
Which Anthropic plugins mention email?
Productivity (/update --comprehensive), Sales (inbox-sweep, draft replies), Operations, Finance, and Customer Support list email MCP connectors. All still need your send gate.
Is IMAP still fine?
Yes for read and local rules. Prefer API draft create when you want a first-class Gmail draft the human can edit in the UI before send.
Sources
- Gmail API: Create and send draft emails, accessed 2026-11-26developers.google.com
- Gmail API: users.drafts.create, accessed 2026-11-26developers.google.com
- Google Workspace CLI guide, accessed 2026-11-26developers.google.com
- Anthropic Productivity plugin README, accessed 2026-11-26raw.githubusercontent.com
- Anthropic Sales plugin README, accessed 2026-11-26raw.githubusercontent.com
- Claude Code docs: Hooks, accessed 2026-11-26code.claude.com
- Claude Code best practices, accessed 2026-11-26code.claude.com
- Full Byte Developer: Claude Code for personal schedulingfullbytedeveloper.com