VS Code AI Agent Input Alerts: Setup Guide
In this article
This guide shows you how to make VS Code notify you when an AI coding agent (like GitHub Copilot, Cline, or Continue) needs your input, so you can step away and return only when action is required. You'll set up desktop notifications and optionally sound alerts, using built-in VS Code settings and a small extension. No special tools are needed beyond VS Code and the AI agent extension you already use.
What You'll Need
- Visual Studio Code (latest version recommended)
- An AI coding agent extension installed (e.g., GitHub Copilot, Cline, Continue, or similar)
- OS notifications enabled for VS Code (Windows, macOS, or Linux)
Step-by-Step
- Enable VS Code's built-in notification sound. Open VS Code, press
Ctrl+,(Windows/Linux) orCmd+,(macOS) to open Settings. Search for "notification" and check the box for Notification: Show Toast (should be on by default). Then search for "notification sound" and enable Notification: Sound. This makes a sound when any notification appears, including AI agent requests. - Ensure OS notifications are allowed. On Windows, go to Settings > System > Notifications and make sure "Visual Studio Code" is allowed. On macOS, open System Settings > Notifications, find VS Code, and set alerts to "Alerts" or "Banners". On Linux, check your desktop environment's notification settings—VS Code uses the system's notification daemon.
- Install a notification-forwarding extension (if needed). If your AI agent does not trigger VS Code's native notifications by default, install an extension like "Notification Forwarder" or "Toast UI" from the VS Code Marketplace. These extensions capture VS Code's notification events and can forward them to the OS, making them more prominent.
- Configure your AI agent to send notifications. Most AI agent extensions have a setting to notify you when they need input. For example, in GitHub Copilot Chat, open the settings (gear icon) and look for "Notification" or "When waiting for user input" options. For Cline, go to extension settings and enable "Show notifications when waiting for user response". Set it to "Always" or "When not focused".
- Test the notification. Start a task with your AI agent, then switch to another application or minimize VS Code. When the agent pauses for input, you should see a toast notification and hear a sound. If not, check the next steps.
- Adjust notification duration. If the toast disappears too quickly, search for "notification" in Settings and increase Notification: Timeout (in milliseconds). Set it to 10000 (10 seconds) or longer.
- Use a custom sound (optional). To use a custom sound file, search for "notification sound" in Settings, choose "Custom", and specify the path to a .wav or .mp3 file on your system.
- Set up a visual flash (optional). For extra visibility, search for "window.autoDetectColorScheme"—not related. Instead, search for "notification" and enable Notification: Show in Status Bar to see a bell icon when there's a notification.
Common Mistakes
- Assuming the AI agent sends notifications by default. Many agents do not. You must enable the notification setting within the extension itself.
- Disabling VS Code's notification sound. If you turned it off previously, you won't hear alerts. Re-enable it.
- OS-level notification blocking. On macOS, if you set VS Code notifications to "Banners" they disappear quickly. Use "Alerts" for persistent pop-ups.
- Using an extension that conflicts. Some notification-forwarding extensions may duplicate or suppress notifications. If you have multiple, disable all but one.
Tips
- Use Focus mode. In VS Code, you can enable "Focus" (Ctrl+K Ctrl+T) to hide the sidebar, but this does not affect notifications.
- Set a distinct sound. Choose a sound that stands out from other system notifications, like a bell or chime.
- Test with a simple prompt. Ask the agent to "wait for my input" to trigger a notification quickly.
- Use the command palette. Press
Ctrl+Shift+Pand type "notification" to quickly access notification settings. - Check the agent's documentation. Each AI agent has specific settings; search the extension's README for "notification" or "waiting for input".
Troubleshooting
- No notification appears at all. First, verify that VS Code notifications work by pressing
Ctrl+Shift+Pand running "Developer: Show Notification". If that works, the issue is with the agent's settings. Re-check the extension's configuration. - Notification appears but no sound. Go to Settings > Notification: Sound and ensure it's enabled. Test by running "Developer: Show Notification" again. If still no sound, check your system volume and that VS Code is not muted in the OS volume mixer.
- Notification only appears when VS Code is focused. Some agents only notify when the window is inactive. Look for a setting like "Notify when not focused" or "Show notification when in background" and enable it.
- Notifications are too frequent. If you get spammed by every agent message, set the agent to notify only when it needs input, not on every progress update. Look for a "verbose" or "progress" notification setting.
- Extension not forwarding notifications. If you installed a forwarder, check its settings and ensure it's enabled. Try reinstalling or using a different one.
Frequently Asked Questions
- Will this work with any AI coding agent? Yes, as long as the agent triggers VS Code's notification system. Most modern agents do, but you may need to enable it in the agent's settings.
- Can I get a notification on my phone? Not directly. VS Code notifications are local. You could use a remote setup or a third-party service, but that's beyond this guide.
- Does this require an extension? Not always. If your agent uses VS Code's native notifications, no extra extension is needed. Only install a forwarder if notifications don't appear.
- How do I change the notification sound? In Settings, search for "notification sound" and either pick a preset or specify a custom sound file path.
- Why do I get notifications when the agent is just thinking? Some agents notify on every status change. Adjust the agent's notification settings to only notify when it's waiting for your input.
- Can I make the notification pop up on top of full-screen apps? That depends on your OS. On Windows, you can set the notification to show even in full-screen. On macOS, "Alerts" will appear over most apps.