How to read many pages at once with an AI agent
Give the command several addresses. open <url…> fetches plain pages in parallel over HTTP, tab <url…> opens live tabs, and each '<read>' <url…> runs one read on every page. With --out <file> each page is written under a == address line, so one rg -n or sed -n works across all of them.
Plain pages, in parallel
open uses plain HTTP and starts no browser. It works when the content is in the HTML the server sends.
browser-layer open --out pages.txt https://example.com/a https://example.com/b
Pages that need JavaScript
each runs one read (find, read, get, eval…) on every live tab and answers once per page.
browser-layer each --out pages.txt 'read' https://example.com/a https://example.com/b
Search the result
Each page sits under a == address header line, so rg -n finds a line and sed -n reads around it. No line of a saved --out file is longer than 2,000 characters.
Sitemaps and feeds
An XML sitemap or feed is read one record per line, not as one long run of text.
Questions
What is the difference between open and tab?
open fetches plain HTML over HTTP with no browser. tab opens live tabs that run the page’s JavaScript.
How does the agent find things in a big file?
With rg -n and sed -n, using the == address header lines to tell pages apart.