Skip to content

Commit 38fbb84

Browse files
author
Hornet Agent
committed
feat: add sentry-agent to control-agent startup checklist
Control-agent now knows to spawn and manage the sentry-agent session. Includes tmux launch command and guidelines for handling sentry-agent reports.
1 parent 7efba0f commit 38fbb84

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

pi/skills/control-agent/SKILL.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,3 +124,29 @@ Extract the **Channel** and **Thread** values from the metadata. Use the Thread
124124
3. If not found, launch with tmux (see Spawning Sub-Agents above)
125125
4. Wait a few seconds for the session to initialize before sending messages
126126
- [ ] Send role assignment to the `dev-agent` session
127+
- [ ] Find or create sentry agent:
128+
1. Use `list_sessions` to look for a session named `sentry-agent`
129+
2. If found, use that session
130+
3. If not found, launch with tmux (see below)
131+
4. Wait a few seconds, then send role assignment
132+
- [ ] Send role assignment to the `sentry-agent` session
133+
134+
### Spawning sentry-agent
135+
136+
The sentry-agent monitors `#bots-sentry` in Slack for Sentry alerts, investigates critical issues via the Sentry API, and reports triaged findings back to you. It uses the `sentry-monitor.ts` extension (provides the `sentry_monitor` tool) and the `sentry-agent` skill.
137+
138+
```bash
139+
tmux new-session -d -s sentry-agent "source ~/.config/.env && export PATH=\$HOME/opt/node-v22.14.0-linux-x64/bin:\$PATH && export PI_SESSION_NAME=sentry-agent && pi --session-control --skill ~/.pi/agent/skills/sentry-agent"
140+
```
141+
142+
The sentry-agent will:
143+
- Poll `#bots-sentry` every 3 minutes for new Sentry alerts
144+
- Triage alerts by severity (critical, warning, info)
145+
- Use `sentry_monitor get <issue_id>` to fetch stack traces for critical issues
146+
- Report critical issues to you immediately via `send_to_session`
147+
- Batch low-priority alerts into periodic summaries
148+
149+
When you receive a report from sentry-agent, decide whether to:
150+
- Notify the team via Slack
151+
- Create a todo and delegate to dev-agent for a fix
152+
- Acknowledge and track silently

0 commit comments

Comments
 (0)