Skip to content
BENIBIX Learn

Context, Recap and Copy

Level 2 · Inside a conversation

How to see what fills the context window, set when it compacts, and ask aside with /btw. Then how to get answers out with /recap, /copy and /export.

Course contentsLesson 5 of 17

After this lesson you can

  • Read the /context grid
  • Ask a side question that stays out of the chat
  • Copy one code block from a reply

11 mincovers 8 glossary entries

Worth reading first: Resume, Branch and Rename

How to see what fills the chat, and get answers out of it

Everything Claude reads in a session sits in its context window, which is counted in tokens. /context draws it as a grid of colored squares: Claude Code's own instructions, tools, memory files, skills and the messages so far. Pass all to see each item. When the chat goes past the limit, it says by how much and which command frees space.

Claude Code compacts the chat on its own when it gets full. It sums up the older part so work can go on. /autocompact sets how full the window gets first. Pass a size in tokens, or auto to go back to the size tuned for your model. The value is saved for later sessions too.

/btw asks a side question without adding it to the chat. Claude answers from what is already in context, so it cannot read a file or run a command for it. You can ask while Claude is still working, and the main task goes on. The answer shows in a box over the chat, then goes away.

That makes /btw cheap and safe. A question such as what was that config file called costs little, and it leaves no trace in the history. The next thing Claude writes is not steered by it. If the answer needs real work, press f to hand the question to a helper instead.

/recap writes a one-line summary of the session, never over 400 characters. Claude Code also shows one on its own when you come back after at least three minutes away, once the session has three turns. Turn that one off in /config. Run /recap by hand when you want one now.

/copy puts Claude's last reply on your clipboard, and /copy 2 takes the one before. When a reply has code blocks, a picker lets you take one block or the whole reply. Press w in the picker to write it to a file. Over SSH, where the clipboard may not reach your computer, that is the way out.

/export saves the whole chat as plain text. Give it a file name and it writes that file. Without one, a box lets you copy it or save it. The text is the chat as you read it. It is not the session file Claude Code keeps for itself, so it cannot be resumed.

console
/context all
/autocompact 500k
/btw what was that config file called?
/copy 2
/export login-fix.txt
See the full grid and move the compact line. Ask aside, copy an old reply, and save the chat as text.
A side question reads the chat but never joins it.

Worked example

Jack checks a file name mid-task

Jack is 25 minutes into a refactor when he forgets which file holds the routes. He types /btw where are the routes? and gets the answer in 2 seconds.

Claude's refactor never stops. Later, /context shows the chat at 70 percent full, with no trace of his question in it.

The words for this lesson8

Check yourself

What can Claude use to answer a /btw question?

Finished this lesson?

Marking it complete also marks its 8 glossary entries learned, which updates your roadmap and your saved page. 0 are already marked.