Skip to content
| Marketplace
Sign in
Visual Studio Code>AI>Agent Notify for VS CodeNew to Visual Studio Code? Get it now.
Agent Notify for VS Code

Agent Notify for VS Code

Yuankuan Zhang

|
1 install
| (0) | Free
Windows toast notifications when Claude Code finishes a task, needs approval, or asks a question. Works locally and over Remote-SSH.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Agent Notify for VS Code

English | 简体中文

Windows toast notifications when Claude Code finishes a task, needs approval, or asks you a question. Works in local VS Code windows and over Remote-SSH.

People say that once you hand a task to an agent, you can go make tea or scroll your phone. In practice, you step away from VS Code, read a paper or browse the web, and come back to find the agent has been waiting for permission or for answers to a few uncertain questions — time you spent waiting for nothing. Agent Notify exists to fix that: when the agent needs you, you get a system-level Windows notification and know right away.

Agent Notify is not affiliated with Anthropic. "Claude" and "Claude Code" are trademarks of Anthropic.

What it does

Agent Notify connects Claude Code's hook system to Windows notifications. When you run Agent Notify: Install / Update Claude Hooks, the extension merges four hooks into the project-local Claude settings file:

<workspace>/.claude/settings.local.json
Hook Fires when Notification
Stop Claude finishes a turn Claude finished a task
PermissionRequest Claude requests permission to use a tool Claude needs permission
Elicitation Claude asks a question through AskUserQuestion Claude needs your answer
Notification Claude Code sends a notification (for example, waiting for input) Claude notification

The installed entries look like this (simplified; the real command also carries a random nonce and appends to the event file):

{
  "hooks": {
    "Stop": [
      {
        "hooks": [
          { "type": "command", "command": "...", "async": true, "shell": "bash" }
        ]
      }
    ],
    "PermissionRequest": [ ... ],
    "Elicitation": [ ... ],
    "Notification": [ ... ]
  }
}

Each hook appends the event JSON to:

<workspace>/.claude/notify/events.jsonl

The extension polls that file and shows a Windows toast.

What it does not do

  • It does not modify the global ~/.claude/settings.json.
  • It only touches its own entries (marked AGENT_NOTIFY_HOOK_V1); your other hooks and settings are preserved.
  • Nothing is written until you explicitly run the install command and confirm the preview.
  • It does not read Claude transcripts, and it makes no network requests.

You can remove the hooks at any time with Agent Notify: Remove Claude Hooks.

Features

  • Four Claude Code events: task complete, permission request, question, generic notification.
  • Local and Remote-SSH support. The extension runs on the Windows side (extensionKind: ["ui"]) and reads workspace files through workspace.fs.
  • Only shows OS toasts when the VS Code window is unfocused by default.
  • Deduplicates a permission request and the notification/stop that follows it.
  • Silent event-log retention: 300 events, 7 days, or 2 MB. A manual clear command is also available.
  • No network access, no telemetry, no runtime dependencies.
  • Configurable cooldown, sound, polling interval, and Windows AppUserModelID.

Install

From the Marketplace

Search for Agent Notify in the Extensions view, or open:

https://marketplace.visualstudio.com/items?itemName=yuankuanzhang.agent-notify-for-vscode

From a VSIX

  1. Open the Extensions view (Ctrl+Shift+X).
  2. Click ... → Install from VSIX... (or drag the .vsix file into the view).
  3. Select the file and reload the window when prompted.

For Remote-SSH, install the extension in a local window. It runs on the Windows side; nothing needs to be installed on the remote.

First run

  1. Open a workspace (local or Remote-SSH).
  2. Run Agent Notify: Install / Update Claude Hooks (or accept the prompt shown on first activation).
  3. Confirm the preview. Reopen any running Claude Code sessions so they load the new hooks.
  4. Run Agent Notify: Send Test Notification to verify the notification channel.

Requirements

  • VS Code 1.94 or newer.
  • Windows 10/11 for OS toasts. On other platforms the extension falls back to VS Code notifications.
  • Claude Code (CLI or the VS Code extension).
  • bash (Git Bash on Windows) or PowerShell for the generated hook commands.
  • Remote-SSH: a Linux remote with bash. The extension itself stays local.

Commands

