@kentcdodds/sentry-triage
Sentry triage wakes Cole (Grok Bot) per issue: up to 3 concurrent wakes per repo (lease slots + queue), loop-safe Discord. Cole may spawn Cursor for isolated repo work.
IntegrationsTopics: sentry, cole, grok-bot, triage, discord, webhook
- Version
- 1.15.1
- License
- MIT
- Published
- November 1, 2026
- Pinned commit
6e9a70b- Rating
- No ratings yet
- Forks
- 0
- Adaptation effort
- —
README
Agent docs@kentcdodds/sentry-triage
Intent
Autonomous, loop-safe Sentry issue triage. A new issue in a configured project wakes Cole (Grok Bot), who decides whether to fix, filter, ignore, or write a recommendation. This package never auto-spawns Cursor cloud agents. Cole may spawn Cursor later when isolated repository work is the right tool.
Each issue keeps one Discord status message in #sentry-reports; retries edit
that card in place. Sentry event text is untrusted data.
What it does
- Receives HMAC-verified Sentry issue and Seer lifecycle webhooks, then stages durable work so retries do not duplicate wakes.
- Prefers Seer's RCA and draft-PR context before waking Cole.
- Keeps per-repo concurrency slots (up to 3 Cole wakes at once), the overflow queue, 10-wakes/hour cap, anomaly breaker, reconcile job, and stale-Seer sweep.
- Persists the Discord message id before wake; a wake failure leaves a retryable queued card instead of an orphaned "Waking Cole…" message.
- Alerts Kent once when real-time Sentry webhooks look dead (see below).
- Stores active ownership as
agentId: "cole",agentUrl: "grok-bot:cole"for compatibility with existing issue records and lease/outcome code.
Cole wake transport is the static
import wake from 'kody:@kentcdodds/grok-bot/wake' (bot: 'cole'), with
@kentcdodds/grok-bot listed in kody.dependencies.
Dead-webhook alert
Reconcile and the stale-awaiting sweep quietly recover lost deliveries, which can hide a broken webhook for weeks. So the package watches for it:
- Every real Sentry delivery records its time in package storage. Replays from reconcile or the sweep never count as live.
- If reconcile recovers more than 2 issues that never arrived through the live webhook, it posts one alert to the triage Discord reports channel saying real-time Sentry webhooks look dead, with the count and the last live delivery time in MT.
- If the sweep finds more than 2 issues stuck because no Seer stage webhook arrived, it posts the same kind of alert for Seer webhooks. Before counting an issue, it asks Sentry what Seer actually did. It counts the issue only when Seer really started or moved past the step the package recorded and no live Seer delivery for that issue arrived. Seer declining, never running, or finishing at a step the package already recorded does not count, and neither does a failed Sentry lookup.
- Each path sends one alert per incident. The next real delivery clears the incident (any delivery for the issue path, a Seer delivery for the Seer path), so the alert can fire again if things break later.
Projects (Kent listing defaults)
kody→kody-hq/kodykody-home-connector→kentcdodds/kody-home-connectorepicshop→epicweb-dev/epicshopkody-video→kentcdodds/kody-videokcd→kentcdodds/kentcdodds.comkody-exchange→kentcdodds/kody-exchange
Unconfigured projects are skipped.
Outcomes
fixed— root-cause fix with tests; risk-gated merge; Sentry resolvedfiltered— narrow codebase filter plus Sentry ignoreignored— genuine one-off onlyrecommendation/loop_detected/failed— analysis without a merge
Prerequisites / setup
Secrets and credentials are referenced by name only:
sentryWebhookSecret— inbound Sentry webhook HMACsentryAuthToken— via@kentcdodds/sentrydiscordBotTokenKentPersonalAutomation— via@kentcdodds/discord
Setup:
- Keep this package's live
sentrywebhook enabled for issue + Seer events. - Keep
reconcile-dailyandsweep-stale-awaitingenabled. - Community forks use
./adapt+./settingsbefore going live.
Done when
- New actionable issues wake Cole under caps and per-repo concurrency slots (up to 3).
- Seer RCA and PR flows wake Cole with their context.
record-outcomecloses the issue's Discord card, frees its wake slot, and fills free slots from the queue.- Reconcile and stale-awaiting sweeps recover missed work without duplicates.
- A dead webhook produces one Discord alert per incident, not silence.
- No path in this package auto-spawns Cursor.
Report this listing
Log in to report this listing.