@kentcdodds/sentry-triage
Sentry triage wakes Cole (Grok Bot) per issue: one active wake per repo (lease + queue), loop-safe Discord. Cole may spawn Cursor for isolated repo work.
- Integrations
- sentry
- cole
- grok-bot
- triage
- discord
- webhook
- Version
- 1.11.0
- License
- MIT
- Published
- September 11, 2026
- Pinned commit
80075ca- Rating
- No ratings yet
- Forks
- 2
- 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 the existing per-repo leases, batch 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.
- Stores active ownership as
agentId: "cole",agentUrl: "grok-bot:cole"for compatibility with existing issue records and lease/outcome code.
Cole wake transport prefers the minted @kentcdodds/grok-bot wake webhook,
then packageSubscriptionDispatch({ kody_id: 'grok-bot', topic: 'grok-bot.wake', params: { bot: 'cole', prompt } }), then the
kody:@kentcdodds/grok-bot/wake package export.
Projects (Kent listing defaults)
kody→kentcdodds/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/discordgrokBotWakeWebhookUrl— user-secret fallback name for the minted Grok Bot wake URL; prefer storing the minted URL with./configure-wake-webhook
Setup:
- Keep this package's live
sentrywebhook enabled for issue + Seer events. - Mint
@kentcdodds/grok-botwebhookwake, pass its URL once to./configure-wake-webhook, and never log or paste that credential. - Keep
reconcile-dailyandsweep-stale-awaitingenabled. - Use
./probe-wake-webhook(dry-run by default) to verify the stored route. - Community forks use
./adapt+./settingsbefore going live.
Done when
- New actionable issues wake Cole once under caps and leases.
- Seer RCA and PR flows wake Cole with their context.
record-outcomecloses the issue's Discord card and releases/flushes leases.- Reconcile and stale-awaiting sweeps recover missed work without duplicates.
- No path in this package auto-spawns Cursor.
Report this listing
Log in to report this listing.