Jason Flatford Fractional CTO
Book 30 minutes (opens Google Calendar in a new tab)

Consumer App + Agent Platform

Procrastitask

A reminder fires once, usually at the worst possible moment, and you swipe it away, leaving the task undone with nothing to follow up. Procrastitask keeps going: a quiet nudge, then a firmer one, and for anything marked must-not-miss, a full-screen alarm that gets past Do Not Disturb. Because timing is managed on the server, closing the app changes nothing.

  • FastAPI + Postgres on AWS App Runner
  • Expo / React Native, iOS-first
  • Native iOS 26 AlarmKit module
  • Hosted MCP server, 15 tools

Overview

Procrastitask is a consumer iPhone app designed to help users address postponed obligations. It uniquely combines two features: escalating reminders until a task is completed, and the ability to assign tasks to a partner or roommate so the app, not a person, handles follow-ups. I developed the entire product, including the escalation engine, API, client, native alarm module, branding, store listing, and launch.

  • The server owns the clock: A per-minute sweep drives each timeline, so the phone is never the timer. Escalation continues even if the app is closed or the device is restarted.
  • Escalation is completion-gated: tasks do not expire silently. A task stops sending reminders only when it is completed, snoozed, or explicitly dropped. Completing a task cancels all pending alerts.
  • Sharing requires consent: an assigned task remains a request until the recipient accepts it, ensuring no one receives reminders for tasks they have not agreed to.
  • Agents get a real surface: A hosted MCP server with 15 tools lets users connect Claude Code to their own account and create, edit, and close tasks as themselves.

Problem

The reminder app market is split into two camps, and nobody has merged them: apps that provide persistent reminders cannot share at all, while apps that support sharing notify everyone, which holds nobody accountable.

Fires once, then gone

  • A calendar alert or single notification can be swiped away in a second.
  • No existing app keeps an open obligation loud until it is resolved.
  • Digests and recaps get dismissed reflexively

Sharing without ownership

  • Shared lists typically display the task creator, not the current owner.
  • These apps notify all participants, which often results in no individual accountability.
  • Google Tasks has no cross-account sharing primitive at all.

No signal on a miss

  • Persistence-focused apps like Due provide strong reminders but lack sharing capabilities.
  • Galarm offers a buddy system but functions primarily as an ad-supported alarm clock.
  • As a result, accountability often relies on a manual "did you do that thing?" text.

The unmet need is narrow and specific: owner-assigned tasks, escalating reminders directed solely at the owner, and feedback to the assigner on completion or missed tasks, all within something that behaves like a task manager rather than an alarm clock.

The escalation ladder

The escalation engine is adapted from Hestia, my assistant system, where the three-tier escalation model was tested with real tasks prior to productization. When a task becomes overdue, it enters the escalation ladder, advancing through tiers based on how long it remains incomplete, and continues at the highest tier until resolved.

StageWhat happens
Pre-dueDeadline-style tasks get sparse, gentle heads-up nudges inside a lead window, with a clean handoff so they never suppress the first real nag at due time
Stage 0A standard notification at due time, fired exactly once
Stage 1Time-Sensitive notifications on a repeating cadence, gated on the last nudge so nothing floods
Stage 2Rolls forward indefinitely. On tasks marked must-not-miss, this is a native iOS 26 AlarmKit alarm that pierces silent mode and Focus
Shared escalationThe assigner is pinged when an owned task slips, and again when it is finally done

Every stage is per-task adjustable, and the whole ladder is instrumented on nudges-per-completion so the defaults can be tuned from real behavior.

The parts that took the longest

  • Two modes. Every task is either escalate or notify_once. Informational reminders trigger once and then close. Applying persistence indiscriminately is the loudest complaint against apps in this category, and it is how an app gets uninstalled within a week.
  • Snooze is a real state. When a task is snoozed, the escalation ladder resets to stage 0 while retaining the original due date, allowing escalation to resume gradually.
  • Silencing has to equal closing. Since AlarmKit does not trigger its Stop intent on swipe-away, acknowledgements are handled through custom Done and Snooze buttons. A swipe is treated as "not done, keep going".
  • Escalation advances on absence. Since iOS does not provide guaranteed delivery receipts, the system never waits for a "delivered" signal and advances when a task remains incomplete.

