Free up context in a long chat

slash commands & shortcuts

// what it does

As a chat grows, /compact summarizes the history into a shorter form to reclaim context window while keeping the thread going. /new starts a fresh chat in the same CLI session, and /clear wipes the screen and starts over. /side (or /btw) opens a throwaway side chat.

// shell

$ /compact
$ /new
$ /clear

// gotcha

/compact is lossy — it summarizes, so fine details from early in the chat can be dropped. /clear discards the conversation entirely, so use /compact when you still want to continue.

// resources