All pages

28Starter kit 3 min read

Routine prompts

Skeleton prompts for the scheduled routines, with the shared guard and report line.

Routine prompts

Skeletons for the scheduled routines. Each routine runs in a fresh session, so its prompt must be self-contained. Every prompt starts with the same guard and ends with the same report line.

Start: if another run of this routine is live in the same window, stop. If one
finished, verify its output read-only and do not repeat its writes.
Follow the agent rules file. Do not send anything; drafts stay unsent.
Do not retry an external write whose outcome is unclear; read the target back.
State file: <path>. Keep it bounded: durable context, per-source watermarks,
and the two latest run entries.
...
Finish with one line:
ROUTINE_RESULT: {"status":"success|partial|blocked|failed","summary":"...","artifacts":[],"state_updates":{}}

Daily intake (07:00)

Read every source since its own covered-through time with the fixed read
scripts: chat, email (with the sender gate), shared-doc notifications,
calendar (read only), tracker comments, rule changes. Judge only the items
the scripts list.
For each candidate: validate against the raw source, write the owner's role
(responsible / waiting for a result / informed; informed creates no issue),
create through the creation command (it runs the duplicate check), then give
it one outcome: do it, decision card, or track it.
Then run the follow-up pass: draft replies and due nudges in place, unsent;
close issues whose reply was sent.
Advance a source's watermark only if its read was complete.

Incremental loop (09:00, 13:00, 18:00 on workdays)

Window = since the later of this loop's watermark and the daily intake's.
A. New signals: direct messages, mentions, replies in my recent threads,
   saved items; email that passes the sender gate; stalled issues.
B. Handle each with the three outcomes. Skip issues a live session is on.
C. (18:00) Day-end status pass on open issues.
D. (13:00) Fix every open check-failed issue an agent can fix.

Reply watch (hourly)

See Watching for replies for the steps: delegation hygiene, new owner comments, action rules, resume dropped runs, duplicate and orphan sweep, missing asks, missed one-click answers. Run it behind a code gate:

Gate (scheduler, no model): run every read-only check; save raw outputs to
the run folder. QUIET: move the watermark, log one line, exit. ACTIVE or a
check failed: start a session with the prompt below and the run folder.
Session: read the saved outputs (do not repeat the checks), act on each item,
read back every write, post results, move the watermark.

Wait watch (every 10 minutes)

Gate (scheduler, no model): read every registered chat-thread wait. For each
thread, list counterpart messages newer than the last handled one, and waits
past their limit. None: exit.
For each new message: save the intent, then start a session on the issue with
the message. For each expired wait: close it once, then start one session to
re-register, draft a nudge, or drop it.

Recurring-issue watchdog (twice daily)

List open recurring instances due in the last 2 days whose template is
delegated to an agent. Match by due date, never creation date. Run the
latest per template; mark older ones superseded; create a missing expected
instance once. Skip instances with a real agent answer or a live session.

Repository sync (twice daily)

In the agent repository: verify the remote and branch. Stage only legitimate
paths (never a blind add-all). Scan the staged diff for secrets, including
signed-URL parameters. Check per-file deletion counts for surprises. Commit,
merge the remote main, push. Never force-push, rebase or reset.