logoalt Hacker News

vorticalboxtoday at 9:32 AM3 repliesview on HN

could we not instruct the LLM to run build commands in a sub agents which could then just return a summary of what happened?

this avoids having to update everything to support LLM=true and keep your current context window free of noise.


Replies

vidarhtoday at 9:53 AM

Make (or whatever) targets that direct output to file and returns a subset have helped me quite a bit. Then wrap that in an agent that also knows how and when to return cached and filtered data from the output vs. rerunning. Fewer tokens spent reading output details that usually won't matter, coupled with less context pollution in the main agent from figuring out what to do.

cantotoday at 9:44 AM

q() { local output output=$("$@" 2>&1) local ec=$? echo "$output" | tail -5 return $ec }

There :)

dizzy3ggtoday at 9:35 AM

That would achieve 1 of the 3 wins.

show 2 replies