Back to browse
GitHub Repository

Copy Claude Code output to clipboard with keyboard shortcuts. Kitty + iTerm2.

6 starsPython

Claude-copy – Copy Claude Code output to clipboard

by crog·Mar 18, 2026·4 points·1 comment

AI Analysis

●●SolidSolve My ProblemCozy

Reads ~/.claude/ JSONL directly instead of terminal scraping, works with Kitty and iTerm2.

Strengths
  • PID-to-session mapping finds focused tab's Claude Code session automatically
  • Three shortcuts copy response, plan, or AskUserQuestion prompts instantly
  • CLI mode enables piping to pbcopy or other models for review workflows
Weaknesses
  • macOS-only with Kitty/iTerm2 support, no Windows or Linux terminals
  • Very narrow use case only valuable for Claude Code double-checking workflow
Category
Target Audience

Claude Code users on macOS with Kitty or iTerm2

Similar To

tmux copy mode · iTerm2 paste history · Raycast clipboard

Post Description

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.

Similar Projects