Efficient web tools for agents using Jev
We put Jev between agents and the web to rank search results, find useful page chunks and cut the cost of research runs.
We put Jev, TypeSafe's System One model, between our agents and the web, on search, fetch and browsing. We built it for Parallel, the search provider behind Grep (AgentRun's web tools support Firecrawl and Exa as well). On our hardest benchmark it cut the cost of a run 12%, for $0.0014 a task, with no accuracy difference we could measure.
We've built deep research agents at Parcha since 2023, and most of what they do is search and read. In AgentRun we built our own web_search and web_fetch instead of relying on each harness's. Every example and number here uses Parallel.
That was fine one agent at a time. Then customers started running swarms of hundreds of thousands of agents, each doing tens to hundreds of searches and fetches. At that scale every token counts.
Every token stays in context
Whatever a web tool returns stays in the agent's context for the rest of the run. A search drops ten results of a few thousand characters each, and search snippets alone are 65 to 98% of the web tokens in our runs. A plain fetch pulls in the top of a raw page, menus and all. Before Jev, the agent sorted through all of it over a turn or two, and paid for those tokens again on every later turn. Cached tokens cost less, but they still cost.
Ranking search results
Jev answers typed questions with probabilities: yes or no, a choice, a score. We use it all over AgentRun for routing, categorizing and judging. Which search result holds the answer is that kind of question.
A search call usually gives the provider very little to go on. Parallel takes an objective of up to 5,000 characters and keyword queries of three to six words, and agents usually write one sentence. For that input it does a good job. In this search from our benchmark, the agent wanted the date Bridgerton premiered and sent "Bridgeton series premiere date". Parallel put a page about Season 5's premiere first, which fits those keywords.
Jev can read far more. We send it the objective and all eight full results, 5,020 tokens, and ask how likely each one is to hold what the search needs. The pages that give the December 25 premiere come out on top, and Season 5 drops to last at 0.15.
I expected filtering to win, but ranking did. Dropping low-scored results cut only 4 to 10% of search tokens, because Jev scores most results high. So the agent gets every result, most relevant first with its score, and decides what's worth fetching. On FRAMES, the top result held the answer 90.5% of the time in Jev's order, against 80.9% in the provider's. When the agent got a Seal-0 question right, the page it cited or fetched was in Jev's top three 106 of 117 times.
That search used a sliver of what Jev can read. Jev takes 64,000 tokens in a request, and 262,000 with long context. Today the shipped tools rank against the agent's one-sentence objective. With that much room, we can ask Parallel for many more results and rank them against the user's request, the agent's task and what it has already found. Then only the few that matter reach the agent's context. The library already takes the agent's whole task, and we haven't measured that setup yet.
Eight chunks out of a page
Fetch was the part I was most skeptical about, and it ended up my favorite. Handing an agent pieces of a page seemed like a good way to lose context it needed. When the agent fetches with an objective, Jev scores every chunk of about 1,000 characters across the whole page. The agent gets the top 8, in page order, each with its offset and score, and can read on from any offset.
For any one question, a raw page is mostly trash. In one FRAMES task the agent needed Albertville's population in 1968 and fetched the French Wikipedia page, 209,145 characters. A plain fetch returns the first 19,326: menus, the table of contents, the article's title in 81 languages, page tools and an infobox. That's 11,061 tokens, and the only population in them is 2023's, a number that looks like an answer.
Jev found the census table at character 106,017. It scored all 190 chunks against "Population 1968". The chunks a plain fetch returns scored 0.02 to 0.25, and the census table scored 0.98. The agent read 2,666 tokens and answered 15,739, the right number.
Across long pages, Jev's 8 chunks held the answer 89.4% of the time, against 58.1% for the page's first part, in about a third of the text. When the first part already had the answer, Jev's chunks missed it 7.1 points more often. The agent can always read the first part with a plain fetch.
The results
Jev is on by default when AgentRun has a TypeSafe key, pinned to jev-1.14.0, the version we set our thresholds on. We ran the shipped tools with and without it on Seal-0, FRAMES and SimpleQA-Verified: Claude Sonnet 5.5 as the agent, Parallel for search and fetch, 25 turns, 5 seeds and an agentic judge. That's 4,610 runs.
The harder the set, the more Jev saves. It cut web tokens 15% on Seal-0 and 11% on FRAMES. SimpleQA-Verified barely fetches a page, so there was little to cut. Accuracy moved −1.6, −0.5 and −0.3 points, all within the noise.
Jev's fee was about 1.5% of a Seal-0 run, and it didn't slow anything down: the median run took 11.8 seconds with Jev and 12.0 without.
Beyond search and fetch
Browsing wastes tokens in its own ways, and Jev helps there too. A browsing agent reads a CAPTCHA as if it were the page, pulls a whole page into context to find one field, and can click a button that places an order. We ran into all three building agents that research merchants for one of our payments customers. Now Jev asks a question at each point.
Every page the agent opens gets one Jev request: is this the content, or a wall? Before, a page that came back with status 200 counted as a success, so a CAPTCHA could end up cited as evidence. Now a wall comes back as a failure with a next step, like relaunching a verified browser or trying another source.
The same request checks whether the page carries a prompt injection. We tested that question on 300 real pages from a research run. None scored 0.5 or more, and three pages we planted instructions in scored 0.97 to 0.99. All 300 took 55 seconds and about 3 cents.
Inside the browser, find works like fetch. Jev scores chunks of the page against what the agent asked for, and the agent reads the ones that answer.
Before a request that could change something goes out, Jev asks whether it would place an order, pay, send a message, submit a form or delete something. Tracking beacons and lookups go through. Anything that could be irreversible waits on the run's policy, which allows it, denies it or asks a person. Jev sees the method, the address and the form field names, never what was typed.
The furthest we've taken it is an agent that finds every payment method a store takes. On allbirds.com it took 37 screenshots in under six minutes, for $0.86. Jev scored each one, 0.01 to 0.03 without a payment method and 0.99 to 1.00 with one, so Gemini read only the screens that mattered. All three runs found the 14 methods we counted by hand, for about 10 cents and two minutes on top of the browse. I wrote it up in System 1 and System 2.
Every cent counts
Search, fetch and browsing come down to the same question: which part of what the agent just got is worth keeping. Jev answers it before the tokens reach the agent. For one agent that saves a cent or two. For a swarm of 100,000 it's real money, and for one of our customers it was the difference between worrying about the bill and being happy with the results.
The web package is open source as @parcha/agentrun-web. Thanks to the TypeSafe team for building Jev. If your agents live on the web, start with Jev's docs.





