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.
q() { local output output=$("$@" 2>&1) local ec=$? echo "$output" | tail -5 return $ec }
There :)
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.