Selecting text in a terminal with the mouse and hoping it stops at the right line is a small daily misery.
/copy puts Claude's last response on the clipboard. Give it a number and you get an older one: /copy 2 is the second-to-last.
/copy 2
When the answer has code blocks, an interactive picker lets you take one block or the whole response. Press w in the picker and the selection goes to a file instead of the clipboard.
That w is the useful part over SSH, where the clipboard in your terminal often is not the clipboard on your laptop. I would write to a file and fetch it.
Plain selection fails on long code blocks, wrapped lines and indentation that comes out slightly wrong. The picker knows where the blocks start and end, so you get the text as Claude wrote it.
The caveat is only that the number counts responses, not code blocks. Block choice happens in the picker.
Further reading: Commands – Claude Code docs, On this site: /context shows what is eating your Claude Code context window, On this site: /statusline builds you a status bar with context usage in it