r/ClaudeCode • • 1d ago

Discussion Wondering if anyone has set notifications for claude?

I have all these terminal windows open doing all this stuff and I was getting distracted while waiting for it to finish so I set notifications for it so I know when things are getting handled. I was wondering if anyone was doing that as well. Does Claude has this natively already?

3 Upvotes

9 comments sorted by

•

u/AutoModerator 1d ago

Hey! Thanks for posting to r/ClaudeCode

While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.

For help, project discussions, tips, and general chat, join the ClaudeCode Discord.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

2

u/ClaudeUserHQ 1d ago

Yep, hooks do this. In ~/.claude/settings.json add a Notification hook (fires when it needs permission or is idle waiting on you) and a Stop hook (fires when it finishes a response) that runs whatever command you like, e.g. notify-send on Linux or osascript on macOS. You can set it up interactively with /hooks too. There is also a terminal bell option under /config if you just want a beep.

1

u/IntelligentLeading11 1d ago

Oh cool, I didn't know that, I asked Claude to make me a custom one and it works really neatly already but I will check this out.

2

u/No-Platypus1014 1d ago

yes indeed Claude can build you but i can give you this: On macOS, in ~/.claude/settings.json:
json
"hooks": {
"Notification": [{ "hooks": [{ "type": "command", "command": "osascript -e 'display notification "Claude needs you" with title "Claude Code"'" }] }],
"Stop": [{ "hooks": [{ "type": "command", "command": "osascript -e 'display notification "Done" with title "Claude Code"'" }] }]
}

With lots of terminals open, put the folder name in the message (the hook gets JSON on stdin with cwd), otherwise you get "Done" and no idea which one. The waiting-for-permission one matters most: that's where sessions silently sit for 20 minutes.

2

u/__Blackrobe__ 1d ago

I am using herdr (TUI), and inside of it I run Claude Code.

I will be notified whenever it finishes a turn. No hooks required. I will hear a different kind of ring if Claude asks me a question.

2

u/sacman73 1d ago

Tasks in Duet (mobile & desktop) can help with this if you’re willing to move off terminal. Works pretty well. I ended up building a “SCADA” around Flare to manage my agents across harness though. Been working well so far to manage larger fleets grouped by subject matter/workflow

2

u/No-Manner7058 1d ago

I created a application that turns your smart home devices into status lights for claude code and codex. You can control lights, led strips, fans and other smart home devices.

You add the device through the local scan then create a profile, the profile contains 29 different states such as started, working, needs permission, needs input, finished, context low with a slider for your desired percentage etc.

You can then assign that profile to the folder you start claude from so you can have different colour profiles for each repo, red for game design, green for web dev. It made to be highly customizable.

If you want to try it. It free and has a paid version for MCP so you can click make chat device aware, then you can just type in chat, i'm going to cook dinner flash kitchen light green when the deploy finishes and red if it errors or whatever you choose i personally dim rather than change colour a lot as if you go overboard you turn room into a rave :) . https://www.ac-bridge.com/

1

u/SirRobinBlibs 1d ago

There is a built-in path if your terminal is Ghostty, Kitty, or iTerm2 (iTerm needs its alert settings on). For other terminals, the supported way is a Notification hook in ~/.claude/settings.json, which fires when Claude is waiting for input or a permission. The official walkthrough is under "Get notified when Claude needs input" here: https://code.claude.com/docs/en/hooks-guide

After you add it, /hooks should list the Notification hook. On macOS the example uses osascript; on Linux it is notify-send.

1

u/Patient-Cattle-2397 23h ago

Claude Code has a Notification hook with a permission_prompt matcher. If you’ve got a bunch of terminals open, use the cwd it sends to put the repo or worktree name in the alert title. Then you know which window needs you without clicking through all of them.