All tools

$ open tools/codearia-sieve

MCP server· Development· AutomationEditor’s pick

codearia-sieve

An open-source parser that prepares a page for a judge rather than a reader: dates as dates, numbers with units, chunks sized to a decision model's window, and the token bill before and after. MCP server and library, MIT, no model and no key.

Today the agent fetches the page and the model does the cleaning: 53 718 tokens. With codearia-sieve one call returns ready state at 1 106 tokens, and the model only decides.
Eight steps from a URL or HTML to state: fetch, parse, dates and ids from the untouched tree, clean, blocks, facts and anchors, chunk, assemble. A model is needed only on the optional select step.
The chain: you give Claude Code a rule in plain words, it calls sieve_page, hands the state to Jev through jev-mcp as a typed question, gets scores with probabilities and writes it up. Sieve prepares, Jev judges, Claude writes.

Checked by us· Sep 22, 2026

On 21 September 2026 we ran 56 random pages in nine languages: the median page shrank from 53 718 to 1 106 tokens, the mean saving was 91.3 %, 3.5 s at the 90th percentile. The output then went to Jev: 11 of 11 extracted facts verified automatically at a confidence of 0.86 to 1.0, 6 of 6 page types classified correctly. The same 50 pages as raw HTML would cost about $8.60 in Sonnet and about $43 in Opus.

In numbers

98,5 %
median token saving
$0,002
for 50 pages judged by Jev
1,1 с
per page at the median
50 / 56
pages usable

What it is

An agent that needs a web page fetches the whole thing: navigation, cookie banner, footer, ad slots and a megabyte of framework markup. Then a model paid per token digs through the pile for one paragraph. codearia-sieve does the digging before the model sees anything and returns the page as state rather than prose: "Published September 15, 2026" becomes "2026-09-15", and every chunk knows its size in tokens and the #anchor where an answer can be checked.

The difference from "page to markdown" tools is who the output is for. They prepare input for a reader; this one prepares input for a judge: cheap decision models like Jev, which do not write but classify and score. Such models cannot count, read dates as strings and lose accuracy as irrelevant material fills the context, so all the preparation is done by ordinary code, with no model and no API key.

How it works

  1. 01stateDates arrive as dates, "$42 per billion tokens" as { value: 42, unit: "USD_per_billion" }, and the text is cut into chunks with a token size and an anchor on the page.
  2. 02fetch → assembleno modelEight steps of ordinary code: the same HTML gives the same JSON, and 69 tests run offline.
  3. 03warningsExpected failures do not throw, they come back as named warnings: robots-disallowed, blocked, http-error, paywall, empty-without-js, thin-content, block-split, facts-capped.
  4. 04npx -y codearia-sieveMCPOne line installs the MCP server in Claude Code or Cursor with two tools, sieve_page and sieve_chunk.
  5. 05npm i codearia-sievelibraryThe same parser comes into your own code as a library.

Know before installing

  • Front pages and listings give you headlines and thin-content only.
  • Articles rendered by JavaScript come back as empty-without-js.
  • A pricing grid does not know which plan column a number sits under, and the parser does not guess. All of these limits are written in the README.

Comments

$ ls articles/ --same-topic

Also read

$ ls tools/ --like=codearia-sieve

Similar tools

All tools