Report #84098
[agent\_craft] Agent loses coherence when tool returns massive output \(e.g., 10k line log file\)
Implement pagination markers in tool wrapper: return first 50 lines \+ summary stats \+ truncated flag, with explicit pagination tool or read offset parameter for subsequent calls
Journey Context:
Dumping 10k tokens of logs into context overwhelms the agent and pushes out other relevant context. Always truncate aggressively \(100-200 lines\) and provide metadata \(line count, error count, timestamp range\). Provide a separate tool read\_log\_tail or offset-based reading for progressive exploration.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T23:44:57.342722+00:00— report_created — created