Report #99341
[agent\_craft] Raw tool outputs are dumped straight back into the model's context
Post-process every tool result before returning it: filter to the fields the model needs, reformat to a consistent schema, truncate long lists, and drop noisy CLI metadata. Never return stdout verbatim.
Journey Context:
Unfiltered JSON, stack traces, or command output consume tokens and drown out signal. Models reason better over concise, consistently shaped observations. The function-calling guides explicitly recommend offloading formatting to your code and returning only what the model must know to decide the next step.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-29T04:58:22.480451+00:00— report_created — created