Claude Code's /copy puts the last response on the clipboard
Claude Code has a built-in /copy command that copies the last assistant response to the clipboard. I had a custom /md command for that instead. It told Claude to repeat its last response word for word inside one fenced code block, so the terminal showed the Markdown source and I could paste it into GitLab. That meant paying for every response twice (and nothing stopped Claude from shortening a long one on the second pass).
I only found out because I asked Claude to review /md, and the first finding was that /copy probably does the same thing. I tried it, it did, and I deleted the command.
/copy 2 copies the second-to-last response. When a response has code blocks or blockquotes, /copy opens a picker for a single block or the whole response, and w in the picker writes the selection to a file instead of the clipboard.
Over SSH, /copy sends the text to your terminal as an OSC 52 escape sequence, and the terminal decides whether to put it on the clipboard (the troubleshooting docs name some that don’t).