amazon-q-developer-cli icon indicating copy to clipboard operation
amazon-q-developer-cli copied to clipboard

Improve shell command output handling to avoid context overflow

Open evanliu048 opened this issue 1 year ago • 0 comments

When invoking shell commands (e.g. build), the tool often produces a very long output, which can easily blow the LLM’s context window during evaluation or downstream reasoning.

Proposal: Let the LLM decide how much of the output to read: Either full output (if needed for context), Or just the last N lines (e.g., tail 20), Or allow tool to summarize the output (e.g., by heuristics or patterns).

evanliu048 avatar May 09 '25 21:05 evanliu048