Auto-Triage Sentry Alerts into Feishu With Your Local Claude Code Repo
Instead of waking engineers up with 40 raw Sentry webhooks, TagTag polls Sentry in readonly mode, lets your local Claude Code inspect the real repo on your Mac, and sends one clean root-cause note into Feishu—with zero public IP and both SENTRY_* and FEISHU_* secrets stripped from the LLM.
What It Looks Like in Chat
Polled sentry:prod-api → 42 timeout events grouped into 1 issue (#4812) · secrets stripped
Root cause in `internal/db/pool.go:88`: `SetConnMaxIdleTime` dropped below RDS proxy timeout after commit `a19c2e`. Suggested patch ready on branch `fix/db-idle-timeout` (tests 18/18 pass). Reply `@oncall-bot /trace` for timing.
@oncall-bot /trace prompt
Zero tokens used. Sensitive prompt trace routed privately to Owner DM (not posted to group).
Setup Steps
1. Configure Sentry as readonly inbound
Grant Sentry a read-only Auth Token and set default_target to your Feishu on-call group so alerts flow one way.
2. Connect Feishu via WebSocket Long Connection
Use TagTag’s free IM Bot Setup Generator to export Feishu scopes, enable WebSocket receiving mode, and bind @oncall-bot.
3. Verify with zero-token dry-run before enabling LLM
Run `tagtag connector check` and `--dry-run` to confirm Sentry cursor advancement without spending model tokens.
Sanitized Config & Zero-Token Check
[
{
"id": "sentry:prod-api",
"type": "sentry",
"enabled": true,
"bot_id": "oncall-bot",
"access": "readonly",
"default_target": "feishu:oncall/oc_xxxxxxxx",
"env_keys": ["SENTRY_AUTH_TOKEN", "SENTRY_ORG"],
"config": { "project": "prod-api", "interval_sec": 120 }
},
{
"id": "feishu:oncall",
"type": "feishu",
"enabled": true,
"bot_id": "oncall-bot",
"access": "send",
"env_keys": ["FEISHU_APP_ID", "FEISHU_APP_SECRET"],
"config": { "domain": "feishu" }
}
]tagtag connector poll --data-dir "$TAGTAG_HOME" --env-file .env --dry-run --json sentry:prod-api