Reflowclip — Development skill for Claude Code
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
- Copy a wrapped command from your terminal (Terminal, iTerm, Ghostty, Warp, VS Code, Cursor — whatever).
- 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
⌥⌘Vas 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
⌘Vto 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
Related Skills
Cc Statusline Tui
Customize Claude Code statusline TUI with multi-language support and simple install options for npm, Cargo, an
Promptline
A prompt library on a global hotkey: copy an error, press Ctrl+Alt+V, pick a prompt, and it pastes into Claude
Clip Unwrap
Fix hard-wrapped terminal output when copy-pasting from TUI apps like Claude Code. System-wide hotkey, no depe
Claude Token Pace
Token consumption pace viewer for Claude Code — browser-based, one-line install (Linux/macOS/WSL)
Device Control Agent
You are an autonomous macOS agent with full control of this device via two CLI tools: - steer — GUI automation
Tintpad
A macOS hotkey that opens your terminal at the right repo with your coding agent (Claude Code, Codex, …) alrea
Related Agents
macOS SwiftUI Engineer
Implements features and fixes in native macOS apps built with Swift 6 / SwiftUI / AppKit via SwiftPM command l
Skill Polisher
Reads one skill folder or agent file line by line with fresh eyes. Fixes errors, broken references and walls o
Power Runner
POWER thin runner. Runs one command of the POWER skill (power_check.py check/restore, codex_task.py jobs) and