Skip to content

omavashia2005/yank

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yank

npm downloads

Copy the last Claude Code response to your clipboard with /yank.

How it works

  • A Stop hook saves Claude's last response to /tmp/claude_last_response after every turn
  • /yank runs a script that pipes that file to pbcopy

Requirements

Install

via npm (recommended):

npm i @oavashia/yank

If using Bun:

bun install -g @oavashia/yank && yank install

Setup runs automatically. Idempotent — safe to run multiple times.

manually:

git clone https://github.com/omavashia2005/yank.git
cd yank
chmod +x install.sh
./install.sh

Usage

Inside any Claude Code session, type:

/yank

The last Claude response is now in your clipboard.

Uninstall

Run this before uninstalling the package, otherwise the hook entry will remain in ~/.claude/settings.json:

npx @oavashia/yank uninstall
npm uninstall @oavashia/yank

About

Copy Claude Code (CLI) responses to your clipboard with /yank. No more scrolling endlessly on your CLI session

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors