Note V · Engineering
A Maestro-native reminder system
Maestro has no reminder feature, and you do not need one. Auto Run documents, maestro:// deep links, the session store, Cue and maestro-cli assemble into a to-do list that stays on screen, links back to its source conversation, and updates the moment you tick a box.
Maestro has no reminder feature. There is no to-do list, no task database, and no notification queue you can file an item into. We built one anyway, from parts that exist for other reasons, and it works better than a purpose-built feature would.
A reminder system is hard to get right. It has to be seen without being sought. It has to carry context without turning into prose. It has to accept a correction in one gesture, and it has to refuse most of what an eager agent wants to put in it. Each job maps to a Maestro primitive:
| Maestro primitive | Job in this system |
|---|---|
| Auto Run documents | Keep the list on screen, beside the conversation |
Deep links (maestro://) | Take the human back into the tab that produced an item |
| The session store and tabs | Read what the human already tracks, so the agent stops duplicating it |
| Maestro Cue | Sweep on a clock, and turn a ticked checkbox into an event |
| maestro-cli | Let a script talk to the running app |
| Slash commands | Give the human one gesture for a deliberate cleanup pass |
The examples are invented. The mechanisms, the code and the Maestro behaviour are real.
The problem: a list nobody read
Every guide to building a personal agent says to make it proactive. Our agent did that for five months and produced a wall of text. Entries ran to seventy words, with the request buried mid-paragraph. Half were the agent asking permission for work it was already allowed to do. Items sat past their dates, the reliable sign that nobody reads the list. The operator finally asked:
“Am I blind? I don’t see any tasks outstanding for me.”
The instruction that produced the list:
Proactively add reminders: During any session, if you identify a blocker, dependency, open action item, or something he needs to follow up on, add it. Don’t wait to be asked.
That sentence has no test in it. “Something he needs to follow up on” describes every interesting thing a person says in a day, so a half-finished brainstorm became an entry with a Tuesday deadline. The operator named the failure:
“I brainstorm all the time. I don’t want every thought I have to turn into a todo.”
The agent was treating an open question as an open task. In a transcript, both end unresolved. But a question resolves when the human learns something, and a task resolves when the human does something for someone.
The Auto Run panel as a permanent surface
This step had the largest effect and needed the least cleverness.
Auto Run is Maestro’s batch execution feature: agents work through the boxes of a Markdown checklist. The useful part here is not execution. Auto Run shows its selected document in the right-hand panel, which stays on screen beside the conversation. A document that is always visible gets read.
The panel reads from the agent’s Auto Run folder, .maestro/playbooks in the project root by default (maestro-cli auto-run-folder <path> --agent <agent-id> changes it). If the list must live elsewhere, link it in. Ours lives in an Obsidian vault, which hides dot-prefixed folders, so a symlink lets both tools see one file:
ln -s ../../Reminders.md .maestro/playbooks/Reminders.md
The canonical path never changes, and every tool writes only to that path. Three hazards:
Never run the list as an Auto Run. The file is full of - [ ] lines in the folder Auto Run reads. Start a run on it and a fleet of agents treats personal to-dos as instructions. Write that prohibition next to the file, because nothing in the syntax stops it.
The panel and the file tree each cache their own copy. A script rewrites the file correctly, the human still sees the boxes they just ticked, and concludes the automation is broken. So every write to a file the human may have open ends with both CLI calls, after the last write of the turn:
maestro-cli refresh-auto-run --agent <agent-id>
maestro-cli refresh-files --agent <agent-id>
They clear different caches; neither implies the other. We have also seen refresh-auto-run print success when the open document did not re-read, so read its output as “message delivered,” not “screen correct.”
The panel follows maestro:// links. Maestro’s Markdown link handler checks for the maestro:// scheme first and handles it inside the app. So a click in the panel jumps straight to the conversation that produced the item. File preview tabs behave the same way.
Deep links: answer in place
A one-line checkbox is easy to scan but loses context. The human reads “Set the disclosure boundary before the vendor call” and asks: based on what? Without a link, they ask the agent in a fresh tab with none of the original context. The maestro:// URL scheme makes it a click:
maestro://focus Bring the window forward
maestro://session/{sessionId} Go to an agent
maestro://session/{sessionId}/tab/{tabId} Go to a specific tab
maestro://group/{groupId} Expand a group and go to its first agent
Every item opens with a link back into the tab that produced it:
- [ ] [↩ Vendor Review](maestro://session/<agentId>/tab/<tabId>) **Set the
disclosure boundary before Thursday's call.** ⏳ 2026-08-27
The click opens that conversation with its full history, and the human answers in place.
Do not build the URL by hand. {{AGENT_DEEP_LINK}}, {{TAB_DEEP_LINK}} and {{GROUP_DEEP_LINK}} are template variables in system prompts, custom AI commands and Auto Run documents, so an agent can know its own address. The tab menu also has Copy Deep Link.
Four lessons from shipping links:
A code span swallows the click. Inline code in Maestro is click-to-copy, and its handler calls preventDefault() and stopPropagation(). So [`↩ Name`](maestro://...) copied the label on every click and never navigated. Use plain-text labels. When you build an affordance inside a renderer you do not control, test the exact affordance you ship.
Dead links look identical to live ones. A link to an agent that does not exist does nothing: no log, no toast, no error. On the day links shipped, a concurrent session wrote items that pointed at a tab id that never existed. So verification is a tool:
python3 tools/deeplink_check.py Reminders.md
python3 tools/deeplink_check.py Reminders.md --fix-labels --apply
It resolves every link against the running app through the CLI, prints ok or BROKEN, exits 1 if any link is broken, and exits 2 if Maestro is not running. Exit 2 matters more. A checker that says “all clear” when it checked nothing is worse than no checker.
Hidden is not closed. The checker’s first real run flagged many good links. maestro-cli tab show <tab-id> answers Tab not found for a snoozed tab, but a snoozed tab is only hidden until its wake time. Another of our tools already knew this; the checker did not, and nothing caught the disagreement. Now a link is BROKEN only when its tab is neither open nor snoozed. With the app running, maestro-cli snooze list --json lists every snoozed tab:
import json, subprocess
def snoozed_tabs() -> dict[str, str]:
"""Snoozed tab id -> label. Empty on any failure: never a verdict."""
try:
out = subprocess.run(
["maestro-cli", "snooze", "list", "--json"],
capture_output=True, text=True, timeout=10, check=True,
).stdout
return {s["tabId"]: s.get("label") or "" for s in json.loads(out)["snoozes"]}
except Exception:
return {}
A failed read returns an empty map, so it cannot manufacture a broken link.
Most links degrade, and that is fine. A link to a tab closed during the current app run reopens it from the agent’s closed-tab history (the last 25 tabs). Older than that, or after a restart, the link lands on the agent. A link to a snoozed tab also lands on the agent without waking the tab. So when the tab is gone, the line also carries a plain-text claude --resume <transcript-id>, which still works because a transcript is a file on disk. Design the degraded form first. It is the common case.
The session store: read what the human already tracks
This is the best idea in the system, and it came from the operator. It works because Maestro keeps its state in a file you can read.
The agent proposed aging out stale work. The operator overrode it:
“If my tab is open then I’m tracking it. I’m going to come back to it. If I happen to close it and there’s unfinished business, you won’t let it drop to the floor because you will migrate that task over into my reminders.”
The workspace was already a reminder system. Every open tab is working memory, held open on purpose. A reminder about work in an open tab tells the human something they can already see. So the trigger inverted: idle time promotes nothing, and closing a tab is the only trigger. It fires rarely, because most tabs stay open while the work is live. Rare is correct here, not broken.
Every in-flight thread carries a tab anchor as an HTML comment, invisible in rendered Markdown:
- **Migrating the deploy pipeline off the old runner.** State lives in the branch;
the rewrite of the release step is the part still open.
<!-- thread: tab=<TAB_UUID> since=YYYY-MM-DD -->
A wrong closure call dumps live work onto the list, so three guards must all pass:
STORE = os.path.expanduser(
"~/Library/Application Support/maestro/maestro-sessions.json") # macOS
FLEET_LOSS_PCT = 0.25 # mass disappearance means the app, not the human
FLEET_FAIL_ACCEPT = 3 # ...but do not jam forever on a real mass close
- Debounce. A tab must be absent on N consecutive runs (default 2). One miss during a write or a restart proves nothing.
- Fleet sanity. If more than 25% of known tabs vanish at once, the app reset or the store rolled back. Promote nothing that run, and say so. After three consecutive failures, accept the loss, because a rollback recovers in a run or two and a real mass close does not.
- Never on a read failure. An unreadable store returns
unknown, neverclosed.
Read the on-disk store, not the CLI: the file is there when the app is closed, and the CLI cannot answer then. Count each agent’s snoozedTabs as open, the same fact that broke the link checker. When two tools read the same state, make them agree on purpose.
Promotion is reported, never written. A closed tab means someone must decide whether anything is still owed. The tool names candidates; an agent runs them through the gates below and writes only the survivors.
Cue: the clock and the cascade
Maestro Cue is Maestro’s event-driven automation. Subscriptions live in .maestro/cue.yaml in the agent’s project root and listen for an event type: timers, file changes, agent completions, GitHub activity and more. (Maestro Cue: agents that pick up work on their own is the full introduction.) This system uses two event types, and the difference between them is the design.
The timer is the floor. One subscription, every morning:
- name: Reminders-Sweep
event: time.scheduled
schedule_times: ['06:15']
schedule_days: [mon, tue, wed, thu, fri, sat, sun]
action: command
command:
mode: shell
shell: python3 /path/to/tools/reminders_sweep.py --apply
action: command runs a shell command instead of prompting an agent. Do not spend a model on a job a script does exactly.
The sweeper archives each - [x] line into an append-only archive, promotes a future-dated item when its date arrives, tidies empty group headers, and warns about items long overdue. Its docstring states the rule that makes it safe to run unattended:
A checkbox he ticks is the ONLY signal that he considers something done. This tool never decides an item is finished on its own, never edits the text of an open item, and never removes anything without writing it to the archive first. If the archive write fails, the source file is left untouched.
It is a dry run by default; --apply writes and --json reports. Nothing in the system deletes anything.
The tick is the trigger
A daily sweep is still a batch job. A box ticked at 09:00 stays wrong until the next morning. The operator’s fix: make the tick the trigger. That is file.changed, with one subscription per place the human ticks:
- name: Reminders-Tick-Watch # a tick in Reminders.md itself
event: file.changed
watch: Reminders.md
filter:
changeType: change
action: command
command:
mode: shell
shell: python3 /path/to/tools/reminders_tick_watch.py
- name: Briefing-Tick-Watch # a tick in the morning brief
event: file.changed
watch: Briefings/*-AM.md
filter:
changeType: change
action: command
command:
mode: shell
shell: python3 /path/to/tools/briefing_tick_watch.py --file "{{CUE_FILE_PATH}}"
Four details to copy:
filter matches fields of the event payload. The file.changed payload carries changeType: add, change or unlink. filter: {changeType: change} fires on a modification, never on a create or delete. That separates “the human edited the list” from “an agent just wrote today’s brief” in two lines of config.
{{CUE_FILE_PATH}} passes the changed path into the command, so one subscription can watch a whole glob of briefs.
Write your own gate anyway. An agent writing the morning brief produces a burst of change events over several minutes, longer than Cue’s file debounce. So the watcher exits early when no boxes are ticked, and records a fingerprint of the ticked keys in a state file. A brief already drained at its current ticks is skipped, so three saves cost one real drain.
A command that rewrites its watched file triggers itself. reminders_sweep.py --apply writes Reminders.md. That is safe only if the second pass changes nothing, and you must measure it. Running the sweep in memory over a simulated tick:
pass 1 (the real tick) changed=True archived=1
pass 2 (self-triggered) changed=False archived=0 <- no write
pass 3 changed=False byte-identical to pass 2
Fig. 1 · The self-trigger
Pass 2 writes nothing, so it stops
sequenceDiagram
actor H as Human
participant F as Reminders.md
participant C as Cue
participant S as Sweep
H->>F: ticks a box
F-->>C: file changed
C->>S: pass 1
S->>F: archives 1 item
F-->>C: file changed (its own write)
C->>S: pass 2
S-->>S: nothing to do, no write
Note over C,S: A command that rewrites the file it watches triggers itself.
One extra fire, and it writes nothing. If your sweep is not idempotent, a file.changed subscription on its own output is an infinite loop with a debounce timer in front of it.
Keep the timer
Once ticks are instant, an agent copying this design will want to delete the 06:15 run. That is a bug. Archiving a tick is caused by an edit, so the file event catches it. Promoting a future-dated item is caused by time passing, and no file changes when a date arrives. Without the timer, parked items stay in ## Later until someone edits the file for another reason. For each change of state, ask what causes it, and schedule the ones that time causes.
Both tick watchers end with refresh-auto-run and refresh-files, so the panel updates within seconds of the click. That is the job of maestro-cli throughout: it connects your scripts to the running app.
The logic, which is not a Maestro feature
The primitives make the system possible. A refusal rule makes it good, and the rule works on any stack. An item gets on the list only if it passes one of four gates, each with evidence the agent can point at:
- A commitment the human made. They told a named person they would do a specific thing. Evidence: the human’s own first-person statement, plus the other party. “I’ll send you the deck.”
- An external clock. A real date, with a cost when it passes: a renewal, a filing window, an appointment. Evidence: the date and its source document.
- Someone is waiting. A named person asked and has not received it. Evidence: their message and its date. “She asked on Tuesday” counts. “She would probably want” does not.
- Blocked on the human. The agent did the work and cannot finish: a credential, a device, a command its permissions refuse. Evidence: the artifact built, plus the exact step that fails.
Four rejection types are named explicitly, because they kept slipping through:
- Musing. “We should,” “at some point,” “maybe we,” with no other party and no date.
- The agent’s proposal. “Say go and I’ll build the harvester.” If the work is within the agent’s permissions, it should just do it.
- The agent’s analysis. A finding or a ranking is not a chore. It belongs in a report or a note.
- A duplicate. Already an open checkbox elsewhere. Writing it twice means it gets closed twice, or not at all.
The rejection types do more work than the gates. They force the agent to name which type a candidate matches, which is harder to argue around than “be careful.” If you copy one thing, copy the evidence requirement, not these gates, which are tuned to one person. A verbatim quote and a source cannot be satisfied by a plausible inference.
The reservoir
Deleting a good thought is as wrong as filing it as a task. Rejected material goes to a second file, whose first line is the whole design:
You are not expected to read this file. I am. It exists so that nothing has to become a to-do just to survive.
In Flight holds work underway now, each bullet with its tab anchor. Parked holds thinking that was never a task, grouped by person or project. A parked thread waits for an event, not a date: a meeting with the person involved, a commitment that passes gate 1, a clock that passes gate 2. If none comes, it ages out unseen. That is the correct outcome for most thinking.
Build this file before you tighten the gate. Without it, the agent must choose between “file it as a task” and “lose it,” and it will file it as a task every time.
The shape of the list
Three sections, open checkboxes only:
## Your Move
What the human owes. Hard cap. If an ask is not here, it does not exist.
## Waiting On Your Go-Ahead
Work the agent cannot finish without the human: a credential, a device, a destructive edit.
## Later
Future-dated. Nothing owed now; each item promotes itself into Your Move on its date.
No other sections and no background prose. An earlier version had ## Detail and ## Archive sections that took over the file. The operator removed them in one sentence: “I only want to see unfinished tasks.”
The round trip
If the human ticks a box in the morning brief and the item is stored somewhere else, the item comes back tomorrow. So the brief renders open asks as real checkboxes, each with a stable key in an HTML comment:
- [ ] Confirm the renewal quote before the vendor's Friday deadline <!--bx:rm.KEY-->
The checkoff tool has two halves. stage runs before the brief is written: it emits every candidate with a key and snapshots its source line, so the item can be found after it is reordered, re-dated or promoted overnight. read parses the brief and closes each ticked key at its source. The file.changed watcher calls read the moment the human ticks.
A tick is never questioned. - [x] and - [-] both mean “off my plate.” An indented note under the tick is optional. Requiring a reason to close something is how a list stops getting closed.
A tick with no key is reported, not guessed at. A line the agent invented in the brief has no source. Guessing which stored item it maps to is the confident, wrong behaviour the gates exist to prevent.
For a deliberate pass with a report, /reminders-clear is a custom slash command that drives the same tools:
python3 tools/briefing_checkoff.py read --today --json # dry run
python3 tools/reminders_sweep.py --json
python3 tools/briefing_checkoff.py read --today --apply --sweep
maestro-cli refresh-auto-run --agent <agent-id> --json # not optional
maestro-cli refresh-files --agent <agent-id> --json
The command adds no logic, so it cannot drift from the watchers. It adds interpretation of the notes under ticks: “stop asking” suppresses the item permanently, a correction of fact fixes the underlying note, and a deferral moves the item to ## Later. The closing report says what closed, what needs a decision, and how many items remain. It does not read the list back.
Build order
Each step makes the next one possible.
- Build the reservoir first. Until it exists, a strict gate loses good material, and you will loosen the gate.
- Cut the list to open items only. Closed items go to an append-only archive. Write the sweeper: dry run by default, acting only on an explicit human tick.
- Write the gates down with evidence fields, then build an admission tool that refuses an item with no quote or source and enforces the cap. We are still short on this step.
- Link the file into the Auto Run folder so the panel shows it. Refresh both caches after the last write of every turn. Never run it as an Auto Run.
- Read the session store. Make a tab’s closure the trigger, not its age. Debounce, check for fleet-wide loss, count snoozed tabs as open, and never treat a read failure as a closure.
- Add
maestro://deep links to every ask, through{{TAB_DEEP_LINK}}where you can. Verify them with a tool. Design the degraded form first. - Schedule the sweep with Cue (
time.scheduled,action: command). - Close the loop. Stage stable keys before rendering and resolve them after. Never question a tick.
- Make the tick the trigger. One
file.changedsubscription per file the human ticks in, withfilter: {changeType: change}and{{CUE_FILE_PATH}}. Prove the sweep is idempotent, exit early when there are no ticks, and keep the timer.
What we got wrong
We mistook proactivity for usefulness. Every item was defensible on its own. The failure was cumulative, which is why it needed a cap and a gate, not better judgment.
The agent argued for a threshold when the human offered a signal. Idle time was the agent’s idea, and it was worse. The operator knew that their tabs are open on purpose, which no measurement could show.
We accepted a batch cadence because the batch job existed. A box ticked on Saturday sat until Monday. The fix was two file.changed subscriptions. When a system lags reality, check whether the lag is inherent or inherited.
None of this is a Maestro feature. The same parts, a visible document, an addressable conversation, a readable state file, a scheduler and a CLI, also build an approval queue or a live status board. The measure of a reminder system is whether the human still reads it in month six.