Shared accountability

The sharing model is central to the app's purpose, and it is where most shared-list products get the invariants wrong. Consent is enforced at the data level, not in the user interface.

Spaces and invites

  • A space includes two or more individuals who share a set of obligations.
  • Single-use invites, no open join links
  • Members view each other's names rather than opaque account codes.

Consent as an invariant

  • An assigned task remains a request until the designated owner accepts it.
  • No reminders are sent to individuals who have not accepted a task.
  • Declining a task is treated as a valid outcome, not as a silent dismissal.

The assigner loop

  • The assigner receives notifications regarding both missed and completed tasks.
  • Notifications are aligned with the assigner's timezone and quiet hours.
  • Pings past quiet hours are deferred and retried, never dropped

Agent-native access

While many reminder apps offer an API, almost none are built for someone else's agent to drive. Procrastitask ships a hosted MCP server as a product surface of its own, so users can connect Claude Code to their own account and have it file and close obligations on their behalf.

claude mcp add --transport http procrastitask \
  https://api.procrastitask.app/mcp \
  --header "Authorization: Bearer pk_..."

A single command connects an agent, which then acts as the token's user, on that user's own tasks only.

  • The MCP server offers 15 tools, including create, read, update, complete, snooze, skip, drop, escalation policy, statistics, settings, and pause.
  • The MCP interface is mounted into the same app at /mcp over streamable HTTP, utilizing the same service layer as REST to maintain a single code path and consistent invariants.
  • Lossless round-trips: Agents that create tasks and read them back get the complete details they originally set.
  • Personal access tokens are hashed at rest, scoped to tasks:read, tasks:write, and settings:write, and can be revoked directly from the phone.
  • Own-tasks-only. A compromised token cannot access or send reminders to other members of a shared space.
  • Session tokens are rejected on the MCP interface. Agents never use the credentials associated with human user sign-in.

An agent can manage obligations on your behalf, but completion still requires human action. The escalation engine ensures reminders lead to follow-through.

Architecture

The backend uses Python 3.12 and FastAPI on AWS App Runner, with Neon Postgres and a branded API domain. The client is built with Expo and React Native, incorporating a Swift native module for AlarmKit.

Pure engine, testable

  • Escalation and recurrence are database-free modules
  • Unit-tested in isolation against clock inputs
  • Core logic does not require a live Postgres instance for validation.

The sweep

  • A per-minute worker acquires an advisory lock to prevent duplicate sends from multiple instances.
  • Batch loading has replaced the initial N+1 query pattern.
  • All-day tasks are scheduled for 09:00 local time instead of midnight.

Cancel everywhere

  • Completing a task stops the timeline on the server side.
  • An APNs collapse ID is used to retract pending alerts on the device.
  • Recurring tasks advance to the next occurrence with the escalation ladder reset.

Auth

  • Users can sign in with Apple or a passwordless email code.
  • Session tokens for users last 90 days; personal access tokens for agents last 365 days.
  • Both token types are hashed, with write permissions enforced centrally for all non-GET requests.

Schema discipline

  • Alembic migrations run at the container entrypoint before the application starts.
  • A test will fail the build if there is any model-to-migration drift.
  • Deployment adopted the pre-Alembic database by stamping a baseline.

Observability

  • Structured JSON logs include a request ID at every layer.
  • APNs errors classified rather than swallowed
  • Rate limiting has been strengthened on the public authentication interface.

A green health check is not proof the app is whole

Previously, the Docker image installed unpinned dependencies at build time, making its contents dependent on the build date rather than the commit. When a dependency moved an import in a major release, the MCP mount failed inside a caught ImportError, and agent access was down for six days while /health stayed green the whole time. The fix had three parts: lock every dependency so the image follows the commit, refuse to boot in the cloud if the mount fails, and smoke-test the actual /mcp surface on every deploy. Probe the feature, not the process.

Working when the app is closed

The home-screen widget and Live Activity stayed current only for people who opened the app most days. The widget snapshot was updated via foreground sync, with a background task as the only fallback, and iOS allocates background tasks based on app usage. The server could initiate a Live Activity but could not update or end it. These limitations are not acceptable for an app that promises to function reliably even when ignored.

  • Every push now carries the snapshot. A Notification Service Extension writes this data into the shared App Group without requiring app runtime or background processing budget.
  • Live Activity update and end pushes advance a card through its stages and dismiss it upon completion, using a unique token for each activity that is separate from the initiation token.
  • The widget builds a multi-entry timeline, allowing tasks to appear at their due time without requiring a push notification.
  • A silent push covers the rest: Updates that do not trigger alerts, such as tasks created on another device or by an agent via MCP.

