What does the web toolkit do?

The web toolkit searches the internet and reads pages as clean text, many at once. Several search engines stand behind every query, each taking over if the one before it fails. Pages are read on your computer, and a cache means the same page or search isn't fetched twice.

What makes it different

what it does the primitive behind it what that buys you
No single point of refusal Four search engines in a chain: the first one with results answers. Three of them need no paid key One engine being down, rate-limited or refusing doesn't end the search
Batches by design Many searches in one call, many pages in one call, all at the same time Every extra call is a whole extra step that re-sends the conversation. Batching removes steps
Pages read on your device Every page is fetched and cleaned locally; only the search query leaves your computer Page contents never pass through a third party
Remembers what it read A disk cache: searches for 24 hours, pages for 7 days, failures for 2 hours. It survives restarts A page read this morning is instant this afternoon. A dead link isn't hammered
A page read for a question is its own entry The question is part of the cache key A focused read is never served as the full page, or the other way round
Short isn't a verdict A read under 200 characters is treated as a likely cookie wall or script shell, and the next method is tried Pages that need a real browser still get read
Pages can skip the chat entirely The quick-web-brief reflex searches, reads up to 5 pages, and hands back only a brief and its links Researching doesn't fill your conversation with pages

How it works

Searching

  • Ask many questions in one call. Each runs at the same time and returns separately. A failed one carries its own error and doesn't stop the others.
  • Nine kinds of search: general, news, images, videos, science, IT, music, maps, shopping.
  • The engine chain: an Irene-run search pool first, then a free search library, then a paid search service, then a free independent-web index as the last resort. The first engine with results answers. If one needs payment and your usage can't cover it, the next one simply answers instead.
  • Image results give the image file and the page it came from, so the image can be downloaded rather than its page.
  • Up to 20 results per query (6 by default).
  • Every result says what was tried, so an empty answer shows which engines were asked and why each didn't answer.

Reading

For each address, in order, until it gets real content:

  1. PDFs (by address) are fetched and their text extracted, page by page.
  2. A fast read that looks like a normal browser, then extracts the article. If that comes back short, a second extractor strips menus and footers, and the longer result wins.
  3. A real browser, for pages that need scripts. It uses the Chrome already on your computer, never a downloaded one, opened once and reused. With a question attached, it keeps the parts of the page that match.
  • Each page is capped at 50,000 characters, with a marker where it was cut.
  • A read with a question goes straight to the browser step, so it can filter the page to what matters.
  • The browser closes after 5 minutes unused, or when the last running job ends.
  • The browser read uses a clean profile, not your logins. For pages behind a login, the Browser agent uses its own signed-in Chrome.

Why the system Chrome: a bundled browser would make the app much bigger. And opening a fresh one per page made the Chrome icon bounce in the Dock every time on a Mac.

The cache

  • Stored in ~/.irene/web_cache/ as plain files.
  • Searches last 24 hours, pages 7 days, failures 2 hours. Why failures expire fast: so a flaky site gets a real retry soon, while a dead link isn't re-fetched over and over in one session.
  • Addresses are tidied before matching: tracking tags (utm_…, fbclid, gclid) and trailing slashes are removed, so the same article shared two ways is one entry.
  • Capped at 200 MB, trimming the oldest first.

When a page comes back into the chat

Small pages go straight into the conversation. A large batch over 20,000 tokens, and worth moving out, is stored on disk behind a pointer, and the agent searches it instead of re-reading. Why 20,000 for web pages: web pages are the results agents read back most often (2.86 times per stored page), and each read-back re-sends the whole conversation.

Its tools

tool does
web_search one or many searches at once, of any of the nine kinds
web_read read one or many addresses as clean text, optionally focused on a question

Why two tools and not three: "search, then read the top results" is a recipe, not a tool. With two tools, the agent only pays to read a page when it actually wants that page.

How agents are told to use it

  • Batch: several angles in one search, several pages in one read.
  • One to three sources: read them. Four or more: hand them to a helper or the quick-web-brief reflex, so the pages never enter the main conversation. Why: every page pulled into the chat is re-sent on every later turn.
  • Search the stored page instead of re-reading it.
  • The Browser agent doesn't carry web search. With search available, it would answer from results instead of driving the real site.

Approvals

  • Both tools ask first, and in auto mode both go to the judge. Why: a search query or an address can carry private text out of your computer, so the judge checks you asked for it.
  • The approval card shows "Sends to: Irene's web search" with each query, or "Opens: <address>".
  • Always held in auto mode: anything that looks like a key or token inside a query or address.

Where you see it

  • Search cards group results under the question that found them ("N sources").
  • Read cards show each page with its source and length.
  • Live steps: "Searching the web · 2 searches · 12 sources", "Reading a page · example.com".
  • Indirectly: images on slides and documents are found with the same image search, and documents you index by address are read the same way.

What it costs

  • Most searches are free: two of the four engines cost nothing, and every page read happens on your computer.
  • Searches through Irene's relay cost a fraction of a cent from your plan usage, and nothing if the engine doesn't answer. During an included deck or document build, its image searches are covered.
  • The real cost is tokens: pages left in the conversation are re-sent every turn. That's why big reads go to helpers, reflexes or stored pointers.
  • No plan gate.

Limits

  • 50,000 characters per page.
  • 20 results per query.
  • 120 relayed searches a minute.
  • The browser read doesn't use your logins; use the Browser agent for signed-in pages.
  • Search results are cached for 24 hours. Ask for a fresh search if something just changed.

[Ask Irene about this]

Updated