Skip to content

Notifications

SAM includes an in-app notification system that keeps you informed about agent progress and activity.

TypeUrgencyWhen It Fires
task_completeMediumAn idea finishes executing successfully (includes PR URL or branch name)
needs_inputHighAn agent calls request_human_input — it’s blocked and needs your decision
errorHighExecution fails with an error
progressLowAn agent reports incremental progress via update_task_status
session_endedMediumAn agent conversation turn completes
pr_createdMediumAn agent creates a pull request

Notifications are delivered via WebSocket for instant updates. The notification bell in the UI header shows the unread count and updates in real-time without page refresh.

Agents can signal when they need your input using the request_human_input MCP tool. This creates a high-urgency notification that appears immediately.

The agent specifies:

  • A question describing what input is needed
  • A category: decision, clarification, approval, or error_help
  • Optional choices the user can select from (up to 10 options)
  • Context about the current state (up to 4,000 characters)

The agent blocks until you respond, so prompt responses keep work moving.

When agents call update_task_status, SAM creates progress notifications. To avoid notification fatigue, these are batched: only one progress notification per idea per 5-minute window (configurable via NOTIFICATION_PROGRESS_BATCH_WINDOW_MS).

EndpointMethodDescription
/api/notificationsGETList notifications (paginated)
/api/notifications/unread-countGETGet unread count
/api/notifications/:id/readPOSTMark as read
/api/notifications/read-allPOSTMark all as read
/api/notifications/:id/dismissPOSTDismiss a notification
/api/notifications/preferencesGETGet notification preferences
/api/notifications/preferencesPUTUpdate preferences
/api/notifications/wsGETWebSocket for real-time delivery

SAM automatically deduplicates notifications:

  • task_complete notifications are deduplicated within a 60-second window (configurable via NOTIFICATION_DEDUP_WINDOW_MS)
  • Progress notifications are batched per idea per 5-minute window
  • Maximum notifications per user: 500 (configurable via MAX_NOTIFICATIONS_PER_USER)
  • Auto-delete age: 90 days (configurable via NOTIFICATION_AUTO_DELETE_AGE_MS)
  • When the limit is reached, the oldest notifications are automatically removed
VariableDefaultDescription
NOTIFICATION_PROGRESS_BATCH_WINDOW_MS300000 (5 min)Minimum interval between progress notifications per idea
NOTIFICATION_DEDUP_WINDOW_MS60000 (60s)Dedup window for task_complete notifications
NOTIFICATION_AUTO_DELETE_AGE_MS7776000000 (90 days)Auto-delete threshold
MAX_NOTIFICATIONS_PER_USER500Max stored notifications before oldest are removed
NOTIFICATION_PAGE_SIZE50Default page size for notification list