HackerTrans
トップ新着トレンドコメント過去質問紹介求人

loumaciel

no profile record

投稿

Show HN: Keep large tool output out of LLM context: 3x accuracy 95% fewer tokens

github.com
10 ポイント·投稿者 loumaciel·4 か月前·1 コメント

コメント

loumaciel
·3 か月前·議論
It becomes the only MCP. All other MCPs are registered within the tool.
loumaciel
·3 か月前·議論
You can make MCP tools work for any type of data by using a proxy like https://github.com/lourencomaciel/sift-gateway/.

It saves the payloads into SQLite, maps them, and exposes tools for the model to run python against them. Works very well.
loumaciel
·4 か月前·議論
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. When the model needs something from the data, it runs a tiny Python query against the stored artifact instead of reasoning over thousands of tokens of JSON. In benchmarks across 103 questions on real datasets, this approach cut input tokens by ~95% and improved answer accuracy from ~33% to ~99%. Repo: https://github.com/lourencomaciel/sift-gateway.
loumaciel
·4 か月前·議論
Happy to answer questions about the sandboxing, artifact format, or the benchmark setup.

The benchmark harness and datasets are in the repo if anyone wants to reproduce or extend the tests. Curious if others have run into the same context compaction issues with tool-heavy agents.