Made a claude code hook that'll yank you back into the terminal once the generation is done.
retained text
Saves me 25 hours a day. — A very efficient user I’ve saved so much time I’m currently living in the future. — Someone from tomorrow Jokes aside here is the URL [https://github.com/robinroy03/yank-back](https://github.com/robinroy03/yank-back) I was struggling with doomscrolling when claude is generating an output. Made it as a fix. Hope you find it useful :) If you are scared to run the shell command, just point claude code at the repo and ask it to make a code to do something similar. Star the repo if it was useful. cheers!
document fetched 2026-09-06 00:34 · canonical https://reddit.com/r/ClaudeCode/comments/1w86hxj/made_a_claude_code_hook_thatll_yank_you_back_into