Runs a command, keeps every byte on disk, returns only the lines that matter
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
One-click editor setup isnβt available for this listing yet β we donβt have a confirmed install command, and weβd rather show nothing than point your editor at the wrong package or host. Follow the projectβs own setup instructions, linked above.
Runs your command, then gives the model only the lines that matter.
A test suite prints 4,000 lines and eleven of them are the failure. A build prints a progress bar that redraws 900 times. An install lists every package it touched. All of it lands in the context window, and β this is the part that costs β it is re-sent in full on every turn that follows.
sift is an MCP server and a command line for that problem. It runs the command
itself, keeps every byte on disk, and hands the model a view: the failures, the
summary, the lines a reader would actually stop on. The rest is marked, not
deleted.
Two numbers, both measured, both reproducible from this repository. Running this
project's own test suite prints 652 lines β 21,392 tokens, as the model's own
tokenizer counts them. What comes back is 8 lines and 208 tokens: 99% fewer
(python test/kazanc.py). Removing almost everything is the easy half. Over a
22-sample corpus of real build and test output, the default budget keeps 138
of the 140 lines a reader could not do without (python test/budget.py).
A file you did not produce β a log, a saved CI transcript, a crash dump β gets the same treatment without being run:
A list is not read in lines. A JSON array written for a machine often has no newlines at all, and there is nothing in a line of one worth choosing, so the record becomes the unit and the same rules hold:
The same question, asked about source code instead, is a table of contents:
And a command that does not end β a dev server, a log tail, a build you want to keep working during β is started and then read a slice at a time:
Nothing is shown twice, and the numbers are the run's own: line 247 stays line
247 in sift peek for as long as the capture exists.
A free model does. sift sends it the numbered lines and asks one question:
which numbers matter? It answers with numbers, and nothing else it says is
used β the text you read above is printed from the local capture, byte for byte.
That is the whole trick, and it is why this is not a summariser. A summariser
can be wrong about what a line said. sift cannot be: it never writes a line,
it only chooses one.
It also means language coverage is not a list. A model reads Turkish, Japanese, Arabic and Hindi; it reads Rust, COBOL, Mojo and a language released last week. Nothing here enumerates them, so nothing here can be missing one.
Nothing shown is invented. The judge returns line numbers. Text always comes from the local file.
Nothing is thrown away. sift peek <handle> returns the raw capture,
unchanged. Every gap in a view says how many lines it covers.
Nothing can break your command. No API key, no network, an overloaded endpoint, a nonsense reply, a bug in the distiller, or a decision that nothing may leave this machine β every one of these falls back to rules that need none of them. The command still runs; you still get its output; you get its exit code.
One thing: the text of a question. Before it is sent, anything credential-shaped is replaced β tokens with a known prefix, JWTs, authorization headers, passwords in connection strings, the body of a PEM block.
That costs you nothing to read. The model is only ever asked for line numbers, and the lines are printed from your own file, so a line masked on the way out is still shown to you in full.
Three switches:
Masking is not complete and does not claim to be: a bare secret shaped like
nothing in particular gets through. SIFT_NO_MODEL is the one that guarantees.
The fourth is a measured trade and is off by default. Asked which lines matter
in a 404-line build, the model writes about 900 tokens of reasoning to produce a
twelve-token answer, and you wait 15 seconds for it. At SIFT_EFFORT=low the
same question takes 2.4 seconds β and over the corpus it loses 7.8% of the lines
a reader could not do without, in exactly the places this tool exists for: a
mainframe job's return code, a crash loop's diagnosis. Speed is available; it is
not the default, and the price is written down.
The third is about not paying twice. An answer already given for exactly these
bytes and exactly this question is used again instead of bought again β and what
is kept is the numbers, never the view, so the text is still rendered from your
own file and the gap still names your own capture. A view that cost no request
says (remembered) where it would otherwise name the model.
Captured bytes never leave $SIFT_HOME (~/.cache/sift by default). Nothing is
uploaded, nothing is logged elsewhere, and removing a capture directory removes
everything that was ever kept about it.
One capture keeps at most a gigabyte. That is far past any real build log and
a few seconds of a command stuck in a loop, which is the case it exists for:
nothing is thrown away, and the disk somebody else needs is not filled either.
Reading never stops β a pipe nobody drains would stop the command, and that is
the one thing this will not do β so the command finishes, its exit code is its
own, and the footer says kept the first 1,073,741,824 bytes of it rather than
letting you believe you have the whole run. SIFT_MAX_CAPTURE=0 turns the
ceiling off for anyone who would rather have the disk.
They also never go away on their own. Nothing here sweeps, expires or tidies in
the background: sift gc [DAYS] is the only thing that deletes a capture, and
it deletes when you type it and not before. What it leaves is one line per
handle β when it went and how big it was, never the command β so that a gap
marker read a fortnight later gets "removed on the 8th" instead of the answer
it would give for a handle you made up.
A path of - reads standard input, which is the other way somebody else's
output turns up:
What arrives on a pipe has no path anybody could type again, so it is kept as a capture of its own and the gap marker names that instead. The second rule is why: a view that left lines out and pointed at a scratch file would be pointing at nothing by the time somebody read it.
Several paths given to digest are asked about at the same time, and --all
follows every running command in one go. Both are the same idea: the waiting is
the cost, so do it once. --wait N holds until a run actually says something
instead of answering that nothing has happened yet.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/sift)<a href="https://allmcps.com/mcp/sift"><img src="https://allmcps.com/api/badge/sift?style=directory" alt="Sift on AllMCPs" /></a>