reminder-processor
Process tasks from Apple Reminders. Pulls ALL incomplete reminders, evaluates which are AI-completable, spawns subagents to complete them, and marks complete in Reminders. Use when a scheduled task triggers reminder processing or user requests it directly.
Front matter
name: reminder-processor
description: Process tasks from Apple Reminders. Pulls ALL incomplete reminders, evaluates which are AI-completable, spawns subagents to complete them, and marks complete in Reminders. Use when a scheduled task triggers reminder processing or user requests it directly.
disable-model-invocation: trueReminder Processor
Automatically evaluates and processes AI-completable tasks from Apple Reminders using subagent delegation.
Workflow
1. Pull ALL incomplete reminders (via osascript MCP tool)
2. Agent classifies each task using LLM reasoning (no scripts)
3. Spawn parallel subagents for AI-completable tasks
4. Save deliverables to workspace folder
5. Mark completed tasks in Reminders (one at a time via osascript)
6. Report results to userCritical Architecture Notes
- NO bash scripts for Reminders interaction. The agent runs in a Linux VM. Apple Reminders is only accessible via the
mcp__Control_your_Mac__osascriptMCP tool. - NO
remindctldependency. It doesn't exist in the VM. - NO JSON construction in AppleScript. Special characters in reminder titles break string concatenation. Use pipe-delimited plaintext.
- NO
sessions_spawn. Use theTasktool withsubagent_type: "general-purpose". - ALL incomplete reminders are evaluated. The agent decides what's AI-completable. The user does NOT need to pre-tag or queue anything.
Step-by-Step Execution
Step 1: Pull All Reminders via osascript
Use the osascript MCP tool with this AppleScript to get all incomplete reminders as pipe-delimited text:
tell application "Reminders"
set output to ""
set allLists to every list
repeat with aList in allLists
set listName to name of aList
set incompleteTasks to (every reminder of aList whose completed is false)
repeat with aTask in incompleteTasks
set taskName to name of aTask
try
set taskNotes to body of aTask
on error
set taskNotes to ""
end try
if taskNotes is missing value then set taskNotes to ""
set output to output & listName & " | " & taskName & " | " & taskNotes & linefeed
end repeat
end repeat
return output
end tellOutput format: Each line is listName | taskTitle | taskNotes
Parse each line to extract list, title, and notes. This format is robust against special characters in reminder content.
Step 2: Classify Each Task (Agent LLM Reasoning)
Do NOT use bash scripts or regex for classification. The agent should reason about each task using its own judgment, applying these heuristics as guidelines:
Skip (Human Required)
Tasks requiring physical presence, real-world action, financial transactions, or personal authentication:
- Physical: call someone, meet with, visit, pick up, drop off, attend, film, record video
- Financial: buy, pay, order, subscribe/unsubscribe, transfer money, renew subscription
- Account/Auth: create account, change password, login, 2FA, sign up
- Health: doctor, dentist, gym, workout, medication
- Personal: eat, sleep, laundry, haircut, cook, clean house
- Watching/Consuming: watch video, look at, listen to, check out
- Travel: drive, fly, book flight/hotel
- Pure notes/reminders: "Remember: ...", "Don't forget: ..."
AI-Completable (Process)
Tasks involving knowledge work, research, analysis, writing, or code:
| Type | Signal Words | Subagent Approach |
|---|---|---|
| research | investigate, find out, compare, explore | Web search, synthesize findings, cite sources |
| writing | draft, write, compose, blog post, article | Draft content matching context, ready for review |
| analysis | analyze, review, evaluate, assess, audit | Analyze data/situation, provide structured insights |
| summary | summarize, outline, recap, condense | Key points, takeaways, structured summary |
| planning | plan, strategy, roadmap, brainstorm | Create actionable plan/roadmap document |
| code | code, automate, build, debug, add command/feature | Write/modify code, include usage examples |
| content | script, video idea, hook, caption, content plan | Create content ideas, scripts, shot lists |
| data | spreadsheet, calculate, report, chart | Process data, create formatted reports |
| general | prepare, create, update, improve, document | Best-effort completion |
Hybrid Tasks - Extract the AI Component
Many tasks have BOTH a human component and an AI component. The agent should identify and execute the AI-completable part:
- "Set up Florida domicile + LLC" - research the requirements, costs, and steps (human does the actual filing)
- "Record Instagram reel about X" - content draft the script/talking points (human records the video)
- "Create a new bank account" - research best options and compare (human opens the account)
- "Plan an event for a livestream" - planning create the event structure, format, and prep (human goes live)
Skip (Too Vague)
If a reminder is too short/vague to determine intent (e.g., just a single ambiguous word), skip it and report it as "skipped - too vague to classify."
Step 3: Spawn Parallel Subagents
For ALL AI-completable tasks, spawn subagents in parallel using the Task tool:
Task(
description: "Short 3-5 word description",
subagent_type: "general-purpose",
prompt: "You are completing a reminder task for the user. The reminder says: '{title}'.
Context/notes: {notes}
Task type: {type}
{type-specific instructions from routing table above}
Save your deliverable to: {workspace_path}/{date}-{slug}.md
Include: Executive summary at top, main content, sources if applicable."
)Launch all subagents concurrently - they are independent tasks. Do not wait for one to finish before launching the next.
Step 4: Save Deliverables
Save all deliverables to the workspace folder so the user can access them:
{workspace_mount_path}/{YYYY-MM-DD}-{task-slug}.mdThe workspace path is the user's selected/mounted folder. Do NOT save to ephemeral VM paths - those are destroyed between sessions.
Step 5: Mark Tasks Complete in Reminders
CRITICAL: Mark tasks complete ONE AT A TIME. Do not batch-modify in a loop - AppleScript list mutation during iteration causes silent failures.
For each completed task, issue a separate osascript call:
tell application "Reminders"
set personalList to list "{listName}"
try
set matchingReminders to every reminder of personalList whose completed is false and name contains "{partial_task_title}"
if (count of matchingReminders) > 0 then
set completed of item 1 of matchingReminders to true
end if
end try
return "done"
end tellUse a distinctive substring of the task title for matching (enough to be unique, not the full title which may have special chars that break the AppleScript string).
Step 6: Report Results
Summarize to the user:
- Completed: List each task with link to deliverable file
- Skipped (human required): List with brief reason
- Skipped (too vague): List with note
- Failed: List any subagent failures with error info
Classification Edge Cases
The agent should use judgment for these common patterns:
| Pattern | Classification | Reasoning |
|---|---|---|
| "Create X for Y" | Depends on X | "Create a presentation" - AI. "Create an account" - human. |
| "Set up X" | Depends on X | "Set up a project plan" - AI. "Set up 2FA" - human. |
| "Make X" | Depends on X | "Make a video" - human (filming). "Make a spreadsheet" - AI. |
| Contains URL | Check context | YouTube URL - probably "watch" (human). API docs URL - probably research/code (AI). |
| "Ask [person] to..." | human | Requires interpersonal communication |
| Single word/phrase | skip | Too vague - "AI Queue", "Monday", etc. |
Error Handling
- If osascript MCP tool fails, report the error and continue with other tasks
- If a subagent fails, report it but don't block other tasks
- If marking complete fails, report it but count the deliverable as produced
- If no AI-completable tasks are found, report the classification results and exit cleanly
Source: written by One Giant Leap.
Related entries
There are more like this in the members library
The Claude Code library holds 13,843 entries. Members can search all of them by meaning and read every one in full.