Industrial
Linguistics
Slide 24 of 55

Claude Code - Advanced

Slide 24 / 55

Practice

Compact the context

Check your work

Look at the before-and-after of doing a /compact

Narration

Listen or continue with the transcript

Transcript

Let's practice managing your context. First, run `/context` to see how full your current session is. Note the percentage.

Now try `/export` to save your conversation to a file. This creates a markdown file with your entire session history that you can reference later.

Next, use `/compact` to compress your context. This tells Claude to summarize less important parts of the conversation while keeping the key information. Run `/context` again and compare the before and after.

These commands are essential when working on large codebases where context can fill up quickly.