Repository navigation
Description
Summary
Let people schedule tasks in Maple Work: a prompt that runs on a schedule, such as every weekday at 8am, and leaves its result for you to read later. People are asking for it, and it's the main thing keeping some of them on other tools.
This issue is for agreeing on the shape of the feature before anyone writes a spec.
How agent apps usually do it
- Where it runs. On your computer, it uses your files and tools but only runs while the app is open and the computer is awake. In the cloud, it runs with the laptop closed, but the provider runs the session and holds the credentials it needs.
- When it runs. Presets (hourly, daily, weekdays, weekly) or a cron expression. Cloud versions often add event triggers too, like a new PR or a webhook.
- What each run is. Usually a new session you can open and reply to.
- Where results go. A scheduled view lists each run, with notifications. Runs that found nothing are archived, so the list only shows what needs you.
- Missed runs. They're either skipped or run once when the computer wakes, never as a backlog.
Run history with clear "missed" and "failed" states matters as much as the scheduler, so a run that didn't happen is never silent.
How it could work in Maple
Maple's privacy model favors running on your own computer. A cloud scheduler would have to hold your credentials and run tools somewhere else, which is a much bigger change. A reasonable path:
- Local first. Schedules run in Maple Work's local host, which already runs without a window open. Each run is a new task in the sidebar, grouped under its schedule, with a desktop notification. One list manages schedules: Run now, Pause, Edit, Delete, last run and next run.
- On an always-on computer. Maple Work can already work on a paired remote computer. Letting a schedule live on a desktop or home server gives most of what a cloud scheduler offers, without sending anything to a new place.
- Cloud and event triggers only if the first two don't cover what people need.
Pieces that already exist: the local host (apps/maple-agent/docs/local-host.md), permission modes and the classifier (docs/permissions.md), desktop notifications, remote access (docs/remote-access.md) and background agents that report back when they finish (docs/external-agents.md).
Decisions to make
- Permissions: each schedule picks its own permission mode, Read only by default. A question the classifier won't clear pauses the run and notifies you. Is that the right default?
- Missed runs: skip them, or run once when Maple comes back?
- Keeping Maple running: should having a schedule keep the host running, as remote access does? Do we add a login item, which Maple doesn't have today?
- Locked store: the host can't run tasks while the store is locked. Should a run skip and notify you?
- Each run: always a new task, or an option to continue one task?
- Limits: cap turns, time and credits for each run, and show scheduled runs separately in Settings → Usage?
Related
- Agent Mode: add recurring recipe scheduling and automation #662 Agent Mode: add recurring recipe scheduling and automation. It was written for the Goose-based Agent Mode, which Maple Work replaced, so this issue supersedes it.
Activity