Skip to Content

Step 6: Architecture Decision — Scheduling

When to Use Each Approach

Trigger TypeApproachExample
Time-based (daily, hourly)LaunchAgent (macOS) or cronNightly data collection
Event-based (new email, webhook)n8n or webhook listenerEmail arrives -> classify
User-initiatedSlash command/weekly-review
ContinuousAlways-running daemonMessage bridge, file watcher
LaunchAgent (schedule) └── Python script (collect data) └── Output to JSONL/markdown └── Claude agent (reason over data) └── Output: email draft, SMS, report

Why hybrid? Scripts are cheap and reliable for data collection. Agent reasoning is expensive but powerful for classification and generation. Combine both.

Decision Template

For your workflow analysis document:

Trigger TypeApproachExamples
Time-basedLaunchAgent / cronYour examples
Event-basedWebhook / n8nYour examples
User-initiatedSlash commandYour examples

Decision: LaunchAgents / Claude cron / Hybrid / Other

Rationale:

Last updated on