web_search: evaluate switching default provider from Bing to DuckDuckGo
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
- Switch default now (v0.8.47)?
- Switch after #2130 (Bing→DDG fallback) lands and has field time?
- 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
bing is available in china,not blocked. ddg is unavailable.
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.
Done — web_search default backend switched Bing→DuckDuckGo in v0.8.47 (aeaf91d58).