modscode JA

modscode / Gallery / hush

hush

Free internet radio above the prompt, and any song through hum's visible YouTube player, with the synced lyric line, a DJ Clawd and an optional big panel with a sharp quadrant-block cover, a dithered aurora and karaoke-style lyrics. The mu…

Code you can checkTerminal + desktopBandToastBoxText

What it does

  • Draws a band above the prompt, toasts
  • Adds /music
  • Watches AskUserQuestion calls and can refuse them
  • Hooks classic.PermissionDenied, classic.PostToolUse, classic.PostToolUseFailure, classic.Stop and 7 more
  • Keeps its own state between turns

Good points

  • Has a desktop-specific branch
  • Handles errors
  • Writes no files

Code to start from

Two kinds: a starter modscode writes from the design above, and the lines of the mod's own code that draw it.

Starter (register.tsx)

register.tsx
import type { Register } from 'claude-code'

// Drawn like hush by Anzal (band, toast), as modscode read it from the mod's code:
// https://modscode.com/gallery/anzal1-hush/
// Written by modscode from that reading, not copied from the mod: use it as you like.
// Each value below stands for one the mod works out at run time; put in your own.
export const register: Register = on => {
  // the band above the prompt; what else goes there is drawn under it
  on('ui.render', { component: 'AbovePrompt' }, async ($, e, next) => {
    const { Box, Text } = $.ui.resolve(e)
    return (
      <Box flexDirection="column">
        <Box flexDirection="column">
          <Box flexDirection="row" paddingX={1}>
            <Text>
              {"♪ "}
            </Text>
          </Box>
          <Text dimColor>
            {" p pause · h l song · j k volume · esc back to the prompt"}
          </Text>
        </Box>
        {await next(e)}
      </Box>
    )
  })

  on('session.start', async ($, e, next) => {
    const t = '…'
    await $.ui.toast(`hush: ${t}`)
    return next(e)
  })
}

The mod's own code

Shown under the mod's licence (MIT); its text is below. Keep the notice if you copy these lines.

hooks/register.mjs lines 263–289 · Band
  on("ui.render", { component: "AbovePrompt" }, async ($, e, next) => {
    lastSurface = e.surface;
    if (e.props.hasSurvey || !isActive()) {
      leavePanel($, e);
      return next(e);
    }
    const ui = $.ui.resolve(e);
    const width = e.props.bodyColumns ?? 80;
    const columns = Math.min(width - COLLAPSE_CELLS, MAX_COLUMNS);
    const panelColumns = Math.min(width - COLLAPSE_CELLS, PANEL_MAX_COLUMNS);
    const song = source === "hum" && finding === "" ? humView(hum, now()) : null;
    const layout = chooseLayout({
      big,
      isSong: song !== null,
      surface: e.surface,
      columns: width,
      rows: e.props.maxRows ?? 0,
      canImages: canImages && !imagesBlocked,
    });
    const beneath = await next(e);
    if (layout.mode === "panel") {
      const drawn = e.surface === "desktop" ? desktopPanel($, ui, song, columns) : terminalPanel($, ui, e, layout, song, panelColumns);
      return ui.Box({ flexDirection: "column", children: [drawn, beneath] });
    }
    leavePanel($, e);
    return ui.Box({ flexDirection: "column", children: [band($, ui, columns), beneath] });
  });
