The story’s score and claims

Comments on No. 119 of 128 · GitHub · edition of Wednesday 25 November 2026

Fit large JSON tool results into an LLM's context without losing data

Summary

A zero-dependency Python library, agent-tool-result-reducer, shrinks large JSON tool responses to a character budget for LLM agents. It selects fields, drops the widest ones, and cuts only on whole-item boundaries, then tells the model in a _meta block exactly what was included and omitted, so partial results cannot be mistaken…

Comments

Ranked by a public rubric, not by votes: what a comment adds counts, not who wrote it. How comments are ranked · Comment rules