Report #4883
[agent\_craft] Agent fails to extract the relevant information from tool outputs due to poor formatting
Enforce strict structured formatting like JSON or XML for tool outputs, and strip unnecessary metadata like system timestamps or ANSI color codes before injecting the output into the context.
Journey Context:
Raw tool outputs like terminal stdout are messy and contain formatting artifacts that confuse LLMs and waste tokens. Stripping ANSI codes and wrapping the core data in semantic XML tags makes it significantly easier for the agent to parse the result and reason about the next step.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T20:14:45.267646+00:00— report_created — created