macOS menu bar utility that fixes mangled clipboard text from AI coding assistants.
You know the problem: you're deep in Claude Code, Cursor, or Copilot, copy some text, paste it into Slack or Notion, and it's full of ghost indentation, hard line breaks mid-sentence, and weird formatting artifacts.
SmartTrim sits in your menu bar and fixes it automatically.
- Auto-Trim — Monitors clipboard, automatically cleans malformed text
- Manual Trim — Global hotkey (⌘⇧.) or menu bar button
- Smart Detection — Only processes text that looks broken
- Preserves Structure — Keeps lists, paragraphs, and intentional formatting
| Problem | Example |
|---|---|
| Ghost indentation | text with invisible leading spaces |
| Hard-wrapped lines | This sentence was\nbroken mid-flow |
| Mixed formatting | Bullet points with broken continuations |
Download from Releases or build from source:
brew install xcodegen
git clone https://github.com/gmickel/SmartTrim.git
cd SmartTrim
xcodegen && xcodebuild -scheme SmartTrim -configuration Release- macOS 14.0 (Sonoma) or later
- Apple Silicon or Intel
- Launch at Login — Start automatically
- Auto-Trim — Enable/disable clipboard monitoring
- Hotkey — Customize the manual trim shortcut
Swift 6, SwiftUI, strict concurrency. No Electron. No dependencies. ~500 lines.
Gordon Mickel — mickel.tech
Built as part of gmickel-bench, a project comparing AI coding assistants on real-world tasks.
MIT