Claude Code · Inside a session

Shrink a long conversation

Summarize the history to free up context. Add instructions about what to keep.

/compact keep the failing test names

Official Claude Code documentation

More inside a session commands

All inside a session commands · Claude Code cheatsheet

Was this page helpful?