Inspiration: Unsloth
Unsloth's web search doesn't just scan summaries — it actually visits pages to collect relevant information. This provides much more accurate/in-depth context. Uses DuckDuckGo for private search, then fetches and reads each result page.
The result: a local Qwen3.5-4B model searched 20+ websites and cited sources, with web search happening inside its thinking trace.
What RustyClaw could do
Upgrade RustyClaw's web_search tool (or add a new deep_search tool) that:
- Search: Query search engine (Brave/Google via API, or DuckDuckGo for privacy)
- Fetch top N results: Actually visit each result URL with
web_fetch
- Extract relevant passages: Find the parts of each page most relevant to the query
- Synthesize: Return a structured response with findings + source citations
- Crawl depth: Option to follow links one level deep for thorough research
Why this matters
Current web_search returns snippets. Agents frequently need to web_fetch those results manually. A combined search+read pipeline would be a compound tool that's more efficient (one tool call vs N+1) and higher quality (structured extraction vs raw HTML).
Scope
rustyclaw-core: deep_search tool (or enhance web_search with a deep=true parameter)
- Configurable: max pages to fetch, max depth, timeout per page
- Respects robots.txt and rate limits
- Caches fetched pages within a session to avoid re-fetching
Prior art
Inspiration: Unsloth
Unsloth's web search doesn't just scan summaries — it actually visits pages to collect relevant information. This provides much more accurate/in-depth context. Uses DuckDuckGo for private search, then fetches and reads each result page.
The result: a local Qwen3.5-4B model searched 20+ websites and cited sources, with web search happening inside its thinking trace.
What RustyClaw could do
Upgrade RustyClaw's
web_searchtool (or add a newdeep_searchtool) that:web_fetchWhy this matters
Current
web_searchreturns snippets. Agents frequently need toweb_fetchthose results manually. A combined search+read pipeline would be a compound tool that's more efficient (one tool call vs N+1) and higher quality (structured extraction vs raw HTML).Scope
rustyclaw-core:deep_searchtool (or enhanceweb_searchwith adeep=trueparameter)Prior art