Shows when to use planning, summarization and fresh-task handoffs to keep an AgentA system in which a model repeatedly chooses operations, a harness carries them out, and the results return to the model to inform its next choice.Full definition →'s Context and context windowContext is the information available for a generation; the context window is the capacity available to hold it.Full definition → on-task over long sessions. The patterns transfer to other coding agents.
Key takeaways · AI-distilled
When a request needs rewriting, Cline recommends editing the message that sent the task off course and choosing Restore Chat (keep workspace StateInformation describing a system at a particular moment, such as its current text, settings or saved records.Full definition →) or Restore All (rewind files and chat), not arguing with a polluted thread.
/smol (or /compact) condenses history in place within the same task, a manual Auto Compact, while /newtask packages the plan, decisions, relevant files and next steps into a fresh task for a clean handoff.
Cline says the Focus Chain todo list persists through Auto Compact summarizations, so progress stays anchored after history is replaced; its reminder cadence defaults to every 6 messages and is configurable.
For multi-day or multi-person work, Cline recommends keeping a Memory Bank of Markdown files such as activeContext.md and progress.md current, then starting the next SessionOne conversation or piece of work as a harness keeps it: a record of messages, tool calls and observations that can be saved and resumed.Full definition → with /newtask.
Terms in this piece · Glossary
Context and context window — Context is the information available for a generation; the context window is the capacity available to hold it.
Agent — A system in which a model repeatedly chooses operations, a harness carries them out, and the results return to the model to inform its next choice.
State — Information describing a system at a particular moment, such as its current text, settings or saved records.
Session — One conversation or piece of work as a harness keeps it: a record of messages, tool calls and observations that can be saved and resumed.