logoalt Hacker News

tobyhinloopenyesterday at 8:01 PM2 repliesview on HN

I have a tool wrapper that captures the output of anything and allows the LLM to query it later, to save on tokens. It “smartly” truncates the output (basically like Node’s util.inspect) and allows the LLM to expand truncated content.

It basically is called like “capture some-cli” and it… captures the CLI output, outputting a subset of it + a handle to continue querying.

This for me solves the danger of a tool returning tons of content.


Replies

layer8yesterday at 8:05 PM

> captures the output of anything and allows the LLM to query it later

Otherwise known as a “file”. ;)

dezgegyesterday at 8:17 PM

Don't most harnesses already do that for bash commands?