Web Stack is the part of my AI setup that lets agents search the web and read pages in full. It runs on my home server, and instead of paying a search API for short snippets, my agents get the whole page, using the cheapest method that actually works for that site.
Search
Searching the web, privately first
01/05One front door
My agents send every web search through Web Stack, so they all search the same way.
- One front door: My agents send every web search through Web Stack, so they all search the same way. (My agents → Web Stack)
- Same tools everywhere: My coding tools get the exact same search tools, so results match wherever I'm working. (Coding tools → Web Stack)
- Private search first: Searches go to a search engine I host myself. It asks many engines at once, and nobody builds a profile of what my agents look up. (Web Stack → Private search)
- Paid search as a backup: Only when private search comes back empty does it ask a paid service, and it paces those calls carefully. (Web Stack → Paid search)
- Answer, without keeping the question: Results go back to the agent. Web Stack counts how it's used, but never saves what was searched. (Web Stack → My agents)
Read
Reading a page, cheapest method first
01/05Ask for a page
An agent asks for a link. If that page was read recently, the saved copy comes straight back.
- Ask for a page: An agent asks for a link. If that page was read recently, the saved copy comes straight back. (Agent → Cache)
- Follow the house rules: Before fetching anything new, it checks the site allows it and paces its requests. (Cache → House rules)
- Try the fast way first: Most pages are read in a fraction of a second by pulling out just the text, then checked for real content. (House rules → Fast reader → Quality check)
- Step up only when needed: If the fast way comes up empty, the page opens in a browser, and for the toughest sites, a full browser. (Fast reader → Browser → Full browser → Quality check)
- Hand back the answer: The agent gets the page text with its source, and it's saved so the next request is instant. (Quality check → Answer → Agent)
What it does
- Searches the web through a private, self-hosted search engine, with a paid fallback only when it's needed.
- Reads a page with a fast text extractor first, and only steps up to a full browser when a site needs one.
- Works with both of the agent tools I use day to day, so they share one web layer.
Notes
- Built to be private: it never stores the searches my agents run.
- It's polite to the sites it visits, following their crawling rules and pacing its requests.
- It's checked by a test suite that runs real pages through it, so a change that breaks reading shows up before it ships.
Source is private for now while I clean up deployment-specific configuration.