Show HN: Fit large JSON tool results into an LLM's context without losing data
Category: ai-ml
Tags: llm, agents, json, context-window, python, tooling
Score: 6.5/10 (Innovation: 6, Technical: 6, Documentation: 8, Utility: 6)
A Python library that reduces large JSON tool results to fit an LLM's context window by selecting fields, dropping wide fields, and trimming on whole-item boundaries while annotating what was omitted. It addresses a real and under-served failure mode (silent mid-object truncation causing incorrect agent behavior) with a deterministic, transparent approach and honest metadata.
Target audience: AI/agent developers, backend engineers building LLM tool loops
Repository: https://github.com/AryabhattaLabs/agent-tool-result-reducer · Python · MIT · 3 stars
View on Hacker News