@oavashia/yank
v1.0.6
Published
Copy the last Claude Code response to your clipboard with /yank
Maintainers
Readme
yank
Copy the last Claude Code response to your clipboard with /yank.
How it works
- A
Stophook saves Claude's last response to/tmp/claude_last_responseafter every turn /yankruns a script that pipes that file topbcopy
Requirements
- macOS
- Claude Code
jq(brew install jq)
Install
via npm (recommended):
npm i @oavashia/yankIf using Bun:
bun install -g @oavashia/yank && yank installSetup runs automatically. Idempotent — safe to run multiple times.
manually:
git clone https://github.com/omavashia2005/yank.git
cd yank
chmod +x install.sh
./install.shUsage
Inside any Claude Code session, type:
/yankThe 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