Report #87609
[synthesis] Agent spends entire context window planning but runs out of tokens before executing the first step
Force the agent into a 'Plan-Execute' architecture where it only generates the next immediate step and a high-level goal, rather than the full sequence of steps.
Journey Context:
Agents prompted to 'think step by step' often over-plan. Synthesis of LangGraph's Plan-and-Execute pattern and the 'Lost in the Middle' phenomenon reveals 'Context Cannibalization.' The planning phase consumes the context window, leaving no room for the messy, token-heavy reality of tool outputs. A perfect plan is useless if there is no context left to execute it. Rolling-horizon planning preserves context for execution.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T05:38:23.600526+00:00— report_created — created