sairam0424

Claude Copy Back — Development skill for Claude Code

Development community

Claude Code mod (in-process hooks module): type /cc after copying text from the terminal and Claude's own text for it goes back on the clipboard, without the margin and hard line breaks.

How to install Claude Copy Back

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

What Claude Copy Back does

Claude Code mod (in-process hooks module): type /cc after copying text from the terminal and Claude's own text for it goes back on the clipboard, without the margin and hard line breaks. Experimental, macOS only.

Alternatives in Development

  • Media — Understand an audio / video / image file — Antigravity (agy/Gemini) transcribes and analyzes it, returning a t 284 ★
  • Pi Warden — Zero-key runtime guardrails for Pi, Claude Code, and Codex — blocks destructive commands and secret exfiltrati 199 ★
  • Claude Architect Exam Guide — The CCAR-F, CCAR-P prep guide built for non-technical learners and engineers alike 174 ★

README

copy-back

A Claude Code mod for copying text out of the terminal. Select part of a reply, copy it as usual, type `/cc` on an empty prompt, and the clipboard holds Claude's own text for that selection: no two-space margin, no trailing padding, no hard line breaks at the terminal width.

**Status: v0.1.1, experimental.** Checked by unit tests, by tests on the Claude Code engine, and by sealed tests of the real Claude Code (classic display) against **synthetic** sessions: a counted live pass of 0.1.0 on 2.1.309, and, for 0.1.1, a screen-matching holdout and a counted live pass of the 0.1.1 build, both on 2.1.310, drawn the way Warp draws a session and the default way. In those tests the copies were built by a model of a terminal selection from real Claude Code screens, not by a real terminal, so they show what Claude Code draws and that the mod runs, but not what Warp or any other terminal puts on the clipboard. **Not yet checked:** a real Warp session (how it selects and copies), the real `pbpaste` and `pbcopy`, Claude Code's fullscreen display, other Claude Code versions in a live pass, and an organisation policy that refuses a mod starting a program. macOS only, because it reads the clipboard with `pbpaste`. See Limits.

Text copied from the Claude Code terminal typically arrives as the screen drew it: every row starts with the margin, rows are padded and cut at the terminal width, and a paragraph becomes five short lines (what a given terminal really copies is the part not yet checked). Pasted into an editor, a ticket or a chat, it has to be cleaned by hand. `/cc` does not clean the text; it looks it up. It finds the words you copied in the newest replies of the current session and puts the original text of that selection on the clipboard.

Because it copies from the session transcript, it can only ever write text that was in this session's last 40 replies, and every character it writes is a character Claude wrote. When it is not sure (no match, or the same wo