← All projects
Project record1 mention
Originally shared on Hacker News

Sift

Sift is a drop-in gateway that makes LLM tool use more reliable when tools return large JSON payloads. It sits between the model and its tools (MCP, APIs, CLIs), stores the full payload locally as an artifact indexed in SQLite, and returns only a compact schema plus an artifact_id; when the model needs data, it runs a small Python query against the stored artifact instead of reasoning over thousands of tokens of JSON. Benchmarks across 103 questions on real datasets showed ~95% reduction in input tokens and accuracy improving from ~33% to ~99%.

Last shared
01 / The problem

What it addresses

Agents paste raw tool outputs directly into the prompt, which blows up context, causes truncation/compaction, and leads to incorrect answers once earlier results disappear.

02 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. Sift

    Sift is a drop-in gateway that makes LLM tool use more reliable when tools return large JSON payloads. It sits between the model and its tools (MCP, APIs, CLIs), stores the full payload locally as an artifact indexed in SQLite, and returns only a compact schema plus an artifact_id; when the model needs data, it runs a small Python query against the stored artifact instead of reasoning over thousands of tokens of JSON. Benchmarks across 103 questions on real datasets showed ~95% reduction in input tokens and accuracy improving from ~33% to ~99%.

    Problem: Agents paste raw tool outputs directly into the prompt, which blows up context, causes truncation/compaction, and leads to incorrect answers once earlier results disappear.

    Posted by @loumaciel · Original source ↗

    Source text · @loumaciel · · Source ↗

    I’m building Sift, a drop-in gateway that makes LLM tool use far more reliable when tools return large JSON payloads. The usual pattern is that agents paste raw tool outputs directly into the prompt, which quickly blows up context, causes truncation/compaction, and leads to incorrect answers once earlier results disappear. Sift sits between the model and its tools (MCP, APIs, CLIs), stores the full payload locally as an artifact (indexed in SQLite), and returns only a compact schema plus an artifact_id.