Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>NoroshiNew to Visual Studio Code? Get it now.
Noroshi

Noroshi

mtgto

|
14 installs
| (0) | Free
Play a sound when Claude Code is waiting for you or finishes, even in Remote Containers.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Noroshi

A VSCode extension that plays a local sound when Claude Code is waiting for you or has finished — even when Claude Code runs inside a Dev Container, whether that container is a local Docker container or a Kubernetes Pod.

日本語版は README.ja.md を参照してください。

Features

  • 🔊 Plays a sound when Claude Code is waiting for your input or has finished responding.
  • 📦 Works even when Claude Code runs in a Dev Container / Kubernetes Pod — the sound still plays on your local machine. This is what sets Noroshi apart from local-only notifiers.
  • 🖥️ Supports both the Claude Code VSCode extension (side panel) and the integrated-terminal claude CLI.
  • 🎚️ Customizable: choose your own sounds and playback command, and control when it plays (by session type, or stay silent while the window is focused).
  • 🌐 Cross-platform — macOS, Linux, and Windows.

How it works

When Claude Code runs inside a Dev Container, its hooks fire inside the container — but the sound has to play on your host machine, and the two sides can't call each other directly. So Noroshi bridges them through a file: the hook records each event into a file in the remote workspace, and Noroshi, running on the host, watches that file.

flowchart TD
    subgraph Remote["Dev Container / Pod (remote)"]
        direction LR
        CC["Claude Code"] -->|waiting / finished| Hook["Claude Code Hooks"]
        Hook -->|appends one line| Events[".claude/noroshi-events.jsonl"]
    end
    subgraph Local["Your machine (local)"]
        direction LR
        Noroshi["Noroshi (UI extension)"] -->|plays| Sound["🔊 afplay, etc."]
    end
    Events -.->|watched via vscode.workspace.fs| Noroshi

A Claude Code hook appends one line to an events file on the remote (.claude/noroshi-events.jsonl). Noroshi declares extensionKind: ["ui"], so it runs on your local machine — which is what lets it play local commands like afplay. It watches that remote file through the workspace file system and plays a sound the moment a new line appears.

Setup

1. Install Noroshi

Install Noroshi from the VSCode Marketplace: open the Extensions panel (⌘⇧X on macOS, Ctrl+Shift+X on Windows/Linux), search for Noroshi, and click Install — or install mtgto.noroshi directly.

Because Noroshi is a ["ui"] extension, it installs on your local (UI) side, which is exactly what the Remote Container use case needs.

2. Install the hooks

Open the VSCode Command Palette (⌘⇧P on macOS, Ctrl+Shift+P on Windows/Linux) and run Noroshi: Install Claude Code Hooks (or click the Noroshi status bar item and pick Install Claude Code Hooks). It adds the hooks to this workspace's .claude/settings.json or .claude/settings.local.json for you.

Where it writes:

  • If .claude/settings.local.json exists, it goes there — Noroshi is a personal preference and that file is normally untracked by git.
  • If neither file exists, .claude/settings.json is created.
  • If only .claude/settings.json exists, you're asked which one to use.

Existing hooks are kept: the file is merged, not overwritten, and only the entries Noroshi needs are added. Running it twice is a no-op. If the settings file isn't valid JSON, Noroshi leaves it completely alone and tells you so.

3. Check that it works

That's it — setup is done. In the Claude Code VSCode extension, say something like "Hello" and wait for the reply: you should hear a sound on your local machine when it finishes.

The 🔊 Noroshi status bar item means the hook was detected (⚠️ Noroshi means it isn't configured yet). If you hear nothing, see Known limitations.

Usage

Click the Noroshi status bar item (or run Noroshi: Show Menu from the Command Palette) to open a menu where you can: install the hooks, open the setup guide, enable/disable Noroshi, show the output log, and open Noroshi's settings.

Settings

Setting Default Description
noroshi.enabled true Enable/disable Noroshi
noroshi.eventsFile .claude/noroshi-events.jsonl File to watch (relative = workspace-based, absolute = an absolute path on the remote Pod)
noroshi.sounds.notification / .stop "" Override sound (empty = bundled WAV)
noroshi.playerCommand "" Playback command. ${file} is substituted. Empty = OS default
noroshi.pollInterval 3000 Safety-net polling interval (ms). 0 disables it
noroshi.debounceMs 250 Suppression window (ms) for repeats of the same event
noroshi.entrypointFilter [] e.g. ["claude-vscode"] to play only extension sessions
noroshi.suppressWhenFocused false Don't play a sound while this VSCode window is focused
noroshi.statusBar.show true Show the status bar item

eventsFile, playerCommand, and sounds.* run a local command or touch a local file, so they are restricted under VSCode Workspace Trust: in an untrusted workspace, a workspace/folder-level override of these is ignored, falling back to the user/default value (which Noroshi keeps operating on normally).

Audio format

The bundled defaults are WAV (a format every OS's default command can play). You may point sounds.* at any format (playability depends on playerCommand). On macOS, afplay also plays mp3/m4a.

Default playback commands

playerCommand is split into argv tokens and run directly — no shell is involved, so ${file} is substituted as a single literal argument regardless of spaces or special characters in the path. Quoting ${file} yourself is unnecessary (quotes in the template only group a token containing spaces, e.g. for the -c argument below).

  • macOS: afplay ${file}
  • Linux: paplay ${file} (falls back to aplay)
  • Windows: powershell -NoProfile -c "(New-Object Media.SoundPlayer ${file}).PlaySync()" (WAV only)

Advanced

Play only for one session type (entrypoint)

To play only for the extension (side panel) sessions and not for claude in the integrated terminal, set the extension's entrypoint value into noroshi.entrypointFilter — for the side panel that value is claude-vscode:

"noroshi.entrypointFilter": ["claude-vscode"]

If that value ever stops matching, you can measure the discriminator yourself — see CONTRIBUTING.md.

Show a desktop notification instead of a sound

playerCommand can run any command, not just an audio player. Noroshi passes these environment variables to it:

Variable Value
NOROSHI_EVENT notification (waiting for you) or stop (finished)
NOROSHI_WORKSPACE_NAME The workspace name shown in the VSCode title bar
NOROSHI_WORKSPACE_URI The URI of the workspace folder, e.g. vscode-remote://dev-container+…/workspaces/app for a Dev Container

Since playerCommand runs without a shell, put the logic in a script. This example for macOS shows a Notification Center banner with terminal-notifier; clicking it brings the VSCode window of that workspace to the front — even a Dev Container or Kubernetes Pod window.

#!/bin/sh
# Save as e.g. ~/.config/noroshi/notify.sh
case "$NOROSHI_EVENT" in
  notification) msg="Waiting for your input" ;;
  *)            msg="Finished" ;;
