Summarize or compact older turns once the context approaches its limit, keeping decisions, open questions and key identifiers.
Offload to external state: a scratchpad or notes file the agent writes to and reads back, with a task list recording the plan and progress.
Delegate to sub-agents with fresh, narrow context and have them return concise results, and retrieve only relevant memories and tool definitions instead of loading everything.
Trim bulky tool outputs, since long contexts raise cost, slow responses and degrade accuracy (context rot).
Loading…