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
- Dev builds interactive 3D product experience with GPT-6 Astra + Hyper3D Rodin — nikola_mr64990 · 2026-09-11
- Codex tip: use Sol with Astra and Luna sub-agents to save usage — pvncher · 2026-09-11
- agents-best-practices: a provider-neutral Agent Skill for designing and auditing agentic harnesses — tom_doerr · 2026-09-11
- Cognition's SWE-2 uses a KKT duality argument in RL to shift the effort Pareto curve — YouJiacheng · 2026-09-11
- First-ever Three.js Conference lands in Paris, with a panel on AI-shortened design workflows — OdinLovis · 2026-09-11
- Data engineering, not agent frameworks, is the real bottleneck for enterprise AI agents — dhruv2038 · 2026-09-11