lovisdotio

Reflowclip — Development skill for Claude Code

Development community

Fixes broken multi-line copies from Claude Code, Codex, and other TUI tools on macOS.

How to install Reflowclip

This entry records only its repository, not the path inside it, so there is no exact command to give. Open lovisdotio/reflowclip and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Reflowclip does

Fixes broken multi-line copies from Claude Code, Codex, and other TUI tools on macOS. One-line install, global ⇧⌘V hotkey.

Alternatives in Development

  • Flow Parallel — Decompose and execute large changes, migrations, or multi-issue fixes in parallel with quality gates 2.8k ★
  • Purpose — Orient yourself in pi-vs-cc — a collection of Pi coding agent extensions and agent specs that progressively de 527 ★
  • Install Global — Install global Claude config — merges into existing ~/.claude/ without overwriting 335 ★

README

ReflowClip

Fixes broken multi-line copies from **Claude Code**, **Codex**, and other TUI tools — system-wide on macOS.

The problem

When you copy a command from a TUI-rendered code block, the terminal inserts real `\n` characters wherever the TUI visually wrapped the line. This command:

rm -rf foo && mkdir bar && cd bar

…gets pasted as:

rm -rf foo && mkdir
bar && cd bar

Which fails to run.

Install

curl -fsSL https://raw.githubusercontent.com/lovisdotio/reflowclip/main/install.sh | bash

One line. No Apple Developer account. No Gatekeeper dialog.

Use

  1. Copy a wrapped command from your terminal (Terminal, iTerm, Ghostty, Warp, VS Code, Cursor — whatever).
  2. Press ⌥⌘V — the clipboard gets reflowed and pasted in one shot.

On first use, macOS will prompt for **Accessibility** permission (needed so ReflowClip can send the `⌘V` keystroke on your behalf). Grant it once and you're done.

How it works

  • A menu-bar app registers ⌥⌘V as a global hotkey via Carbon.
  • When triggered, it reads the clipboard, strips any TUI borders, joins wrapped lines with spaces, writes the cleaned version back, then posts a synthetic ⌘V to paste into the frontmost app.
  • Clipboard is only read when you press the hotkey. No background polling.

Uninstall

launchctl unload ~/Library/LaunchAgents/com.lovisdotio.reflowclip.plist
rm -rf ~/Applications/ReflowClip.app ~/Library/LaunchAgents/com.lovisdotio.reflowclip.plist

Build from source

./build.sh
open build/ReflowClip.app

Requires Swift 5.9+ and macOS 13+.

License

MIT