Skip to content

Commit 08149c2

Browse files
committed
config: fix CI input count, make sentry-agent model dynamic everywhere
1 parent ac3b8e6 commit 08149c2

3 files changed

Lines changed: 15 additions & 6 deletions

File tree

bin/ci/setup-arch.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ sudo -u baudbot_admin bash -c 'cd ~/baudbot && git init -q && git config user.em
2020

2121
echo "=== Running install.sh ==="
2222
# Simulate interactive input: admin user, required secrets, skip optionals, decline launch
23-
printf 'baudbot_admin\nsk-ant-testkey\n\n\n\nghp_testtoken\nxoxb-test\nxapp-test\nU01TEST\n\n\n\n\n\nn\n' \
23+
printf 'baudbot_admin\nsk-ant-testkey\n\n\n\nghp_testtoken\nxoxb-test\nxapp-test\nU01TEST\n\n\n\n\nn\n' \
2424
| bash /home/baudbot_admin/baudbot/install.sh
2525

2626
echo "=== Verifying install ==="

bin/ci/setup-ubuntu.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ sudo -u baudbot_admin bash -c 'cd ~/baudbot && git init -q && git config user.em
3131

3232
echo "=== Running install.sh ==="
3333
# Simulate interactive input: admin user, required secrets, skip optionals, decline launch
34-
printf 'baudbot_admin\nsk-ant-testkey\n\n\n\nghp_testtoken\nxoxb-test\nxapp-test\nU01TEST\n\n\n\n\n\nn\n' \
34+
printf 'baudbot_admin\nsk-ant-testkey\n\n\n\nghp_testtoken\nxoxb-test\nxapp-test\nU01TEST\n\n\n\n\nn\n' \
3535
| bash /home/baudbot_admin/baudbot/install.sh
3636

3737
echo "=== Verifying install ==="

pi/skills/control-agent/SKILL.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ tmux new-session -d -s $SESSION_NAME \
193193
- Wait **~10 seconds** after spawning before sending messages (agent needs time to initialize)
194194
- Do NOT use `--name` (not a real pi CLI flag)
195195

196-
**Model note**: Dev agents use the default model (no `--model` override needed). For cheaper tasks (e.g. read-only analysis), you can add `--model opencode-zen/claude-haiku-4-5`.
196+
**Model note**: Dev agents use the top-tier model from the table above. For cheaper tasks (e.g. read-only analysis), use the cheap model from the sentry-agent table instead.
197197

198198
## Cleanup
199199

@@ -218,13 +218,22 @@ If the agent's worktree has unpushed changes you want to preserve, skip worktree
218218

219219
## Sentry Agent
220220

221-
The sentry-agent is a **persistent, long-lived** session (unlike dev agents). It triages Sentry alerts and investigates critical issues via the Sentry API. It runs on **Haiku 4.5** (cheap) via OpenCode Zen.
221+
The sentry-agent is a **persistent, long-lived** session (unlike dev agents). It triages Sentry alerts and investigates critical issues via the Sentry API. It runs on a cheap model to save tokens.
222+
223+
Pick the model based on which API key is available (check env vars in this order):
224+
225+
| API key | Model |
226+
|---------|-------|
227+
| `ANTHROPIC_API_KEY` | `anthropic/claude-haiku-4-5` |
228+
| `OPENAI_API_KEY` | `openai/gpt-5-mini` |
229+
| `GEMINI_API_KEY` | `google/gemini-3-flash-preview` |
230+
| `OPENCODE_ZEN_API_KEY` | `opencode-zen/claude-haiku-4-5` |
222231

223232
```bash
224-
tmux new-session -d -s sentry-agent "export PATH=\$HOME/.varlock/bin:\$HOME/opt/node-v22.14.0-linux-x64/bin:\$PATH && export PI_SESSION_NAME=sentry-agent && varlock run --path ~/.config/ -- pi --session-control --skill ~/.pi/agent/skills/sentry-agent --model opencode-zen/claude-haiku-4-5"
233+
tmux new-session -d -s sentry-agent "export PATH=\$HOME/.varlock/bin:\$HOME/opt/node-v22.14.0-linux-x64/bin:\$PATH && export PI_SESSION_NAME=sentry-agent && varlock run --path ~/.config/ -- pi --session-control --skill ~/.pi/agent/skills/sentry-agent --model <MODEL_FROM_TABLE_ABOVE>"
225234
```
226235

227-
**Model note**: Use `opencode-zen/*` models for headless agents. `github-copilot/*` models reject Personal Access Tokens and will fail in non-interactive sessions.
236+
**Model note**: `github-copilot/*` models reject Personal Access Tokens and will fail in non-interactive sessions.
228237

229238
The sentry-agent operates in **on-demand mode** — it does NOT poll. Sentry alerts arrive via the Slack bridge in real-time and are forwarded by you. The sentry-agent uses `sentry_monitor get <issue_id>` to investigate when asked.
230239

0 commit comments

Comments
 (0)