hooks/register.mjs lines 869–974 · Band
function band($, ui, columns) {
  const { Box, Text, Button } = ui;
  const song = source === "hum" ? humView(hum, now()) : null;
  const isSong = song !== null;
  const view = song ?? status;
  const station = STATIONS[stationIndex];
  const accent = isSong ? HUM_COLOR : station.color;
  const ducked = isDucked();
  const quiet = ducked || view.state === "paused";
  const loading = finding !== "" || view.state === "loading";
  let title = status.title || `${station.name} radio`;
  if (finding) {
    title = finding;
  } else if (isSong) {
    title = song.name;
  } else if (status.state === "loading") {
    title = "tuning…";
  }
  const tag = isSong ? (view.dur > 0 ? `${clock(view.pos)} / ${clock(view.dur)}` : "") : `${station.name} · live`;
  // A song with lyrics gives the bar's room to the lyric line; the clock in the tag shows progress.
  const showBar = columns >= 70 && !(isSong && song.hasLyrics);
  const showTag = columns >= 56 && tag !== "";
  const showButtons = columns >= 44;
  const showClawd = clawdOn && columns >= 84 && view.state === "playing" && !finding;
  const lit = isLit && showButtons;
  const showVolButtons = lit && columns >= 70;
  const barText = showBar ? BAR_CELLS + 1 : 0;
  const tagText = showTag ? tag.length + 2 : 0;
  let buttonsText = 0;
  if (showButtons) {
    buttonsText = showVolButtons ? 40 : lit ? 24 : 12;
  }
  const clawdText = showClawd ? CLAWD_ZONE + 2 : 0;
  const titleCells = Math.max(8, columns - 2 - tagText - barText - buttonsText - clawdText - 1);

  const parts = [Text({ color: accent, dimColor: quiet, children: "♪ " })];
  if (isSong && song.hasLyrics && !finding && titleCells >= 40) {
    // Title and artist keep a fixed share, so the buttons stay put while the lyric changes.
    const nameCells = Math.min(song.name.length, Math.max(16, Math.floor(titleCells * 0.5)));
    const lyricCells = titleCells - nameCells - 2;
    parts.push(Text({ dimColor: quiet, children: fit(song.name, nameCells).padEnd(nameCells) }));
    parts.push(Text({ children: "  " }));
    parts.push(Text({ color: accent, dimColor: quiet, italic: true, children: fit(song.line, lyricCells).padEnd(lyricCells) }));
  } else {
    parts.push(Text({ dimColor: quiet || loading, children: fit(title, titleCells).padEnd(titleCells) }));
  }
  if (showTag) {
    parts.push(Text({ dimColor: true, children: `  ${tag}` }));
  }
  if (showBar) {
    let filled;
    if (isSong) {
      filled = view.dur > 0 ? Math.round((view.pos / view.dur) * BAR_CELLS) : 0;
    } else {
      const effective = ducked ? Math.round(status.volume * 0.35) : status.volume;
      filled = status.state === "paused" ? 0 : Math.round((effective / 100) * BAR_CELLS);
    }
    filled = clamp(filled, 0, BAR_CELLS);
    parts.push(Text({ children: " " }));
    parts.push(Text({ color: accent, dimColor: quiet, children: "━".repeat(filled) }));
    parts.push(Text({ dimColor: true, children: "─".repeat(BAR_CELLS - filled) }));
  }
  if (showButtons) {
    parts.push(Text({ children: "  " }));
    parts.push(
      Button({ key: "prev", label: "‹", ...keyed("h"), plain: true, dimColor: !lit, onPress: () => void press($, "prev") }),
    );
    parts.push(Text({ children: " " }));
    parts.push(
      Button({
        key: "play",
        label: view.state === "paused" ? "play" : "pause",
        ...keyed("p"),
        plain: true,
        autoFocus: true,
        dimColor: !lit,
        onPress: () => void press($, "pause"),
      }),
    );
    parts.push(Text({ children: " " }));
    parts.push(
      Button({ key: "next", label: "›", ...keyed("l"), plain: true, dimColor: !lit, onPress: () => void press($, "next") }),
    );
    if (showVolButtons) {
      parts.push(Text({ children: "  " }));
      parts.push(Button({ key: "down", label: "-", hotkey: "j", plain: true, onPress: () => void press($, "down") }));
      parts.push(Text({ dimColor: true, children: ` vol ${view.volume} ` }));
      parts.push(Button({ key: "up", label: "+", hotkey: "k", plain: true, onPress: () => void press($, "up") }));
    }
  }
  if (showClawd) {
    parts.push(Text({ children: " ".repeat(Math.max(1, walk + 1)) }));
    parts.push(Text({ color: CLAWD_COLOR, children: clawdFace() }));
  }
  const row = Box({ flexDirection: "row", paddingX: 1, children: parts });
  if (!lit) {
    return row;
  }
  const hint = Text({
    dimColor: true,
    children: showVolButtons
      ? ` p pause · h l ${isSong ? "song" : "station"} · j k volume · esc back to the prompt`
      : ` p pause · h l ${isSong ? "song" : "station"} · esc back to the prompt`,
  });
  return Box({ flexDirection: "column", children: [row, hint] });
}
Licence text (MIT)
MIT License

