Skip to content

feat: Advanced web search — deep page reading instead of snippet-only search #467

Description

@rexlunae

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:

  1. Search: Query search engine (Brave/Google via API, or DuckDuckGo for privacy)
  2. Fetch top N results: Actually visit each result URL with web_fetch
  3. Extract relevant passages: Find the parts of each page most relevant to the query
  4. Synthesize: Return a structured response with findings + source citations
  5. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions