
In the Claude desktop app there is nothing to set up. When a session in the Code tab finishes a task and you aren't looking at that session, the app sends a notification to your computer.
In a terminal it depends on which one you use: some show an alert on their own, and many stay quiet. Type /config and look at Local notifications to choose how Claude alerts you there.
/configWhy it works
You don't have to watch a long task. Start it, work on something else, and come back when you're called.
Watch out
The desktop app only pings you for sessions you aren't viewing, so switch to another session while it works. If nothing arrives, check that notifications are allowed for the app in your computer's settings. On a Mac's built-in Terminal, the terminal bell also needs Audible bell turned on in Terminal's settings, under Profiles, Advanced.