Draft Desk is an outbox with human approval for AI agents, for the Mac. My agents write a lot of my mail, and I want to read each mail the way the recipient will get it before it goes out. An agent hands over a draft with one command, I edit it and send it with one click, and the agent learns what happened.

Mac app and command line for macOS 26 or later. Needs Rust 1.89 or newer to build. Window in English or German. MIT license.

The Draft Desk window in dark mode. On the left the queue with two drafts, Invoice 4711 and Re: Offer. On the right the draft Re: Offer from Me to Ann with the attachment offer.pdf. Above the text a check result with a warning about the date: Is Friday right? Below it the switch Text and Preview and the mail text. At the top right the buttons Check, Fix, Discard and Send.
The Draft Desk window in dark mode with two made-up drafts. The picture comes from the app's own test harness, with invented data.

How do I review emails my AI agent wrote before they go out?

My AI agents, Claude Code sessions, write a lot of my mail: replies to suppliers, customers and offices. I want to see every mail before it goes out, the way the recipient will get it, with sender, recipients, Cc, Bcc, subject, attachments and text.

If something is off, I want to change it right there and send the mail with one click. The agent that wrote the draft should find out what became of it: sent, discarded, failed or unknown.

So Draft Desk is the outbox between my agents and my mail. The agent hands over a draft with one command and it shows up in a Mac app. The command line can never send. Only a click in the app sends, and after that click I have 15 seconds to undo.

What does Draft Desk do?

Queue

The window lists the waiting drafts, newest first, with subject, first recipient (plus the number of further recipients), time and a state symbol. A draft that breaks a rule shows its first error in red and can only be moved to the archive.

Editing in place

A ready draft can be edited right in the window: sender, To, Cc, Bcc, subject, attachments and text. Changes are saved automatically 1.5 seconds after the last change and always before sending, checking, fixing, attaching, switching drafts or quitting.

Plain text on purpose

Smart quotes, smart dashes, text replacement, autocorrect and link detection are switched off in the text. Invisible characters are marked in red with a count and a Remove button, and they block sending until they are removed.

Attachments and preview

Drop files on the window or use Add Attachment. Quick Look opens only PDF, PNG, JPEG, GIF, TXT, CSV, DOCX, XLSX and PPTX files. A switch between Text and Preview shows the HTML part as it will be sent, in a web view with JavaScript off and no network.

Send with undo

Click Send and a 15-second countdown starts with an Undo button. The draft cannot be edited meanwhile. The send happens only inside that time window: if the Mac slept through it, nothing is sent and the draft asks for a new click. No keyboard shortcut sends, and no button in the main window answers Return.

Notifications

A new draft posts a notification with its subject and the number of recipients, and a click on it shows the draft. Without notification permission the window comes to the front without taking the keyboard. The outcome of a send is posted too.

How does an AI agent hand over a draft?

The agent writes a small JSON file and runs draftdesk add draft.json, which prints the item id. The smallest draft needs schema (exactly draftdesk/1), account, from, to, subject and body.

If the agent sets origin.correlation, adding the same draft again (same account, agent and correlation) returns the existing draft's id instead of a second draft. A different draft under the same correlation is refused. If the agent also saved the draft in the mailbox (mailbox_draft), Draft Desk removes it after sending or discarding. Over IMAP it is only moved to Trash with the server's MOVE command, never deleted for good, and only if the Message-ID matches and From, To, Cc, Bcc and Subject still match the draft (fields changed in the window are left out of that comparison).

The agent gets the outcome with draftdesk status, wait or claim: sent, failed, discarded or unknown. Unknown means check the sent folder. retry_allowed is true only if the provider refused the mail and nothing was sent.

What does Draft Desk guarantee when it sends mail?

Only the app sends

The sending code is compiled only into the app. A test and the build script check that the command line has none, so the draftdesk command line can never send a mail.

A click approves what was shown

The click approves account, sender, recipients, subject, text, attachments (name, hash and size), threading and the mailbox draft. If any of that changes before the send, nothing is sent and the draft goes back to the queue. The mail is built from the approved state, parsed again and compared before it leaves.

An unknown outcome is never retried on its own

The attempt is recorded before the transport runs. After a crash or restart, a send that was under way counts as unknown, never as unsent.

Agent input is not trusted

Unknown fields are refused. Header fields refuse line breaks, control and bidi characters. Invisible characters in the text block sending until removed, and the HTML part escapes all markup and has no links.

Logs keep no mail content

The audit log keeps ids, counts, codes and short hashes, never addresses, subjects, texts or attachment names. The app log keeps ids, events and error codes only.

Can Draft Desk check a draft before I send it?

