Introducing Despacer: Copy. Paste. In One Piece.
Description and use
Despacer fixes line breaks in commands copied from AI tools, enabling safe pasting into macOS terminals.
Problem
Copying multiline commands from AI tools often results in broken line breaks that break the command when pasted into a terminal.
Outcome
Despacer enables developers to copy multiline shell commands from AI tools and paste them into a terminal without syntax errors caused by line breaks.
Workflow
- Copy the multiline command from the AI tool.
- Paste the command into the Despacer app via the macOS menu bar.
- Despacer removes unwanted line breaks and reconstructs the original command.
- Paste the repaired command into the terminal and execute it.
- If the repair is incorrect, use "Undo Last Fix" to revert to the original copy.
Evidence
I got tired of copying a command from Claude Code or Codex, pasting it into my terminal, and watching it fall apart. Those line breaks aren’t just visual wrapping. They come along for the ride.
So I built Despacer: a tiny Mac menu bar app that puts wrapped commands back together. Copy and paste the way you already do. It repairs the breaks and can recover the original text from your local agent session history.
It’s free and open source under the MIT license. No network access, no analytics, no data collected. And if a repair misses the mark, Undo Last Fix brings your original copy back.
Despacer runs on macOS 14 Sonoma or later. For now, you install it by building from source; the README has the steps.
- Record date: 2026-10-23T18:26:10.432Z