MMatt Senter
nowprojectsaboutconnectblog

← projects

Despacer

CreatormacOS · Open sourcegithub.com/MattSenter/despacer

I spend my days working alongside Claude Code and Codex in the terminal, and both wrap long lines themselves. Instead of letting the terminal wrap a long command, they print real line breaks and a two-space indent into it. So when I copied a command to run it, it pasted in broken pieces and did not run.

Despacer is a tiny menu bar app that fixes that. With it running, you copy a command from your terminal the way you always do, and it pastes as the one command it was meant to be. It is free and open source.

View on GitHub ↗
Despacer, the Mac menu bar app that pastes long commands copied from Claude Code and Codex in one piece: its app icon

Copy and paste the way you already do

There is nothing new to learn. Select a command in your terminal, press Cmd+C, and paste it wherever it is going. By the time you paste, usually within a few hundredths of a second, Despacer has already put it back together.

  • Copies from a terminal are checked and fixed if they need it.
  • Copies from any other app are never looked at.
  • Text that was never broken, like a short command or ordinary terminal output, is left exactly as it was.
  • If a fix is ever not what you wanted, Undo Last Fix in the menu bar puts your copy back exactly as you copied it.

Exact match first, wrap rules as the backup

The terminal never sees the agent’s original line endings, so no terminal setting can undo the damage. Despacer repairs a copy in two steps. First, instantly, it removes the indent and rejoins every line break that wrapping caused, judging each break by whether the next word would have fit on the line above. Every other line break, and any line ending in a backslash, stays.

A moment later, it looks for the copied text, ignoring spaces and line breaks, in the session history Claude Code and Codex keep on your Mac. On a match, it puts the original command on the clipboard, exactly as the agent wrote it. The wrap rules get most commands right on their own; the exact match settles the ones that are impossible to tell apart, like a selection that starts in the middle of a line.

Works with the terminal you already use

Despacer knows Terminal, iTerm2, Ghostty, Warp, kitty, Alacritty, WezTerm, Hyper, Tabby, and Rio out of the box. You can add any other app you copy commands from, such as a code editor with a built-in terminal, and uncheck any you do not want it to watch. It only touches text you copy while one of those apps is in front.

No network, nothing kept

Despacer makes no network connections and has no account, analytics, or tracking. It reads the Claude Code and Codex session files on your Mac but never changes, copies, or uploads them, and you can turn that lookup off. Your last ten fixes stay in memory so you can undo them, and they are gone when Despacer quits.

Requirements and install

Despacer runs on macOS 14 Sonoma or later, is free under the MIT license, and speaks nine languages. For now you install it by building from source with a single script, which takes about a minute; the README on GitHub walks through it and covers every setting. The same fixing engine also works as a command line filter for scripts.

More on Despacer

  • Small, local software that does one thing
← All projectsView on GitHub ↗
© 2026 Matt Senter · Created by Matt Senter of SenternetMade with OrgabotDurham, NCBuilt for buildersaboutblogToolsPrivacyTerms
EnglishEspañol简体中文Français日本語PortuguêsDeutsch