Raven icon indicating copy to clipboard operation
Raven copied to clipboard

feat(agent): prompt deep-vs-regular for deep_research instead of silent opt-in

Open 0xKT opened this issue 4 months ago • 0 comments

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 enable command 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_user broker exists: TUI + gateway. raven agent has 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).

0xKT avatar Jul 21 '26 09:07 0xKT