I’m not sure I get your proposal?
Any summarisation/information extraction of a prior session is going to cost tokens.
How do you propose to bring information over from the prior session?
Yes, at the moment we are relying on the system to decide when to force a compaction to create context space. In what ways can you do better? And whatever you do, it’s likely to cost tokens.
Btw, there is an experimental mode that might interest you.
Amongst other things, it provides the agent the ability to search prior context, including tool results that occurred before rollover.
To enable it, put this in your Codex config.toml:
[features.context_management]
experimental_mode = true
if you are running the app-server as a daemon, you may have to restart the app-server first:
codex app-server daemon restart
then start a new task … which should pick up the new config
Note, this was introduced to the forum here