Webfetch claims 87% fewer search tokens and 66% lower cost for LLM agents
Remote-Breadfruit204 · reddit · 2026-07-23
Webfetch cuts agent search tokens by 87% and cost by 66%
A Reddit post introduces webfetch, a local web-search plugin for LLM agents that claims the same 96% SimpleQA accuracy as hosted search while using 87% fewer tokens and costing 66% less.
What it does
- Uses RRF fusion across four search engines, local page fetching, hybrid BM25 + bi-encoder retrieval, and a cross-encoder reranker.
- Adds sentence-level compression, cutting result tokens roughly in half without measured recall loss.
- Implements semantic caching: paraphrased queries are matched via embeddings, verified with an NLI cross-encoder, and assigned adaptive TTLs based on volatility.
- Shows provenance for cached answers and lets the model force a fresh search when needed.
Claimed savings
In one small test loop with 16 web searches, the author says webfetch avoided about $1.49 in total cost, including both hosted-search fees and injected-content token costs.
The project is available on PyPI and can also be added as an MCP server.
Related event: Open-source Webfetch slashes AI agent search costs and tokens(4 posts)→
More from coding & agent
- AIE Code Summit 2026 opens applications: 800 seats, keynotes streamed free — trq212 · 2026-10-27
- TRL adds Score Centering, a simple fix for RLHF training instability — lvwerra · 2026-10-27
- Precompute golden answers and match at runtime for exact wording control — colinmcnamara · 2026-10-27
- Dev argues there's still alpha in working with your coding agent interactively — alex_frantic · 2026-10-27
- Researchers launch AMA on patterns for safer AI agents used by citizen developers — Loose_Rip359 · 2026-10-27
- Gradio Adds In-Chat Human-in-the-Loop So ML Intern Pauses Before Training — Gradio · 2026-10-27