dsh-anysearch-fallback: Direct web_fetch fallback when AnySearch extraction fails

DSH's web_fetch extracts body text via AnySearch's /v1/extract; however, some pages return an HTTP 422 'extract_failed' error, causing the entire call to fail. The 'dsh-anysearch-fallback' registers an 'anysearch-fallback' provider with zero dependencies. It initially proxies the official AnySearch, but for any upstream error (excluding cancellation), it degrades to an SSRF-constrained direct fetch and annotates the upstream and direct-fetch status at the first line of the extracted text. This article covers the mechanism, installation steps (local profile + bundles append + DSH restart), key limitations, and usage scenarios.

Read More