What I want is a version of `/clear` that keeps the conversation but drops out things like bloated logs, error traces, etc that were only relevant in the immediate local context.

I guess compacting somewhat does that but I want something more explicitly that trims out these extremely bloated artefacts while maintaining in full the actual conversation history.

Create a skill for this that you can invoke a new session in referencing your previous session id. Your instructions here read clear enough it seems to create it. Though a handover skill with this kind of behaviour in the same session might be more economical given the cache materials is already there.

Wouldn't that context with gaps where the output should be confuse the agent too much? At the very least they should be replaced with an explanation that sections were redacted. Otherwise I am imagining the agent will think the commando failed or it won't know how it fixed something.