Lesson 14.06 · Phase 14 · Agent UX & Interfaces

Background agents & notifications

A background agent's best feature is that you can forget about it. Its worst is a phone buzzing every time it makes progress. Notify when a person is needed, summarise the rest, and respect the night.

Learning objectives

  • Model a background run's states (progress, needs input, done, failed) and decide for each whether it deserves a notification.
  • Build a notification policy: push now, digest, defer to the morning, or app-only, with deduplication and quiet hours that a real deadline can override.
  • Deliver notifications to other systems as webhooks signed with HMAC over a timestamp and the body, with retries and backoff.
  • Verify webhooks on the receiving side: reject tampered bodies and old replays, and acknowledge duplicates without processing them twice.

Background agents run while you do something else: a refactor that takes an hour, a nightly dependency update, a report every Monday. Two failure modes are common: - Too quiet. The agent has been waiting since 9:20 for an approval nobody saw, and the task that was due today isn't done. - Too loud. A push for every progress update, every completed run and every retry. Within a week people mute it, and then they miss the approval.

Loading the full lesson…