Loading...
Summarize the conversation so far.Summarize the conversation for continuing the task. Keep:
- the goal and constraints
- decisions made and why
- files changed and open tasks
- exact file paths and error messages, verbatimA structured compaction prompt keeps the goal, decisions and exact values that a generic summary often drops.
Truncation drops the oldest messages entirely. Compaction replaces them with a summary, so key facts survive in shorter form.
The summary left out details it needed. Keep important rules in persistent instructions or notes files, not only in the conversation.
Many coding agents offer a command to compact on demand, which helps at natural breakpoints, such as after finishing a subtask.