Shrink a long conversation to save tokens

slash commands

// what it does

/compress replaces the full chat history with a model-generated summary, freeing context space while keeping the gist of what happened. Reach for it when /stats shows the context filling up or when the agent starts forgetting earlier decisions. The session continues from the summary.

// shell

$ /compress

// gotcha

Compression is lossy — exact quotes, file contents, and fine detail from earlier turns can vanish from the summary. Re-attach anything critical with @ afterward rather than trusting it survived.

// resources