Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
reminders
What it is
Part of the Email feature. Private email snoozes: durable inbox restoration, scheduled dispatch, and notification delivery, plus email follow-up reminders.
Start here
src/domain.rsmodule list:email_collection(snooze/restore) andemail_followup(follow-up reminders), each with its ownservice.rs.src/domain/service/dispatch.rs: the recurring dispatch loop shared by both.src/inbound/dispatch_worker.rs: the queue worker entry point (dispatchfeature).src/outbound/pg_reminders_repo.rs: Postgres repo, split by sub-area.
Scope
- Owns: email snooze scheduling/restoration, email follow-up reminders, and their dispatch/notification delivery.
- Not here: the Reminders view in the web app, or general task reminders →
apps/web.
Boundaries
- Depends on:
entity_access(ports),email(ports),notification/model_notifications(thenotifyfeature),macro_uuid/sqlx(postgres). - Used by:
memory.
Recipes
- Add a new reminder kind:
src/domain/models.rs(model) → newsrc/domain/<kind>/service.rs→src/outbound/pg_reminders_repo/<kind>.rs→ wire intosrc/domain/service/dispatch.rs. - Change dispatch behavior:
src/domain/service/dispatch.rs→src/inbound/dispatch_worker.rs→src/outbound/sqs_dispatch_queue.rs.
Checks
cargo test -p reminders --all-features(SQLX_OFFLINEunset). The Postgres tests sit behind thepostgresfeature; the Outlook follow-up tests there run the realemailservice over Postgres.
Related
- Skill:
cloud-storage-hexagonal-architecture· Rules:.agents/rules/rust/architecture.md