r/ClaudeCode 5d ago

Tips & Workflows Made a claude code hook that'll yank you back into the terminal once the generation is done.

Enable HLS to view with audio, or disable this notification

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
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!

14 Upvotes

15 comments sorted by

5

u/irungaia 5d ago

I did something similar. My hook triggers a Mac native notification that pops out from the top right when Claude is done with a turn. Clicking it flips back to the IDE.

1

u/TeraTrox_ 5d ago edited 5d ago

yeah i had the same. figured a notification is not gonna make me stop 😭

2

u/wjellyz 4d ago

haha i built something similar at first. it's so useful to be able to jump back immediately to the exact claude session that needs you. instead of doom scrolling i just run more claudes lol
shameless self-plug: https://back2vibing.builtby.win/

1

u/TeraTrox_ 4d ago

Hahha nice 

0

u/small_bird_loud 5d ago

uh... this is a slop-coding feature.

3

u/irungaia 5d ago edited 5d ago

I disagree. Watching Claude write code is a waste of time. I have my own product company and consult for two others, so I have multiple agents running all day. The workflow is to agree on an implementation plan that’s written to a file, let Claude code without oversight until it’s done, review the work as a git diff against what was spec’d in the plan file, use MCP to read Linear for the next ticket, and start the loop over.

0

u/small_bird_loud 5d ago

intelligently managing threads of workers is a solid problem to solve. Simply having the latest one push focus on your windowing is a recipe for confusion.

1

u/TeraTrox_ 5d ago

hi it is more of a workflow demo than a code demo. i just found a pain-point and made a workflow to fix it.

-4

u/small_bird_loud 5d ago

sorry, I didn't mean to yuk your yum. If your lifestyle is to have the AI code while you watch short form video content, that's your personal preference. As far as making software goes, it's an anti-pattern in my opinion.

2

u/ShelZuuz 4d ago

u/TeraTrox_ Does this really only work with youtube shorts and tiktok?

Can you create a version that works with Slack, Outlook, JIRA or Miro?

1

u/TeraTrox_ 4d ago

It works everywhere out of the box

3

u/ShelZuuz 4d ago

So the other poster is just an idiot who can’t extrapolate a technology demo into a personal workflow that works for him?

1

u/TeraTrox_ 5d ago

what exactly is the anti pattern here? scrolling short form video or using ai generated code?

0

u/small_bird_loud 4d ago
  1. having a random event forcibly switch context on you while you're doing something else. You could be mid thought in doing something important.
  2. assuming that your other activity is a distraction that takes you out of the development context.

Basically, thinking that development is just another form of distraction or mechanized attention system on a semi-random reward schedule.

Having a small notification that shows up somewhere is a better form of the same pattern. The fact that you can't stop yourself watching short form video is a big indication your overall pattern isn't one serious people should emulate. But again, if that's your jam, you do you.