Command Description
Agent Notify: Install / Update Claude Hooks Merge the four hooks into .claude/settings.local.json
Agent Notify: Remove Claude Hooks Remove only Agent Notify hook entries
Agent Notify: Send Test Notification Show a test toast
Agent Notify: Enable / Disable Notifications Toggle notifications
Agent Notify: Open Event Log Open .claude/notify/events.jsonl
Agent Notify: Clear Event Log Clear the event log for one or all workspaces
Agent Notify: Switch Language (English / 中文) Switch extension messages between English and Simplified Chinese

Settings

Setting Default Description
agentNotify.language en Language for notifications and extension messages (en or zh-cn)
agentNotify.enabled true Master switch
agentNotify.onlyWhenUnfocused true Only show OS toasts while the window is unfocused
agentNotify.notifyOnStop true Notify on task completion
agentNotify.notifyOnPermission true Notify on permission requests
agentNotify.notifyOnNotification true Notify on generic notifications
agentNotify.notifyOnElicitation true Notify on questions
agentNotify.cooldownMs 3000 Minimum interval between notifications
agentNotify.pollIntervalMs 1000 Event-file polling interval
agentNotify.eventFile .claude/notify/events.jsonl Workspace-relative event file
agentNotify.hookShell auto auto, bash, or powershell
agentNotify.autoPromptInstall true Prompt when a workspace has no hooks
agentNotify.sound false Play a sound with toasts
agentNotify.toastAppId Microsoft.VisualStudioCode Windows AppUserModelID
agentNotify.eventLogMaxEvents 300 Keep the newest N events; 0 disables
agentNotify.eventLogMaxAgeDays 7 Clear after N days without writes; 0 disables
agentNotify.eventLogMaxBytes 2097152 Clear above this size; 0 disables

Settings now use the agentNotify. prefix. Values stored under the legacy claudeAlert. prefix are still read, and the old command IDs remain available as hidden aliases. After upgrading from 1.0.x, run Install / Update Claude Hooks once so hooks write to the new .claude/notify/events.jsonl path.

agentNotify.language affects runtime messages (notifications, dialogs, output channel). Command titles and setting descriptions still follow VS Code's display language.

How it works

Claude Code hooks (Stop / PermissionRequest / Elicitation / Notification)
        │  stdin JSON
        ▼
<workspace>/.claude/notify/events.jsonl
        │  workspace.fs polling (local or vscode-remote)
        ▼
Windows-side extension → dedupe / cooldown → Windows Toast

Event log

  • The file is <workspace>/.claude/notify/events.jsonl.
  • It is local to the workspace and added to .git/info/exclude.
  • Every event carries a random nonce generated when the hooks were installed; forged events are ignored.
  • Automatic retention is silent and only logged to the Agent Notify output channel.

Privacy and security

  • No network access and no telemetry.
  • Hooks run local shell commands that append the event JSON to a workspace file.
  • The extension only opens and writes files inside the workspace (plus the generated toast script in the extension folder).
  • Windows toasts are rendered by resources/toast.ps1, which is packaged with the extension. Values are passed as arguments, not interpolated into a shell string.
  • The extension is open source. Review src/install/hookInstaller.ts and src/install/hookCommand.ts before installing hooks.

Limitations

  • OS toasts are Windows-only; other platforms fall back to VS Code notifications.
  • If the window is focused, an OS toast is skipped unless onlyWhenUnfocused is disabled.
  • Multiple VS Code windows on the same workspace may show duplicate notifications.
  • Claude Code must reload the settings; running sessions need to be reopened.
  • The extension does not read transcripts or conversation contents.

Troubleshooting

  • No toast: open the Agent Notify output channel, run Send Test Notification, and check Windows notification settings and Focus Assist.
  • Hooks not active: reopen the Claude Code session; confirm the four entries exist in .claude/settings.local.json.
  • Remote-SSH: install the extension in a local window. The hooks are written into the remote workspace through workspace.fs.
  • Too many notifications: increase cooldownMs or disable individual event types.

Development

npm ci
npm run typecheck
npm test
npm run build

Disclaimer

  • The code was generated with Claude Code (Anthropic's AI coding tool).
  • The author has Python experience but is not able to audit the TypeScript, VS Code extension, or Windows toast code.
  • The extension is provided as-is under the MIT license, without warranty of any kind.
  • Agent Notify is not affiliated with Anthropic.

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft