What it does
The assistant lives in a private Telegram chat. It reads the executive's mail and calendars through Microsoft Graph, tells him what matters each morning, catches every meeting request buried in the inbox, and books what he approves. It has no tool that can send or delete an email.
Reading the mail
- Four mailboxes and their calendars through Microsoft Graph, with read access to mail and controlled write access to calendars.
- A background classifier. A worker thread classifies new email as it arrives, sized for 80 to 150 emails in a peak hour and tested against real-volume data of 620 messages.
- Rate-limit handling. When Microsoft returns a 429, the assistant backs off and retries.
The morning digest
- Two passes. A deterministic first pass sorts and groups the day's mail; a second pass summarizes what needs attention, using a classification cache so nothing is classified twice.
- Never empty-handed. If the AI step fails, the digest falls back to plain statistics so the executive still gets a briefing.
The meeting hunter
- Cheap filter first. A pre-filter discards obvious noise and looks for time words before any AI is involved.
- Claude classifies and extracts. For likely meeting requests, Claude pulls out the title, time, attendees and location.
- Proposals in the chat. Each meeting arrives in Telegram as a proposal with yes, no and edit buttons.
- Native invitations. When the request is a calendar invite, a yes accepts it through Graph's own response, so the organizer sees a normal acceptance.
- Expiry and de-duplication. Proposals expire when their time passes, and a record of proposed meetings stops the same request appearing twice.
- Nothing written without a yes. Calendar changes happen only after an explicit yes from the executive.
Asking questions from the phone
The executive can type a question and the assistant routes it to the right tool: search email, read an email, list the calendar, read an event, list emails since a time, propose, edit or cancel an event, and note a sender for future triage. Slash commands /start, /help, /ping and /status cover the basics. The chat is allow-listed to his account only.
Running all day
- launchd service with a watchdog, failure alerts sent to Telegram, and throttling so the machine stays awake without fighting the operating system.
- Safe state. State is held in immutable frozen data classes and written atomically; one Python process is the only writer.
$0 in API spend
The assistant drives Claude Code's headless mode as a subprocess, running on an existing subscription. One command-line flag, --bare, would force API-key authentication and start metered billing. A test named test_bare_flag_never_in_argv fails the build if that flag ever appears in the command the assistant runs.
What it achieved
- More than 500 emails a day triaged for a busy executive across four mailboxes.
- Meetings booked from a phone with a single tap, including native acceptance of calendar invites.
- $0 in API spend, protected by a test that fails the build before a billing flag can ship.
- 357 test cases in 9,777 lines of tests, split into unit tests, integration tests that replay recorded Graph traffic, and end-to-end tests, across 95 commits.
The problem it solves
An executive with four mailboxes and hundreds of messages a day misses things: a meeting request in the third paragraph of a thread, an invite that never got accepted, a client who wrote twice. Hiring a human assistant is costly, and off-the-shelf AI email tools either want full send access or bill per message. This assistant reads everything, surfaces only what matters, books meetings only with the executive's approval, can never send or delete mail, and costs nothing beyond a subscription he already pays for.
How he built it
Maxwell set the limits first: no send or delete tools, no calendar write without a yes, one writer for state, and no route to a metered bill. He directed AI agents to build it test-first in Python, splitting the suite into unit, integration and end-to-end layers, with integration tests that replay recorded Microsoft Graph responses so they run the same way every time. Every billing-related lesson became a test, the --bare guard among them, so the rule is checked on every build instead of remembered.