AI tools

How to get notified when Claude Code finishes or needs your OK (Windows)

The short answer

To get notified when Claude Code needs you, add a Notification hook (for permission prompts and idle prompts) and a Stop hook (for when it finishes) to %USERPROFILE%\.claude\settings.json, each running a small PowerShell command, then check them with /hooks. If you’d rather not configure anything, Nudgling, a free Windows focus app, tells you on your PC or your Android phone when your AI tool is done or needs your OK, and one click takes you back to it.

Why it’s worth two minutes of setup

You give Claude Code a task. It will take a few minutes, so you open YouTube, or pick up your phone. Meanwhile it stops to ask permission to run a command, and waits. Twenty minutes later you look back and it has done nothing since. Or it finished long ago and you’ve been scrolling for no reason.

A wait of a minute or more is long enough to open something else, and once you have, getting back is the slow part. In a well-known UC Irvine study, people who returned to interrupted work the same day took about 25 minutes on average, after working on about two other things (Mark, González and Harris, CHI 2005).

The fix is simple: let the agent tell you when it’s done or needs you, so you can step away without watching the terminal.

Step away. Your AI will call you back.

  • Free
  • Works offline
  • No account
  • Never blocks anything

Early access · Windows 10 & 11, with a free Android app · Invites go out in mid‑December

Set up Claude Code notifications on Windows

Claude Code has hooks: commands it runs at set moments. Two of them are what you want:

  • Notification fires when Claude is waiting for you. Its permission_prompt type means it needs you to approve something (after the prompt has waited about six seconds), and idle_prompt means it finished about 60 seconds ago and you haven’t typed since.
  • Stop fires when Claude finishes responding.

1. Open your settings file

Your personal settings live in %USERPROFILE%\.claude\settings.json (for example C:\Users\you\.claude\settings.json). If it doesn’t exist, create it. A project can also have its own .claude\settings.json.

2. Add the two hooks

The Notification command below is the Windows example from Anthropic’s docs: a small dialog box. The Stop command plays a short beep. If your file already has a hooks key, add these two as siblings of the events already in it rather than replacing it.

{
  "hooks": {
    "Notification": [
      {
        "matcher": "permission_prompt|idle_prompt",
        "hooks": [
          {
            "type": "command",
            "command": "powershell.exe -NoProfile -Command \"[System.Reflection.Assembly]::LoadWithPartialName('System.Windows.Forms'); [System.Windows.Forms.MessageBox]::Show('Claude Code needs your attention', 'Claude Code')\""
          }
        ]
      }
    ],
    "Stop": [
      {
        "hooks": [
          {
            "type": "command",
            "command": "powershell.exe -NoProfile -Command \"[console]::beep(880, 250)\""
          }
        ]
      }
    ]
  }
}

3. Check and test

  1. Type /hooks in Claude Code. Your hooks should be listed under Notification and Stop.
  2. Ask Claude to do something that needs your permission, then switch to another window. After a few seconds the dialog should appear.
  3. Ask a quick question and wait for the answer: you should hear the beep.

If nothing shows

  • Paste the command into PowerShell on its own first. If it doesn’t work there, it won’t work as a hook.
  • The dialog box can open behind your terminal window (the docs warn about this). Check the taskbar.
  • A JSON mistake, like a missing comma or an unescaped quote, stops the whole file loading. Run it through a JSON checker.
  • idle_prompt waits about a minute on purpose. For “done” the moment it happens, rely on the Stop hook.

Which hook should you use?

  • Only “needs my OK”: a Notification hook with the matcher permission_prompt. Quietest option; it only speaks up when Claude is blocked.
  • “Done” as soon as it happens: a Stop hook. It fires after every response, including short ones, so a gentle sound is better than a dialog box.
  • Both, the way most people want it: the example above. A dialog for permission and idle, a short sound for done.

Put the hooks in your personal settings file if you want them in every project. Put them in a project’s .claude\settings.json only if the whole team should get them, since that file is usually shared through the repository.

Other AI coding tools

