Skip to main content

Module execution

Module execution 

Source
Expand description

Execution result summarization

Summarizes bash and code execution outputs from full stdout/stderr into concise summaries suitable for LLM context.

§Strategy

Instead of sending full command output (potentially megabytes), send essential information:

  • Command executed
  • Exit code (success/failure)
  • First N lines of output
  • Last N lines of output
  • Total output size indicator

Target: ~150-250 tokens vs potentially thousands

Structs§

BashSummarizer
Summarizer for bash/shell execution results