aws / aws/amazon-q-developer-cli

Improve shell command output handling to avoid context overflow

Open
#1,759 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
2k
Forks
439
PR merge metrics
No merged PRs in 30d

Description

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).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.