CodeWhale icon indicating copy to clipboard operation
CodeWhale copied to clipboard

web_search: evaluate switching default provider from Bing to DuckDuckGo

Open Hmbown opened this issue 6 months ago • 3 comments

Context

The web_search tool defaults to provider = "bing" (HTML scraping, no API key needed). Research (#2130, #964) shows:

  • Bing works for simple one-word queries but silently returns empty results for technical/compound queries (e.g. "Claude Code tool architecture agent loop")
  • DuckDuckGo HTML scraping returns relevant results for the same queries, and already has a Bing fallback when DDG itself returns a bot challenge
  • web.run (which uses DuckDuckGo) is the more reliable path today

Proposal

Consider changing the default SearchProvider from Bing to DuckDuckGo in crates/tui/src/config.rs (line 608: #[default] Bing → #[default] DuckDuckGo).

Trade-offs

Bing (current default) DuckDuckGo (proposed)
Reliability Empty results for technical queries Good results; falls back to Bing on bot challenge
Privacy Microsoft tracking Privacy-respecting
No API key Yes Yes
Regional Blocked in China Blocked in China
Latency ~300ms ~800ms

For users in mainland China, neither Bing HTML scraping nor DuckDuckGo works — they need Tavily or Bocha API keys (#1681). So the default change doesn't hurt the China use case (it's already broken either way).

Decision needed

  1. Switch default now (v0.8.47)?
  2. Switch after #2130 (Bing→DDG fallback) lands and has field time?
  3. Keep Bing as default but add a startup warning in codewhale doctor?

Related

  • #2130 — code-level Bing→DDG zero-result fallback (immediate fix)
  • #2131 — surface search provider in doctor output
  • #964 — original web_search bug report
  • #1681 — region-aware search providers for China

Hmbown avatar May 25 '26 12:05 Hmbown

bing is available in china,not blocked. ddg is unavailable.

Artenx avatar May 30 '26 14:05 Artenx

Partial progress: #2429 added a Volcengine Ark-backed web_search provider path, harvested from @Implementist's #2426, including fixes for Volcengine response extraction and config aliases.

I’m leaving this open until the rest of the regional search/provider acceptance criteria are confirmed, especially the default-provider question this issue tracks. Please retest on the next build and note anything still blocked.

Hmbown avatar May 31 '26 11:05 Hmbown

Done — web_search default backend switched Bing→DuckDuckGo in v0.8.47 (aeaf91d58).

Hmbown avatar Jun 15 '26 06:06 Hmbown