Managing long conversations within a window
description
Long-running agent sessions (like a Cowork session running for many turns) accumulate tool calls, tool results, and conversation turns that can approach the context window's limit well before the conversation is actually finished.
how it works
Strategies include summarizing or compacting older turns, dropping large intermediate tool outputs once they are no longer needed, and being selective about how much of a large file or dataset is read into context at once versus fetched incrementally.
source note
General agentic-session practice; consistent with this repo's own documented practice of scoping reads (e.g. Read tool offset/length) rather than loading entire large files.
provenance
created 2026-07-02 08:26:58 · JSON