Copyright (c) 2026 Anzal Hussain Abidi

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

What its code calls

networkruns programsreads filesenv varstool callsremembers

What its code shows

Read from the source at commit db3b76d10946 on 2026-10-06. The first group decides whether a mod is listed; the rest is for you to weigh. A later commit is not read until the next crawl.

Decides the listing: code you can check
Entry readEvery module hooks/hooks.json names was read.hooks/register.mjs
ParsesEvery file parses as TypeScript or JavaScript.4 files parsed
All its code is in the modEvery import is a file of the mod or the engine's own module; no packages, no require.all its code is in the mod
ReadableNo minified lines, no eval or new Function, no import of a computed path, no encoded blobs.no minified code, no eval, no encoded blobs
Calls in the openNetwork and programs are reached as $.http.fetch and $.process.run in place, never passed around.every call outside goes through $ in the open
For you to weigh before installing
Where it drawsThe terminal, the desktop app, both, or nothing (hooks only: a guard or a prompt rewriter), as its code says. Shown, never a reason to leave a mod out.draws in the terminal and the desktop app, with its own branch for the desktop
Install lineWhether its repository's own .claude-plugin/marketplace.json lists it, so it installs from that marketplace with the lines on its page.listed in its repository's .claude-plugin/marketplace.json: installs from there
Programs on WindowsWhether every program it starts through $.process exists on Windows (tail, date, open, osascript, /usr/… do not).hooks/register.mjs:321 /bin/test (not on Windows); hooks/register.mjs:342 /bin/sh (not on Windows); hooks/register.mjs:431 /usr/bin/open (not on Windows)
NetworkWhether every fetch names its https host in the code.hooks/register.mjs:379 fetch(humUrl(path))
ProgramsWhether every program it starts is named in the code and is not a shell, an interpreter or a network tool.hooks/register.mjs:310 a program named at run time; hooks/register.mjs:342 /bin/sh (a shell or interpreter)
Reads and sendsWhether it both reads files or environment variables and reaches the network.reads environment variables and files and reaches the network
Keys in the sourceWhether the source holds what looks like an API key or a private key.no keys in the source
LicenceAn open licence (MIT, Apache-2.0, BSD, ISC, Unlicense, 0BSD, CC0) with its text lets modscode show its code; otherwise the code is linked.MIT

This is a reading of the code text, not a security review: it does not run the mod, and it cannot see what a program the mod starts does. The check before installing is yours. How mods are chosen

Install it

Check it yourself before you install it. Mods run unsandboxed, with your permissions, and modscode does not vouch for what this code does. Read the code below (or run claude plugin validate . in its folder), weigh what it reaches, and install the commit you read.

Its repository is its marketplace. Add that marketplace (in the terminal with these commands, or in the desktop app's plugin settings) and install the mod from it:

/plugin marketplace add anzal1/hush
/plugin install hush@hush

This installs the marketplace's latest commit, which may not be the one read here (db3b76d10946). Compare them before you install.

Ask Claude about it

With the modscode connector added, Claude can read this design, what its code reaches and its code, and build on them. Ask it like this:

Read the modscode design "anzal1-hush" with its code and make me a pane like it

Search them from Claude: the MCP connector

Similar designs