shouldNotify (policy.ts)

agentglass · automation

Which alerts are worth a buzz, and which are the same alert twice. Pure and separate from the raising, because the decision is the whole feature. A companion that notifies too much is one people silence, and a silenced companion is worse than no companion — it is a thing you beli

// Source: https://github.com/SirAllap/agentglass | License: MIT | Copyright 2026 David Pallares (SirAllap)
// Provided via justclaw.it.com; keep this notice with the code.
/*
 * Which alerts are worth a buzz, and which are the same alert twice.
 *
 * Pure and separate from the raising, because the decision is the whole
 * feature. A companion that notifies too much is one people silence, and a
 * silenced companion is worse than no companion — it is a thing you believe is
 * watching for you while it is not.
 *
 * The alerts themselves come from the server, unchanged: `{type:"alert"}` on
 * the live socket is exactly what it hands to `notify-send` on the desk. So
 * nothing here decides what is INTERESTING — the server already did — only
 * what is worth interrupting somebody who is not a

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search 40K more like it.

Get a free API key