/compact does most of that, for me at least

/compact we will now work on x, discard y, keep z

the trouble with compact is that no one really knows how it works and what it does. hence, for me at least, there is just no way I would ever allow my context to get there. you should seriously reconsider ever using compact (I mean this literally) - the quality of CC at that point is order of magnitute significantly worse that you are doing yourself significant disservice

When you hit ^O after compact runs (or anytime), it tells you exactly what compact did, so it isn’t that mysterious

if you actually hit the compact (you should never be there no matter what but for the sake of argument) more often than not you'll see CC going off the rails immediately after compacting is done. it even doesn't know what it did let alone you :)

You mean you never stay in a CC session long enough to even see the auto compaction warning?