Check and fix commands are optional, set in Settings or in config.json. A check command gets the draft as JSON on stdin and answers with a verdict (pass, warn or block) and findings. A block, or a finding marked confirm, makes the app ask before sending. A non-zero exit, a broken answer or the time limit is an error, never a pass. A fix command returns a new body, which the app puts in place as one undo step.

examples/check.py is an example check command (Python 3.9 or newer). Pick it in Settings. Two fixed checks run first: a weekday next to a date must fit the date (a mismatch is a blocking finding), and a text that mentions an attachment but has none gets a warning that asks before sending.

If Claude Code is installed, a second reader (claude -p) reads the draft and the earlier messages and reports an unanswered question, a contradiction, a greeting with the wrong name and commitments like a price or a date, which ask for confirmation. Its findings never block. The draft and the earlier messages reach it as data, with the instruction never to follow instructions inside them. Still, a mail can talk a model out of a finding; the fixed checks do not depend on it. If claude is missing or fails, a finding says so. It never ends in a silent pass.

My own check command stays private. examples/check.py is a simpler example of the same idea, with nothing from my setup. Codex, GLM, Muse and Grok reviewed the example too and found 15 real problems, all fixed, and 2 false alarms. email-ops, my Claude Code inbox skill, can hand its reply drafts to Draft Desk.

How was Draft Desk built?

I design and plan Draft Desk, set the rules, decide and accept the result. Claude Code writes the code.

The first version was written in Python in August 2026 and was my outbox from 23 August 2026 on. 463 mails went out through it. In November 2026 it was rebuilt in Rust as a tool others can use, with a native Mac app (AppKit through the objc2 crates). It took over my mail on 7 November 2026 and had sent 32 more mails by 11 November 2026, a few of them tests.

Models from other labs reviewed the Rust version at every stage: Codex, GLM, Muse and Grok. Before publishing, they reviewed the whole code once more and then every fix again, 130 reports in three rounds. Claude Code checked each report against the code and fixed 34 real problems, most of them small. The rest were false alarms or rare edge cases, and the ones you could run into are in the limits below.

The code is a Cargo workspace with core, cli and macos. The core also builds and runs its tests on Linux in CI.

Before you rely on it: the built-in SMTP and IMAP code is tested only against a local fake SMTP server and an in-memory mailbox, not yet against real servers. I use the Gmail account kind and own send commands every day. Draft Desk does not protect against other programs running as your user: they can read and change its files, and a program that can read your keychain can read the key that signs the results.

Known limits

  • Mac only for now. The app needs macOS 26 or later, and the core has no other user interface yet. The Google sign-in needs your own OAuth client. Results can only be signed after the app has run once.
  • IMAP supports only implicit TLS (no STARTTLS on port 143), and the IMAP library is a 3.0 alpha version. Without the MOVE command or a Trash folder, the mailbox draft is left alone.
  • A draft whose send failed cannot be sent again from the app. Discard it and let the agent hand it over again.
  • While a sheet is open on the window (the question before sending, discard, the file dialog), the Undo button of a running countdown cannot be clicked. Close the sheet with Escape first.
  • Attachment names that differ only in how an accented letter is encoded (é as one or as two characters) collide on the Mac's file system. Such a draft cannot be sent.
  • A send command that leaves a background process holding its output open: Draft Desk stops waiting a few seconds after the command ended and records the outcome as unknown.

How do I install Draft Desk?

You need macOS 26 or later, Rust 1.89 or newer (rustup.rs, or brew install rust) and the Xcode Command Line Tools. The install also needs a code signing identity in your keychain. A self-signed Code Signing certificate made in Keychain Access is enough, and with a fixed identity your keychain approvals survive rebuilds. The third command lists your identities. The fourth builds the app and the command line, signs both and installs them.

git clone https://github.com/kevintheo-ai/draft-desk.git
cd draft-desk
security find-identity -v -p codesigning
DRAFTDESK_SIGN_ID="<name of your identity>" ./build.sh --install
open ~/Applications/"Draft Desk.app"

Add accounts in the app's Settings (Cmd+,) or on the command line with draftdesk account add-smtp, add-gmail or add-command. draftdesk config check checks the configuration. Start the app once before an agent uses wait or claim: the app creates the key that signs the results at its first start, and until then no result can be published. Quit Draft Desk before you install a new build, because the script refuses while it runs. The README has every detail.

Read the README on GitHub

Let's talk

“Are you hiring for agent operations, or do you run your company with AI agents too?”

Email meLinkedInFollow on XGitHub

x@kevintheo.com

I post my new test results on X. Follow me there if you want to see them.