
Claude Code kept getting stuck while I was AFK — here's how I fixed it with hooks
In my previous post I talked about building an MCP server to let Claude Code ask me questions via Slack. Our prototype was working… so nice! It was time to test it more “deeply”, so I passed Claude Code a long enough prompt to keep it busy for a while, and as part of the prompt, I asked it to run the command to enable interaction via Slack (/lassare-slack). Waited a bit, was working, time to go to the gym. It asked me a couple of questions during the walk to the gym… then nothing more. I waited, and waited… and waited… nothing. What happened?! Completed my workout, back at my laptop. Claude Code was waiting for me to approve a “git reset” (a reset that I didn’t ask it to do BTW 🤦🏻♂️). Permission prompts are a local thing — they show up in the terminal, not in Slack. So there was no way for me to approve or deny from my phone. Now what?!? HOOKS! Yes, let me try using hooks. 💡 What are hooks? Claude Code has a feature called hooks — scripts that run automatically when certain events hap
Continue reading on Dev.to
Opens in a new tab



