GDG Tulsa × Women+ in Technology of Tulsa, with Techlahoma · Nov 19, 2026

Managing Email: a fake inbox an AI agent can drive

New: the demo now runs with nothing installed. Paste the first prompt on the demo page into an agent with its own browser. See README.md. The local server below is optional.

It pairs with the Brain Search demo (oogle.web.app): same throwback look, and you can click the logo to rename it.

Try it in 5 minutes

You need Bun and Google Antigravity (or Claude Code, or Codex). Nothing else is installed.

  1. Open this repository in Antigravity.
  2. Paste Prompt 0 from PROMPT.md. It adds the mail server to Antigravity's MCP config. Restart the MCP server list when it asks.
  3. Open <http://127.0.0.1:4810>; and keep the tab where you can see it. The top bar says Agent bridge connected.
  4. Paste Prompt A. Approve the mail tools if Antigravity asks. Watch the inbox.

No agent handy? Run bun demos/mail/mcp.ts --serve and open the same address. The page works by itself: read, search, label, archive, compose.

Keep the inbox tab open. Click Reset demo inbox and confirm before each run. After you paste Prompt A, Antigravity may ask you to allow mail/list_emails, mail/add_label, mail/archive, and mail/create_drafts: allow them.

What happens

StepWhat you see in the page
The agent reads the inbox"Agent: Read 22 emails in Inbox."
It labels what needs youOrange Needs me chips on 8 conversations
It flags the scamA red Phishing chip; the email stays put and gets no reply
It clears the rest10 newsletters, notices and pitches leave the inbox (they stay in All Mail)
It drafts repliesA red "Draft" appears on each conversation, one at a time
It writes the weekly summaryA draft to yourself, 150 words or fewer

What to look for

How it works

text
Antigravity / Claude Code / Codex
        │  MCP over stdio (JSON-RPC)
        ▼
   bun mcp.ts ── serves web/ on http://127.0.0.1:4810
        │  WebSocket
        ▼
   the open page ── runs each tool against its own localStorage, redraws, answers

Tools: list_emails, read_email, search_emails, create_draft, create_drafts, send_email, add_label, remove_label, archive, mark_read. send_email only moves a draft to Sent Mail inside the page.

Safe by default

Files

PathWhat it is
PROMPT.mdPrompt 0 (connect), Prompt A (the ladder), Prompt B (your real Gmail)
mcp.tsThe local MCP server and page bridge. Bun built-ins only, no packages
web/The static page: index.html, style.css, store.js (mailbox and tools), app.js (screen and bridge), seed.json (the inbox). Deploy this folder as is to any static host
instructions/Riley's saved reply rules, price list, and summary rules
check.ts, smoke.tsPass/fail checks for a run, and a tiny MCP test client
expected/Screenshots and drafts from a real run, to show if a live run fails

Plain text