Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Show HN: Claude-copy – Copy Claude Code output to clipboard (github.com/clementrog)
4 points by crog 36 days ago | hide | past | favorite | 2 comments
I use Claude Code all day. The single best habit I've added: paste its output into a second model before letting it execute. Catches bad plans before they ship.

The friction was copying. Terminal selection is unreliable — ANSI codes, scroll position, font size all break it. Annoying enough that you skip the review.

claude-copy fixes this. It doesn't scrape the terminal. It finds the focused tab's PID, maps it to the right Claude Code session in ~/.claude/, and reads the JSONL transcript directly. Instant, clean output every time.

Three shortcuts:

  Cmd+Shift+C → active tab last Claude Code response
  Cmd+Shift+P → active tab plan (from .claude/plans/)
  Cmd+Shift+A → active tab last AskUserQuestion prompt + answer options
Also works as a CLI: claude-copy-last --plan | pbcopy

Install:

  git clone https://github.com/clementrog/claude-copy.git && cd claude-copy && ./install.sh
Auto-detects Kitty vs iTerm2. macOS only, Python 3.8+.

Looking for contributors for Ghostty, Warp, Zed terminal support, and Linux.



Wow nice tool! Unfortunately I'm not able to contribute for any of the listed supports. Good luck with finding supporters though, looking forward to follow this.


thanks!




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: