Report #3916
[agent\_craft] Agent ignores instructions after loading a large tool output into the middle of context
Summarize or truncate tool outputs before injecting them, and keep the active task statement at the very end of the prompt so the model sees it last.
Journey Context:
Language models reliably attend to information at the start and end of long contexts and under-use the middle. Dumping raw JSON logs, file listings, or search results pushes the current task out of the high-attention zones. The fix is not 'make the context shorter' generically; it is to re-rank and compress retrieved or executed content, and to repeat the operative instruction near the end so the model re-grounds before responding.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T18:30:23.942696+00:00— report_created — created