esac
terminal-notifier -title "Claude Code" -subtitle "$NOROSHI_WORKSPACE_NAME" \
  -message "$msg" -sound Glass -group "noroshi-$NOROSHI_WORKSPACE_URI" \
  -execute "/usr/local/bin/code --folder-uri '$NOROSHI_WORKSPACE_URI'"
"noroshi.playerCommand": "/bin/sh /Users/you/.config/noroshi/notify.sh"
  • Use absolute paths: without a shell, ~ is not expanded in playerCommand, and the -execute command may not see your PATH. Run which code to find where your code command is.
  • -group replaces the previous banner of the same workspace instead of piling them up.
  • In a multi-root workspace, NOROSHI_WORKSPACE_URI is the first folder, so clicking may open that folder in a new window instead of focusing yours.
  • On Linux, notify-send works the same way for the banner itself.

Read the workspace name aloud

To tell by ear which workspace is done, have macOS say read its name. This fits in playerCommand without a script, using /bin/sh -c:

"noroshi.playerCommand": "/bin/sh -c 'case \"$NOROSHI_EVENT\" in stop) m=\"finished\" ;; *) m=\"is waiting\" ;; esac; say \"${NOROSHI_WORKSPACE_NAME%% \\[*} $m\"'"

This says e.g. "my-project finished". ${NOROSHI_WORKSPACE_NAME%% \[*} drops the [Dev Container: …] suffix VSCode adds to a remote workspace name. On Linux, spd-say works in place of say.

Configuring the hook by hand

You don't need this if you used Install Claude Code Hooks above — it's only for setting things up yourself. Add the following to .claude/settings.json (if you change noroshi.eventsFile, update the append target to match):

{
  "hooks": {
    "Notification": [
      {
        "hooks": [
          {
            "type": "command",
            "command": "printf '{\"event\":\"notification\",\"entrypoint\":\"%s\"}\\n' \"${CLAUDE_CODE_ENTRYPOINT:-unknown}\" >> \"$CLAUDE_PROJECT_DIR/.claude/noroshi-events.jsonl\"  # noroshi"
          }
        ]
      }
    ],
    "Stop": [
      {
        "hooks": [
          {
            "type": "command",
            "command": "grep -Eq '\"background_tasks\": *\\[ *\\{' || printf '{\"event\":\"stop\",\"entrypoint\":\"%s\"}\\n' \"${CLAUDE_CODE_ENTRYPOINT:-unknown}\" >> \"$CLAUDE_PROJECT_DIR/.claude/noroshi-events.jsonl\"  # noroshi"
          }
        ]
      }
    ]
  }
}

Note that hooks are matched by their exact command, so if you change noroshi.eventsFile and install again, the entry pointing at the old file stays behind — Noroshi won't delete hook entries it might not own. Remove it by hand if you want to tidy up; a stale entry only appends to a file nobody watches. The one exception is the Stop entry an older Noroshi wrote for the same noroshi.eventsFile: installing again upgrades it in place to the current command.

Known limitations

  • In the VSCode extension, the Notification hook needs Claude Code 2.1.233 or newer. Before that it never fired there (anthropics/claude-code#8985); 2.1.233 fixed it for permission prompts. Verified on 2.1.266 in the extension for the tool-permission dialog (Write), the AskUserQuestion dialog, and the sandbox's "Allow network connection to this host?" dialog. On an older Claude Code you cannot upgrade, use Noroshi v0.1.0, which also hooked PermissionRequest to reach the extension.
  • Leaving the extension idle plays no sound. The idle_prompt notification ("Claude is waiting for your input") fires in the terminal CLI but not in the extension, still true on 2.1.266 — nothing reaches Noroshi to play. Permission prompts and Stop are unaffected.
  • Background subagents may still play one extra sound. While background work (e.g. subagents) is still running, the Stop hook skips recording, so the main session's turn that each finished subagent wakes stays silent. Right after the last one finishes, though, Claude Code can report no background work while its notification is still queued (anthropics/claude-code#102617), so one sound may play just before the final one. A Claude Code that doesn't send background_tasks to the Stop hook plays a sound on every turn end.
  • Upgrading from v0.1.0 leaves a PermissionRequest entry behind. v0.1.0 installed one, and Noroshi never deletes hook entries (see the note above), so it survives and plays a second sound about six seconds after each permission prompt — debounceMs is far too short to absorb that. Delete that entry from .claude/settings.json / .claude/settings.local.json by hand.

Contributing

For local development (F5 debugging, building a VSIX, running tests, and the manual smoke test), see CONTRIBUTING.md.

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