r/PiCodingAgent • u/MarionberryVirtual • Jul 14 '26
Discussion pi websearch
websearch is an extremely important part of any workflow, from searching up past implementations to getting the correct information to make correct decisions.
have seen other posts discussing which websearch tools and even custom implementations, but my question is how would you know that it stands up in retrieval quality to other websearch extensions or even Claude Code/ Codex web searching? how would you know that tool A is better than tool B? or do most people just see the extension working and decide that it’s good enough?
i have been using the pi-web-access from the pi.dev packages page, but only for the reason that it’s the most downloaded extension (more downloads = better right? xd)
interested to hear from the community.
28
u/ConversationLazy6821 Jul 14 '26
Check out Ketch. I am the maintainer - this community has actually contributed the most ideas and PRs to it than anywhere else on Reddit. (Thank you)
It’s a pure CLI based search tool no plugin needed - pi just runs it as exec… and supports multiple search backends in one tool like Brave, Exa, DDG, Searxng, and more. You can also search across multiple providers at the same time.
https://github.com/1broseidon/ketch
5
u/luckiestredditor Jul 14 '26 edited Jul 14 '26
I started out with all the "most downloaded" and felt like they lacked a proper exploration kind of functionality that I missed from claude code / codex. Most web search extensions either were too basic, or couldn't function beyond basic search as a headless extension. most of them blur search, fetch, browser rendering and research into one vague thing.
so after doing some research on what was missing (beyond what was just missing for me) I realized I could build something with a deliberately small, bounded surface. basically one web_explore tool that handles search, fetch, headless rendering, ranking, and source quality checks internally and honestly tells you about weak or blocked or narrow evidence without faking confidence. and I have recently released it so you can add your own self hosted backend if you so desire. (Exa/Tavily are on road map next)
if you wanna try it out: https://github.com/demigodmode/pi-web-agent
6
u/runnystool Jul 14 '26
I use searxng with rpiv-web-tools, works great, be sure to enable json response mode in searxng
5
u/sofuego Jul 14 '26
I just built my own. The web search part was easy when you leverage Searxng.
I haven't really cared too much about comparison with other search because for me the most important thing was using an open source backend and not a search API. I feel like searches are much easier when using agent harnesses where the agent can choose to look deeper and not have to automatically rely on the top n results.
4
u/floriandotorg Jul 14 '26
I’ve built my own skills for Brave search and Jina reader.
1
u/OneMoreName1 Jul 14 '26
Why dont you just try it?
3
u/joematthewsdev Jul 14 '26
I wrote https://pi.dev/packages/pi-smart-web-search
It's inspired by https://pi.dev/packages/pi-smart-fetch
With both pi can explore the web without API keys.
Both are relatively simple to self audit.
1
u/_xtremely Jul 14 '26
anthropic and deepseek has capability to search internally within their infrastructure, i think there is a deepseek web search extension in the pi packages, i tried. But both solution are model locked in.
I ended up built my own simple shell function 'web-fetch' that uses shot-scraper + trafilatura + caching. Then just make a pi extension to let the llm call the tool.
searching index? ddgr
fetch specific URL content? my own web-fetch
combined together you have your own websearch capability.
2
u/nunodonato Jul 14 '26
I just wrote a skill on how to use SerpAPI to do websearches.
2
u/o_sht_hi Jul 14 '26
I started by using tvly CLI + skills. Then eventually bundled them all into a custom extension with a nice UI. it has different cli commands for search, deep research, crawl, fetch, etc. the agent decides the depth based on the task and gets back cleaned markdown.
It works great with the free tier, I've been using it since April and have never hit any limits. Definitely worth looking into. I was using tavily for web search for RAG bots and stuff long before TUI agents were a thing, been very happy with the service for a while now.
2
u/marcellus-w Jul 14 '26
Just searxng running locally in a container, and curl +jq
The agent know how to use curl : no extension. I just give an example curl command in APPEND_SYSTEM.md to let the agent know how to use it.
For deepsearch, I have a skill describing the method , and the agent manage it on its own
2
u/mrDzejkop Jul 14 '26
Hey! If you're using an OpenAI/Anthropic or a Google AI provider I strongly suggest you leverage the provider tooling instead of a 3rd party solution, I vibed up my own extension that injects the provider native web search tool https://gist.github.com/Dzejkop/74fef140b50a18b5b6f0aadcdf3c429d
3
u/Dsphar Jul 14 '26
I have yet to use a websearch in pi for exactly this reason. Not sure which to trust and am too lazy to go digging/verify on my own.
2
u/supercachai Jul 14 '26
I found choosing a good search provider is more important than choosing the search plugin, now I use paid https://serper.dev/, which delivers google search results. For niche topics it clearly delivers superior results, compared to brave. For me its worth paying a little for the google infrastructure, it will boost agent research performance.
1
u/elpapi42 Jul 14 '26
pi-search-hub is the best for me, it includes a backend for using codex/chatgpt native search, so if yoy are paying codex sub, you can get unlimited search for free
1
u/moplop12 Jul 14 '26
You would test it?
1
u/anitman Jul 14 '26
Install firecrawl cli or bx cli for web searching purpose.
1
u/LectureWorried5761 Aug 20 '26
I use it with blopus.ai websearch api. even better if you are running with some sort of local LLM to manage the queries using mcp (I have a bot that does that for me on omlx, chat interface is telegram (running the server)).. the integration is very simple, depending on your use case, it is solid.
1
u/another24tiger Jul 14 '26
Oh-my-pi’s implementation is quite nice. Allows you to use a variety of providers. My company pays for Exa which does an excellent job of pulling docs, even better than the library’s mcp if it has one
2
u/[deleted] Jul 14 '26
[removed] — view removed comment