Open-source mail and CRM workflow for your Mac

The agent drafts. You press Send.

Your own Claude Code or Codex reads client mail, updates the Notion CRM and leaves reply drafts. Nothing goes out until you press Send.

Give the agent one instruction in your own words. It reads the project's mail, checks the project's knowledge, updates Notion and writes unsent replies. The admin shows each draft within a second, with its reason and checks, and you decide.

Architecture

Follow one reply through the Hub.

  1. You say it once. One instruction in the dock or hub agent <project>. It works on client mail and linked Telegram and WhatsApp chats.
  2. Your agent, fenced in. Claude Code or Codex on your own subscription follows the project's rules and skills, inside the OS sandbox, deny rules and a guard hook.
  3. Facts from your sources. Knowledge files, the Notion CRM, the project's Calendar and Drive. A missing price or date becomes an [Owner: ...] placeholder, never a guess.
  4. On your screen in a second. draft_write leaves an unsent Mail draft and records it in SQLite. A trigger counts the write and the admin re-reads that part.
  5. Your click, one door. You read the draft and its checks, then press Send. The send door checks the policy again before Mail sends it.
InAgentReadsHubOut Youone instructionSend, Edit, Skip Client mailApple Mailvia mail-mcp MessengersTelegram, WhatsApplinked chats only Rules + skillsproject.mdskills/, workflows AgentClaude Code or Codexyour subscription GuardOS sandbox, deny listhook, no send tool Knowledgeprojects/<slug>/prices, terms, facts Notion CRMclient recordsown connector Calendar, Driveper projectreads and holds Hub toolshub mcpdraft_write, focus Server + app.dbHono on 127.0.0.1SQLite, /api/live Admindrafts in ~1 sterminal dock Send policyset only by yousafety checks Send doorsingle-use ticketchecks again The clienta reply by mailor chat

Sending

The agent cannot send.

The agent prepares everything and sends nothing. Mail leaves through one door, and only after your click.

  1. 01
    No send tool

    Send tools are denied in every agent session, and a session cannot write the send policy.

  2. 02
    Your policy

    Who a project's drafts may go to, and any autosend for listed mail classes, is set only by you with hub send policy.

  3. 03
    The exact mail first

    A dry run shows the exact message, and you switch on "I read the checks" before Send.

  4. 04
    Single-use ticket

    A send needs a ticket that only the admin page can mint. Both local servers answer only on loopback.

  5. 05
    Checked again

    @hub/send re-checks the recipients, the policy, Stop sending and the safety rules. A batch goes out one draft at a time through the same door.

Shared focus

"This client" is the one on your screen.

The agent lives in a dock beside your drafts (Ctrl+`). The admin tells it what you are looking at, so "answer this" drafts for the open client. It can ring rows on your screen for 30 seconds. It never clicks for you.

Data

Every fact has one home.

Notion

Client records

The project's own databases, written through the agent session's own Notion connector.

Apple Mail

Draft text

Replies stay unsent in Drafts. The Hub knows them by its own record of each version, never by a line in the text.

SQLite

Review state

data/app.db: marks, batches, follow-up enrolments, linked chats, the LLM ledger.

Files

Project facts

projects/<slug>/: project.md, knowledge, filters, workflows and sequences, as plain files you can read.

state/secrets

Keys

Mode 600, never in git, never on a page, unreadable to the agent.

Core and instance

Public core. Private instance.

Core this repo, MIT

Code, docs and skills that work for any owner. It names no client, mailbox or project. Skills are instructions, not code, and each one starts with a plain phrase.

  • triage-mail
  • lead-pass
  • follow-up-sweep
  • bulk-drafts
  • kb-review
  • project-setup

Instance your private repo

Your projects, data, config, backups and secrets. The core sits inside it as a submodule pinned at a tag, and hub core update moves it.

  • HUB_HOME
  • projects/
  • data/app.db
  • state/secrets/
Start
$ git clone https://github.com/markolofsen/reforms-hub.git && cd reforms-hub
$ ./hub.sh new-instance <name>
$ cd ../hub-<name> && ./run.sh setup
$ ./run.sh up

Read the code. Then run it.

Open on GitHub →