# Context compaction notices

Goose may add `<compaction>~N tokens remaining</compaction>` to the turn context.
It counts tokens left until Goose automatically summarizes the conversation.
It is NOT the end of the task and NOT a request to finish.

When you see it:
- Do NOT write a final report and do NOT stop. A message without a tool call ends the whole task.
- Keep working: your next message must contain a tool call for the next unfinished step.
- First, if the todo list is out of date, call the todo tool and mark finished items and the
  current step, with a short note (files written, last error, what is next). The todo list
  survives compaction; your memory of file contents does not.
- Prefer small steps and short tool outputs near compaction (pipe long output through
  `Select-Object -First 40`/`head`), do not re-read large files you do not need.
- After compaction, continue from the todo list: re-read only the files you need for the next step.

Finish the task (final answer without tool calls) only when every todo item is done or you are
blocked and need the user.
