I noticed GPT-6 Astra was good at identifying when it had finished a phase and no longer needed the raw tool output, so I built a Codex patch that lets it request compaction itself.
The model writes a checkpoint with the relevant decisions, constraints and next steps. The patch runs native compaction, carries that checkpoint forward verbatim, and resumes the task.