Repository navigation
Releases
0.10.0
Added
- Send mode. Hired agents can move to Send once they pass the Draft to Send gate. In Send, an agent's reply goes out only when it is addressed to the sender alone, with no Cc or Bcc, and within the daily limit and two a day to one sender; otherwise it stays a draft with the reason on its run. While the agent's Hold for approval is on (by default its first 7 days in Send), each reply waits in Console > Approvals. Approving checks again that Send is open, the agent is still in Send, and it is within its limits, then sends and marks the run sent. No new migration.
No new D1 migration.
0.9.9
Added
- The agent workbench (WON-529). Trust runs across the top; Setup sits beside Recent work and Test on past mail, and they stack with Setup first on a narrow screen. Each Send check jumps to the record behind it. Recent work shows each message's subject and what came of it (Waiting, Sent, Edited, sent, Discarded, Skipped). Test results show Then, what happened to the same message when it arrived, and Differs where the test disagrees. Both filter by result, and a waiting draft opens Draft review.
GET /api/v1/agents/:id/work. - MCP
get_approval: an app passes theapprovalIdfrom a held call and gets its state (waiting,approved,failed,dropped) and result. Only the app's own items are found. No new migration.
Changed
- A setup change needs a new Test before Send. Each run keeps a fingerprint of the setup it ran on (job, addresses, rules, instructions, example reply, what it does); when it no longer matches, the Test check reads "Setup changed" and Setup shows Not tested. Runs from before this version don't count. New D1 migration:
0020_agent_test_setup.sql. - Shorter labels and records on the gates, and less text on the agent page.
D1 migration: 0020_agent_test_setup.sql. npm run deploy applies it.
0.9.8
Added
- Promotion evidence. Each move up a rung shows the record it is based on, one line per check. Draft to Send needs a Test run of 20 or more messages with no failures, at least 10 agent drafts sent with 8 of every 10 sent without edits, and no safety check failures in the last 7 days. Send stays locked until its release. An agent draft keeps a fingerprint of the reply it wrote, so a send can tell whether it was edited.
GET /api/v1/agents/:id/evidence. New D1 migration:0019_agent_evidence.sql.
Changed
- The gates now block a move up: Watch to Draft (and to On) needs 10 matched messages and none failed this week, with no "anyway". The API refuses a move whose gate isn't met (409), and a new agent can only start in Watch.
D1 migration: 0019_agent_evidence.sql. npm run deploy applies it.
0.9.7
Added
- Test on past mail. An agent's page has Test: it runs the agent on the latest 25 received messages for its addresses, or what a search finds, 50 at most, and lists for each whether it took the message and the reply it would have written. Nothing is sent and no draft is saved. The run shows its tokens and cost when it finishes. Each agent keeps its latest run.
GETandPOST /api/v1/agents/:id/test,POST /api/v1/agents/:id/test/nextand/stop. New D1 migration:0016_agent_tests.sql. - Approval queue. Each agent and each MCP client has a Hold for approval switch in Console > Approvals. While it is on, its sends and its bulk changes (one call that moves, trashes, labels or marks more than 25 messages) wait in Console > Approvals, each with Approve and Drop. An agent's switch is on by default for its first 7 days in Send; an MCP client's is off. A queued item waits 24 hours, then is dropped and logged. A queued send counts toward the daily limit when it is approved. A held MCP call returns
status: "queued"with anapprovalId(docs/mcp.md).GET /api/v1/approvals,POST /api/v1/approvals/:id/approve,POST /api/v1/approvals/:id/drop,PUT /api/v1/approvals/holds/:kind/:id. - MCP grants limited to chosen addresses. The consent page lists the deployment's addresses, none ticked, and Connect needs at least one. The server limits every tool to the grant's addresses:
list_mailboxes,search_all_mailandlabel_matchingsee only them, and a tool given another address answers "not found", including tools that take an email, thread or draft id.list_labelscounts only the grant's mail, andrename_labelanddelete_labelare refused for a label on mail at another address. docs/mcp.md, Addresses. - Console > MCP shows each connected app's addresses. Click them to narrow an app to fewer; its next tool call sees only those.
PUT /api/v1/mcp/apps/:id/addressestakes{ "addresses": [...] }, a non-empty subset of the app's current addresses.
Changed
- Apps connected before this version keep every address, including ones added later, until narrowed in Console > MCP.
- An MCP session belongs to one grant. A client with a session from before this version gets
404 Session not foundonce and starts a new session. - Mail to
name+tag@example.comgoes to thename@example.commailbox when only the base address is inEMAIL_ADDRESSES. The To header keeps the tag. An address configured with a plus still gets its own mailbox. Email Routing must also send the tagged address to the Worker: turn on subaddressing for the zone.
D1 migrations: 0016_agent_tests.sql, 0017_approval_queue.sql and 0018_mcp_grant_addresses.sql. npm run deploy applies them.
0.9.6
Added
- Action agents. An agent's Does field is Reply, Star, Label (one label, picked at setup), Archive or Mark read. Reply is the 0.9 behaviour. An action agent's ladder is Watch, then On: Watch logs "Would star", On does it.
- An action agent whose rules pass acts with no model call. New agent offers a From rule from the job ("from example.org"). An action agent with no rules gets one tool in the drafting run (
star_email,label_email,archive_emailormark_read) and no reply tool, and the model says whether its job fits. - Every fitting action agent acts on a message, once. At most one reply agent replies, by list order, and an action never stops a reply.
- Each action is in Console > Activity with Undo for 30 days: unstar, remove the label, move back to the inbox, mark unread.
POST /api/v1/agent-actions/:id/undo,GET /api/v1/agents/:id/actions. - An action agent has a daily limit, 100 by default.
- An agent draft keeps the model that wrote it. The composer's draft line names the origin, the agent when there is one, and the model: "Auto-draft · Otis · GLM 5.3 Flash". A redraft records the model that wrote the new text. Chat drafts record the chat model. MCP drafts and drafts saved before this version say "model not recorded"; no model is guessed for them.
Changed
- Console > MCP checks
/healthas well as/mcp, and lists all three bypass paths (/mcp,/.well-known,/health) while Access blocks either. When only/healthis blocked, it says so: health checks andnpm run smokefail until it is added.
Fixed
- Every chat and drafting request has a size limit, checked on each step of a run: about 40K tokens for chat and 20K for drafting, the system prompt and tool definitions included. Before, one long request or the tool output of a long run went to the model whole. Earlier requests go first, then older tool output in the current request becomes a stub (the latest two results stay), then a result still too long is cut to its start, then a very long message keeps its start and end. Each cut says so in the text the model reads.
workers/agent/request-budget.tshas the numbers. - Drafting quotes the new email up to 12,000 characters and the earlier messages up to 6,000, newest first.
get_emailreturns up to 16,000 characters of a body andget_threadthe newest messages up to 24,000 in all. Asking for the same email or thread twice in one run returns a note instead of the text again.
D1 migrations: 0013_action_agents.sql and 0014_draft_model.sql. npm run deploy applies them.
0.9.5
Added
GET /healthchecks D1 and R2 and answers{"ok":true,"d1":"ok","r2":"ok"}, or 503 naming the store that failed. The Worker answers it before the Access check. Add/healthto the Access bypass next to/mcpand/.well-known(docs/setup.md, step 5);npm run smokechecks it and fails until it's there.- Error alerts. Requests that throw, inbound mail the Worker can't store and failed cron steps are recorded. With
ALERT_TOset invars, the hourly cron mails that address the errors since the last alert, and a failed health check, from the first address inEMAIL_ADDRESSES. Unset sends nothing. Recorded errors are kept 30 days. npm run test:browseropens the mail view in Chromium at desktop width and at 375px against a dev server with local bindings and the sample inbox. CI runs it as thebrowserjob.
Changed
-
The app is PlaraMail.
APP_NAMEdefaults to PlaraMail, the lockups and the link preview card carry the new wordmark, and the MCP server reports its name asplaramail. The Fold mark and the app icons are unchanged. -
Build env vars are
PLARAMAIL_WRANGLER_CONFIG,PLARAMAIL_PUBLIC_DIR,PLARAMAIL_DEMOandPLARAMAIL_PERSIST. The earlier names are not read. -
The example
wrangler.jsoncnames the Worker, the D1 database and the R2 bucketplaramail, and the draft queuesplaramail-draftsandplaramail-drafts-dlq. -
public/brand/lockup-dark.pngandlockup-light.pngare 332 × 74. A deployment with its own lockups makes them that size (public/brand/README.md). -
docs/setup.md has a section on renaming a deployment: the Worker moves with its Durable Objects through a transfer migration; R2 and the queues are copied; the D1 database keeps its name.
-
Every source file carries the license header, and
tests/public-scrub.test.mjskeeps it so. Tests use example hosts for Cloudflare Access, and the search prompt names no real company. -
README screenshots are retaken on 0.9.5 in both themes. The Alex sample inbox keeps the Supabase compute notice (O-19) in the Inbox instead of Archive, and it is the open message in the hero shot.
Fixed
- Enter in search opens the first result only once the results for what you typed have arrived. Before, a quick Enter opened the first conversation of the list you were on, which at phone width covered the results.
Upgrading
- Add
/healthto the deployment's Access bypass application, ornpm run smokefails on it. - A deploy repo renames its build env vars before it builds 0.9.5. A build or
npm run deploythat sets only an earlier name stops and names the new one (scripts/check-env.mjs), instead of using this repo's example config and deploying a new Worker namedplaramail. - Keep your own Worker, D1, R2, KV and queue names in your config. Nothing has to be renamed. To rename anyway, follow Renaming a deployment in docs/setup.md.
- If your config sets
APP_NAMEto the previous default, set it toPlaraMail.
D1 migration: 0012_error_log.sql. npm run deploy applies it.
0.9.4
Added
- Unsubscribe in the reader, for mail with a
List-Unsubscribeheader. With RFC 8058 one-click, the Worker posts the request itself, only to a public https host. A list that offers only a link opens it in a new tab; one that offers only a mail address opens the composer filled in, for you to send.POST /api/v1/mailboxes/:mailboxId/emails/:id/unsubscribe. - Block sender in the reader. New mail from a blocked address goes to Trash, marked read, and no agent sees it. Mail already received stays where it is. Console > Addresses lists blocked senders with Remove.
POST .../emails/:id/block,GET /api/v1/blocked-senders,DELETE /api/v1/mailboxes/:mailboxId/blocked-senders/:address. star_conversationfor the chat agent and MCP clients. It stars or unstars a conversation the waysdoes, and is logged in Activity. MCP has 25 tools.- HTML mail gets a plain-text part when the sender wrote none, on every send path.
- A delivery report (
multipart/report) that reaches a mailbox joins the conversation of the Sent message it is about. Cloudflare Email Sending sets its own Return-Path, so most bounces go to Cloudflare, not the mailbox. - docs/setup.md has a DMARC section: policies, alignment, an example record.
npm run smoke:mailalso checks a text attachment byte for byte.
Fixed
- Text attachments no longer gain a newline each time they are received. The parser kept the line break that belongs to the MIME boundary. Attachments sent as 7bit or quoted-printable with CRLF line endings still arrive with LF.
- A chat run that reaches its 20-step limit ends with "Stopped after 20 steps. Ask me to continue." On Workers AI the last step could still call a tool and end with no answer.
- Chat replies no longer include the model's reasoning. Earlier reasoning is not sent back to the model,
<think>blocks are split out, and chat on GLM 5.3 Flash runs at low reasoning effort. - The chat agent no longer resends its whole history on every step. The last two requests go whole; older tool output over 300 characters becomes a short stub, and the oldest requests are dropped past about 30K tokens.
- Draft reply on the reader's reply bar waits for the agent connection, shows Drafting… at once, retries once, and says "The agent didn't start. Try again." if it can't. A reply opened for drafting is not saved while it has no text of its own.
- Move up and Move down on an agent keep focus on the agent's arrow and announce the new position.
- Turn into a search no longer explains a date filter the query doesn't have. The explanation is built from the query instead.
D1 migration: 0011_blocked_senders.sql. npm run deploy applies it.
v0.9.3
Added
- Undo send. Send holds the message for 5 seconds with Undo in the toast; Undo reopens it. The browser asks before a tab closes during the hold, and the message stays in Drafts if it does. The pop-out compose window sends at once.
- To, Cc and Bcc suggest people you wrote to and people who wrote to you as you type.
GET /api/v1/contacts?q=returns them. - Files can be pasted or dropped on the compose window.
- The tab title and icon show the number of unread conversations.
- Keep Trash and Spam: Forever (the default), 30, 60 or 90 days, in Console > Preferences. With a number set, the hourly cron deletes mail that has been in Trash or Spam that long, with its files in R2, 500 messages a run. The days count from when the message moved there; mail that arrived in Spam counts from its date. Prefs carry it as
trashDays. - Console > Addresses shows, for an address that has received nothing yet, how to route mail to the Worker with a catch-all rule in Email Routing and the command that enables sending. It goes once mail arrives.
- SECURITY.md (private reporting through GitHub, supported versions) and CONTRIBUTING.md, which takes over the README's Contributing section.
Fixed
- The 5 MiB message limit is enforced. The compose window refuses files that would take a message over it, counted with the files base64 encoded, and
sendMailrefuses a larger message before it spends any send budget. docs/mcp.md says how many files fit.
D1 migration: 0010_folder_changed_at.sql (when a message last changed folder, for the Trash and Spam retention). Mail already in Trash or Spam counts from the migration. npm run deploy applies it.
v0.9.2
Added
npm run smoke:mailsends real mail between two of your addresses and checks it arrives: subject, HTML formatting, Cc, the attachment byte for byte, a reply threading on both sides and a forward keeping the attachment. Then it moves everything to Trash. It is opt-in and reaches the API with an Access service token (docs/setup.md, step 9).
Upgrading
- D1 migration
0009_search_fold.sqlrebuilds the substring search tables (messages_trigram,attachment_trigram) from stored mail. It runs once, in one pass over every message. - Add
"global_fetch_strictly_public"tocompatibility_flagsin a deployment's own Wrangler config.wrangler.jsonchas it. It lets MCP clients sign in with a Client ID Metadata Document URL, andnpm run smokefails without it.
Fixed
- Forward carries the original's attachments. They show as files in the composer, where you can remove any of them, and the Worker copies the rest from R2 when it sends. The send and schedule APIs take
forward_attachments, a list of the original's attachment ids. - Quotes the Worker writes into drafts ("On …, … wrote:") show the time in your time zone instead of unlabelled UTC. The browser saves its time zone in prefs as
timeZone. Until one is saved, the quote says UTC. - Schedule send no longer lists Monday 8:00 AM twice on a Sunday.
- Sent rows show who the mail went to: "To" and the first recipient, with a count of the others, instead of your own address.
/api/v1/mailrows carryrecipient. - Search folds accents in substring matches too, so
sumefinds Résumé, and folds letters Unicode doesn't split into a letter and an accent (ø, æ, œ, ß, ł, đ, ð, þ, ı), sounicodefinds ünïcødé. Word search already matchedcafewith café. Mail stored before this version gets the letter folding in subjects, addresses, attachment names and attachment text, not in body words. label:matches a label's current name. After a rename, the old name no longer matches. Spaces in a name can be written as hyphens (label:tax-2026). The API'slabel=parameter still takes ids.- The Cancel button on a scheduled draft's row is named "Cancel scheduled send" for screen readers and browser agents.
- An agent reply no longer offers Open draft for a draft it sent later in the same turn.
/authorizewith a Client ID Metadata Document URL asclient_idreturned 500, because the OAuth library needs theglobal_fetch_strictly_publicflag for those documents. The flag is now set. Any error/authorizedoesn't recognise shows the "Can't connect this app" page and is logged.- The protected resource metadata (
/.well-known/oauth-protected-resource/mcp) lists both scopes,mailandmail.send, as the authorization server metadata does. A client that builds its request from it can now ask formail.send.mailstays the only required scope. docs/mcp.md says which document to read. npm run smokechecks that both OAuth documents list the same scopes and that client ID metadata documents are supported.- Your agents: each agent row has Move up and Move down buttons, so the order can be changed from the keyboard, a screen reader or a browser agent. They use the same
PUT /api/v1/agents/orderas dragging. - The Send rung and the "To move to Send" gates show 0.10, the release Send arrives in, instead of 0.9. The Console and the API read it from one constant,
SEND_VERSIONinshared/agent.ts. - A watched run's reason is plain text of the reply the agent would have sent, without HTML entities or the quoted original. Reasons stored before this version are unchanged.
- Console > Activity logs a
discard_draftentry with the reason when a run throws its draft away: no agent's job fits, Watch mode, an earlier draft from the same run, or newer mail in the thread. A run that ended skipped no longer leaves a successful draft as the last word. - Delete agent's confirm button reads "Yes, delete ", focus moves to Keep, and clicks in the first 400 ms are ignored, so a double-click no longer deletes the agent.
?console=preferences,settingsandprefsopen Preferences. Any other page name the console doesn't know opens Overview instead of closing the console.- Writing a signature no longer turns on Add by default. A new signature starts off, as the guide says.
- Sends per address on Overview, and Mail storage, show whole addresses (
hello@example.com, nothello@example). A long one is cut with an ellipsis and shown in full on hover. - The agent chat gets 20 steps instead of 5, and the last one has no tools: a run that reaches the limit ends by saying it stopped after 19 steps, what it finished and what is left, instead of stopping mid-task. Auto-draft keeps its 5 steps.
- Redraft keeps the quoted original of a draft the composer has saved. The composer leaves an empty paragraph after the quote, and the quote was only found when it was the last thing in the body. The "On …, … wrote:" line the composer writes outside the quote stays with it.
- List rows, the signature and two console texts are 13px instead of 14px, and every icon is 10, 12, 14, 16 or 20px, the sizes DESIGN.md lists.
tests/design-rules.test.mjschecks both. - On macOS, the agent input's and send button's bottom-right corners follow the window's round corner (
--window-corner, 26px, less each one's inset). Other systems, phone widths, full screen and a page with vertical tabs, a side panel or docked DevTools beside it keep 6px.<html>carriesdata-os="mac"on a Mac.
D1 migration: 0009_search_fold.sql (folded substring search). npm run deploy applies it.
v0.9.1
The console gets a colophon, its own motion, the keyboard map and consistent key hints, and smoke checks MCP sign-in.
Added
- The console rail ends with a colophon: messages, storage, addresses and uptime, then the mark, the version and a link to the source.
/api/v1/configreturnsversionanddeployedAt, and/api/v1/storage/statusreturnsbytes. - The rail heads name the view beside the fold mark: All Inboxes in mail, Console in the console, in white beside a white search icon. The logo appears only in the colophon, as the lockup from
public/brand. - Opening the console and going back to mail each have their own move, in the side columns' motion: the console's rail slides out from the left and its page comes in from the right; back to mail, the rails settle in from their edges and the list comes in from the left.
- By address, Labels and an address's folders open and close in the rail with the side columns' motion: the group eases open, its rows settle in one after another, and the caret turns.
- AI models moves in the same language. Change model slides the picker in from the right and Back brings the summary in from the left, with focus back on Change model. The key row under Providers eases open and focuses its field. Test keeps its width while it runs and shows a steady dot; its result settles in with a check or a warning.
- The colophon logo comes up as the console opens: a faint recessed watermark, then its colour rises through it and settles into focus.
- Console > Keyboard shortcuts opens with the keyboard map from the ? dialog. Click a key on the map to change it; the list below follows.
- Figures (
shared/figures.ts): one way to show counts, sizes and lengths of time in six characters or fewer. Uptime steps from minutes to hours, days, weeks, months and years. Sizes step up a unit instead of rounding to 1000 (999.6 MB is 1.00 GB).
Upgrading
- Add
"version_metadata": { "binding": "CF_VERSION_METADATA" }to a deployment's Wrangler config for the colophon's uptime. Without it, uptime shows "—".
Fixed
- Show key hints off now hides every key hint: the keys in tooltips and the Esc on Back to mail, which also follows its binding now. The switch is also on Console > Keyboard shortcuts.
npm run smokechecks MCP sign-in:/mcpanswers 401 with an OAuth challenge, the OAuth metadata under/.well-knownloads, and/authorizestays behind Access. When Access still blocks/mcp, it says to add the bypass.- Activity log: "Keep for" is a dropdown, the Actions toolbar no longer sits on the line above it, and a filter keeps the rows (dimmed) until its own load instead of flashing "Loading". The picked filter in console toggles is marked in purple, like a picked choice.
- An agent shows Working only while a run moved in the last 10 minutes. A run that died no longer keeps the badge until the hourly cleanup, and the sample data gives one agent a live run instead of all of them.
- The Overview's Auto-drafts card names two states, failed first after drafted, instead of a cut-off list.
- Keyboard shortcuts loses the empty row above the list; it shows only to hold Reset all. Mail storage puts 32px between the total and the table.
- Addresses, Signatures and Labels lose their explaining lines.
- The sidebar footer buttons (Console, Keyboard shortcuts, Log out) are flat recessed wells set into the rail, deeper while held.
- New agent: the name is a one-line field instead of a tall box, and the Watch badge no longer stretches across its row.
- Setup and the README name both bypass paths,
/mcpand/.well-known, and setup shows how to add the bypass application with the Cloudflare API.
No D1 migration.