Getting the alarm right

A real user received a full-screen breakthrough alarm at 1am for an ordinary task. An app that does that deserves to be deleted, so the issue got a three-auditor adversarial review rather than a patch.

The audit confirmed the server's correctness: the escalation ladder, notify-once mode, assigner loop with timezone scoping, and daylight-saving calculations were all functioning properly. The issue was traced to on-device alarm invalidation, which is a different bug than the one the symptom pointed at.

  • Breakthrough alarms are now opt-in per task through the must-not-miss setting. Standard escalating tasks are limited to quiet-hours-gated push notifications and do not trigger alarms.
  • Editing or downgrading a task removes any outdated on-device alarms, both from the server and through a client-side reconciliation process.
  • Quiet hours default to 23:00 through 09:00 and are on by default. Only the highest escalation stage can override them, and only for tasks the user has specifically opted in.
  • Global pause provides a time-limited mute for situations such as surgery, illness, or vacations. Paused time is treated as a separate outcome and does not count as a win or a miss.

Must-not-miss tasks keep ringing through a pause by default, because the reason someone pauses is usually medical and the thing they marked must-not-miss is usually medication.

Shipping it

I do not own a Mac. All iOS builds are executed in the cloud using EAS and installed on a physical iPhone, which precludes simulator debugging and makes each build expensive enough that batching them is a real constraint on how the work is sequenced.

Review, twice

  • Rejected under 3.1.2(c) for a missing Terms of Use link in store metadata
  • Rejected under 2.1(b) because the in-app purchases were created but never attached to the submission
  • Neither required a new binary, and both are invisible until Apple names them

Listing as code

  • Title, subtitle, description, and keywords pushed through the App Store Connect API from a checked-in config
  • Framed marketing screenshots rendered from a seeded demo account
  • TestFlight external beta with a public link, created the same way

Release control

  • Manual release, so approval parked the build instead of publishing it
  • Accounts created before the paywall transition are grandfathered based on user ID.
  • A single webhook manages entitlements, ensuring the server remains the sole source of truth for Pro status.

CI that fails honestly

During most of development, there was no pull-request CI and main branch changes auto-deployed to production. Now, each pull request runs linting, the full server test suite against a Postgres service container, and a mobile typecheck. If Postgres is unreachable, database-backed tests are skipped, so the workflow asserts connectivity and fails if any tests are skipped. A green run that quietly skips everything is worse than no CI at all.

Outcomes

15
MCP tools live in production, verified against the running server
426
Server tests, green on every pull request
60s
Sweep interval: the server owns the clock, not the phone
0
Macs used to build, sign, and ship an iOS app
3
Escalation stages, with the top one rolling forward until the task closes

Delivered capabilities

  • The server manages an escalation engine with per-task modes and override capabilities.
  • Introduced a native iOS 26 AlarmKit breakthrough alarm, available as an opt-in feature per task.
  • Shared spaces, single-use invites, consent-gated assignment
  • The assigner loop triggers on both missed and completed tasks, with timezone accuracy.
  • Supports natural-language quick entry for due dates and recurrence.
  • Enables recurring tasks with multi-weekday rules and customizable end conditions.
  • Provides a hosted MCP server and public OpenAPI through a unified service layer.
  • Personal access tokens are scoped, revocable, and managed within the app.
  • The widget and Live Activity remain up to date even when the app is closed.
  • A global pause feature preserves streaks and miss counts.
  • Implements its own APNs delivery plus an FCM transport for Android.
  • A design-token system supports both light and dark themes.

Building something agents can actually drive?

Procrastitask demonstrates how to treat an agent as a first-class client in a consumer product: a single service layer, consistent invariants, user-revocable scoped tokens, and a human-facing app that maintains quality regardless of the agent interface. If you are implementing an MCP surface on a real product, I would like to hear about it.

Return to top

Press Esc to close • ⌘K / Ctrl K to open