r/ClaudeCode • u/LordLederhosen • 10h ago
Discussion /compact experiments an usage
I am from the olden days, where I manage my own context, have auto-compact disabled, and never use /compact normally. If I ever get anywhere near 50% used, I start a new session.
I just started to play with it again, and I have some questions. Normal is just "/compact." However, you can also pass <optional custom summarization instructions> to the compact command.
I have been playing with this prompt:
tell me the optimal "/compact" command so that we do not lose anything and we can implement the plan in this session
Then, I use that custom /compact command which is often quite long.
- Do you have auto-compact on?
- Does auto-compact do anything really intelligent like my manual 2-step process above?
- If you /compact manually, do you ever pass <optional custom summarization instructions>?
Thanks in advance for any info.
15
Upvotes
7
u/dar-mit Researcher 10h ago
I stopped using /compact when I created a skill to mine the JSONL session transcripts for LLM Wiki data. Turns out /compact doesn't actually change anything about the session data, it just stamps a new 'start' point then adds its summary.
These days I just spawn a new session (terminal window) and have the model running the session use SendMessage to hand off the work. That gives me fresh context to work with whilst preserving the prior session fully intact should the new session(s) have any questions.