Back to all workflow recipes
On-Call & Alerts·sentry + feishu·Zero Public IP

Auto-Triage Sentry Alerts into Feishu With Your Local Claude Code Repo

DIRECT ANSWER & GUARDRAILS

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.

Recommended Harness
Claude Code CLI (`claude`)
AccessGuardSink
Sentry: readonly · Feishu: send (group reply only)
Stripped Prefixes
SENTRY_*, FEISHU_*, LARK_*

What It Looks Like in Chat

TagTag Go Core

Polled sentry:prod-api → 42 timeout events grouped into 1 issue (#4812) · secrets stripped

@oncall-bot (Claude Code)

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.

Alex (Owner)

@oncall-bot /trace prompt

TagTag Go Core

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

connectors.json (zero secrets embedded)
[
  {
    "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" }
  }
]
Zero-token dry-run verification
tagtag connector poll --data-dir "$TAGTAG_HOME" --env-file .env --dry-run --json sentry:prod-api
Local agents
IM platforms