I often want to copy the last output.
I couldn’t find a command to do that so I mark the relevant text and copy it (ctrl+c).
The issue with this approach is that every line receives two spaces at the beginning which comes from how the CLI renders the text but they shouldn’t be part of the text I copy.
Is there a way to copy output without these two spaces?
Yes, type /copy in the CLI. It opens a picker of earlier messages with the newest at the top, so pressing Enter on the first row copies the last reply as plain text, without the two-space indent. If that reply had several steps, a second list opens; pick “Last assistant message”. On Windows it copies through PowerShell, so there’s nothing extra to set up.
For one-off questions, agent -p "your prompt" | Set-Clipboard also gives you the answer without the indent.
Selecting text directly in the terminal will still pick up those spaces, since the CLI draws the margin with real space characters.