HackerTrans
TopNewTrendsCommentsPastAskShowJobs

loumaciel

no profile record

Submissions

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

github.com
10 points·by loumaciel·4개월 전·1 comments

comments

loumaciel
·3개월 전·discuss
It becomes the only MCP. All other MCPs are registered within the tool.
loumaciel
·3개월 전·discuss
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개월 전·discuss
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개월 전·discuss
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.