🔒 Protected via Cloudflare Access

Question Tool — Thread Recap

What We Built

Replaced auto-generated action blocks with an explicit question tool that agents call when they need structured input from Dom.

Files Changed

How It Works

  1. Agent calls question(prompt, options)
  2. Discord renders: buttons (≤2 options) or combo (first option as button + rest in dropdown)
  3. Tool returns immediately (non-blocking)
  4. User clicks → webhook dispatch triggers agent turn + system event backup
  5. Agent wakes with [Question answered] "prompt" → User selected: "label" (index N)

Key Design Decisions

Rendering Rules

Options Style
1-2 Buttons only
3+ First as button (primary), rest in dropdown

New Global Rules (justin skill)

  1. Every message ends with question tool — structured options, not freeform prose questions
  2. Brevity — 20-40 words ideal, 100 max. Overflow → show tool

Commits