Most agents now have a similar switch. Each tool’s own docs have the exact format:

  • OpenAI Codex CLI: a notify setting in ~/.codex/config.toml runs your program when a turn completes (Codex config docs).
  • Gemini CLI: hooks in ~/.gemini/settings.json, including Notification and AfterAgent (Gemini CLI hooks).
  • GitHub Copilot CLI: notification and agentStop hooks (Copilot CLI hooks reference).
  • Cursor: a stop hook in ~/.cursor/hooks.json (Cursor hooks).

Hooks run on your computer, so they can’t reach your phone on their own. And a beep or a dialog tells you something happened, but not which window to go back to.

Never leave your AI waiting.

  • Free
  • Works offline
  • No account
  • Never blocks anything

Early access · Windows 10 & 11, with a free Android app · Invites go out in mid‑December

The no-setup way: Nudgling

Nudgling is a small Windows 10 and 11 app with a free Android companion. It was built for exactly this wait:

  • It stays quiet while your AI works. Waiting on Claude Code isn’t drift, so you aren’t nudged for it.
  • It tells you when it’s done, on your PC or your phone. On the free plan it does this when it can see the tool has finished.
  • Connect your tools once for an exact “done” and “needs your OK”: “Claude Code needs your OK. Back to VS Code?”
  • Back to it takes you straight to the right window, so you answer in seconds and get back to what you were doing.

It works with Claude Code, Cursor, Codex, Gemini CLI, GitHub Copilot CLI and Qwen Code (Cursor and Codex report “done” only). More on the AI tools page.

VS Code, where Claude Code asks to proceed and Nudgling’s pill says “Claude Code needs your OK”; beside it, a phone with “Your AI needs your OK”.VS Code, where Claude Code asks to proceed and Nudgling’s pill says “Claude Code needs your OK”; beside it, a phone with “Your AI needs your OK”.
Claude asks while you’re getting coffee. Nudgling tells you on your PC and your phone.

Waiting on agents is one kind of switching; developers pay for several others. Read the real cost of context switching, or how to stop drifting without blocking anything.

Make coffee. Come back on time.

Join early access. Invites go out in mid‑December.

  • Free
  • Works offline
  • No account
  • Never blocks anything

Early access · Windows 10 & 11, with a free Android app · Invites go out in mid‑December

Questions people ask

Does Claude Code have built-in notifications?

It has hooks: commands it runs at set moments. The Notification hook fires when Claude needs your permission or has been waiting for your input, and the Stop hook fires when Claude finishes responding. You choose what the command does, such as a sound or a dialog.

Where is the Claude Code settings file on Windows?

Your personal settings are in %USERPROFILE%\.claude\settings.json (for example C:\Users\you\.claude\settings.json). A project can have its own .claude\settings.json in its folder. Type /hooks inside Claude Code to see which hooks it loaded.

Why didn’t my notification show?

Check that the JSON is valid and that /hooks lists your hook. Run the command on its own in PowerShell to be sure it works. The dialog box from the official Windows example can open behind your terminal window, and the idle notification only fires after Claude has waited about a minute.

Can I get the alert on my phone?

Hooks run on your computer, so a phone alert needs something extra, such as a push service you call from the hook. Nudgling’s free Android app shows when your AI is done, and when it needs your OK.

Which AI tools does Nudgling work with?

Claude Code, Cursor, Codex, Gemini CLI, GitHub Copilot CLI and Qwen Code. It stays quiet while they work and tells you when it can see they’re done. Connect them once for an exact “done” and “needs your OK” (Cursor and Codex report “done” only).

When can I get Nudgling?

Nudgling is in early access now. Leave your email on this page and you’re on the list; invites go out in mid‑December. It isn’t in any app store yet: it will come from the Microsoft Store, with the Android app on Google Play.

Finish what you started.

Leave your email and you’re on the list. We’ll send a short welcome now and your invite in mid‑December. Nothing else.

  • Free
  • Works offline
  • No account
  • Never blocks anything

Early access · Windows 10 & 11, with a free Android app · Invites go out in mid‑December

Keep reading

All articles · Home · A day with Nudgling · Nudgling for AI coding · Pricing