SMC Reader
Intercept large tool outputs and spill them to disk to preserve agent context windows while pulling only necessary lines on demand.
SMC Reader optimizes LLM agent context efficiency by intercepting large tool and command outputs—such as verbose test logs, build output, and web fetches—before they reach the primary model. Instead of overwhelming the context window with thousands of lines of noise, it saves the output to disk and supplies the agent with a concise pointer containing head and tail previews. The agent can then pull exact line ranges directly from disk without language model overhead or invoke a lightweight model session to extract verbatim answers to specific questions, drastically reducing token consumption and session costs.
Key Features
01Disk-backed output storage that replaces large returns with lightweight structural pointers
020 GitHub stars
03Automatic output interception for tools like Bash and WebFetch exceeding configurable size thresholds
04Direct disk inspection via line-based peeking without consuming additional model tokens
05Targeted extraction using lightweight subagent queries to answer questions from intercepted text
06Automated document lifecycle management featuring LRU eviction, session isolation, and 48-hour expiration
Use Cases
01Filtering massive test logs and build runs in automated software development sessions
02Navigating noisy terminal commands like recursive grep or git log without exhausting context limits
03Extracting targeted answers from large scraped web pages and API responses