Raven
Raven copied to clipboard
feat(agent): prompt deep-vs-regular for deep_research instead of silent opt-in
Problem
deep_research (MiroThinker) is a paid, minute-scale engine, and it was a silent opt-in:
- On an unconfigured deploy the tool was never registered, so users had no way to discover the capability -- if they had not run
raven deep-research enable(or onboarded), it simply did not exist for them. - On a configured deploy it ran on the model's decision alone, with no user confirmation -- a slow, billed run could start without the user's say-so.
Proposed behaviour
When the model reaches for deep_research on a research-shaped query, ask the user deep vs regular at the point of use (deep is slow and paid, so the choice is theirs each time):
- configured + deep -> run the engine; regular -> fall back to
web_search/web_fetch. - not configured -> show the exact
raven deep-research enablecommand directly to the user and offer a regular search meanwhile; a mid-session enable is picked up on the next turn, no restart.
Simple questions are designed not to trigger the prompt (the model uses regular web tools and does not reach for deep_research).
Scope / non-goals
- Wired where the
ask_userbroker exists: TUI + gateway.raven agenthas no broker and degrades to the model's choice (a separate follow-up could wire a broker there). - No new config surface; existing configured deploys keep working (just gain the one-time confirm).