subwave: Instructions file for Claude Code

CLAUDE.md

subwave CLAUDE.md is an instructions file for Claude Code from perminder-klair/subwave. It costs 4,482 tokens per session, scanned A, original, MIT.

Instructions for SUB/WAVE, a personal internet radio station where one Icecast stream broadcasts the same AI-selected music and spoken scripts to everyone.

In plain words
What is it for?
Use them when changing the broadcast controller, Liquidsoap audio pipeline, website, app, music queue, transitions, speech timing, or track selection.
Why use it?
They summarize the architecture, commands, and safety rules while directing contributors to detailed instructions for each part of the system.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: reads .claude/ paths; mentions CLAUDE.md.

This is perminder-klair/subwave's own configuration. It tells Claude Code how to work on subwave itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything subwave configures →

About the project

Subwave is an internet radio station where an AI DJ selects music and speaks between tracks for every listener at once. Listeners can request music in plain language, while operators manage the queue, schedule, DJ personas, and station activity. Its catalogue entries define skills and workflows for operating the station.

perminder-klair/subwave · 1,568 stars · on GitHub · getsubwave.com

Reuse

Borrowing it

Nothing to install: this file belongs to perminder-klair/subwave. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/perminder-klair/subwave/develop/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/perminder-klair/subwave

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for subwave CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/perminder-klair/subwave/claude-md/github.svg)](https://agentmods.dev/instructions/perminder-klair/subwave/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/perminder-klair/subwave/claude-md"><img src="https://agentmods.dev/badge/instructions/perminder-klair/subwave/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for subwave CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/perminder-klair/subwave/claude-md"><img src="https://agentmods.dev/badge/instructions/perminder-klair/subwave/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 4,482 This file is loaded in full into every session.
When invoked 4,482 The same file — it is already loaded in full.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.04482 $0.04482
Opus 5.5 $0.01793 $0.01793
Sonnet 5.5 $0.00896 $0.00896
Haiku 4.5 $0.00448 $0.00448

Measured today against content hash b44f13a842a8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

subwave CLAUDE.md scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl http://localhost:7700/api/health # liveness through the Caddy edge (prod)
CLAUDE.md · 143 lines

How it starts

The opening of the file, as written. The whole thing — 143 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CLAUDE.md

SUB/WAVE is a personal internet radio station: one Icecast stream that every listener hears, with an AI DJ that picks the tracks and talks between them.

This file loads into every session, so it holds the map, the commands and one line per invariant. The reasoning behind each invariant lives in the doc named beside it, or in the module's own header comment, and you read it before changing the thing it describes: most of those paragraphs exist because the obvious fix shipped first and was wrong. New rules go in the same shape: one line here, the reasoning in the doc.

Where the detail lives

Working on Read
controller/src/** controller/CLAUDE.md
liquidsoap/radio.liq liquidsoap/CLAUDE.md
web/** web/CLAUDE.md
app/** app/CLAUDE.md
queue, talk scheduling, speech timing, transitions, TTS, personas docs/internals/broadcast.md
show changes and sign-off/greeting handoffs docs/internals/show-boundary-handoffs.md
library, tagging, picker, requests, blocklist docs/internals/music.md
zod schemas, the /settings patch registry docs/internals/schemas.md
analyzer, Icecast rendering, auth gates, privacy, multi-station, state layout docs/internals/infrastructure.md

Commands

docker compose -f docker-compose.dev.yml up -d   # dev stack: broadcast, controller (tsx watch), analyzer, socket proxy
cd web && npm install && npm run dev             # web UI on :7700, a separate process
docker compose logs -f controller
curl http://localhost:7700/api/health            # liveness through the Caddy edge (prod)

Dev hot-reloads; prod needs a rebuild. Dev bind-mounts controller/src, controller/scripts, radio.liq and sounds/: the controller restarts itself, and a radio.liq edit needs docker compose -f docker-compose.dev.yml restart broadcast. Prod images COPY the source, so restart reruns the old code and a change needs docker compose up -d --build <service>.

Read the full file on GitHub · 143 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today Changed · +1 lines · +96 tokens per session b44f13a842a8
  2. yesterday Changed · +2 lines · +184 tokens per session efae43447338
  3. 2d ago Changed · +1 lines · +64 tokens per session f1dafa2776ba
  4. 4d ago Changed · +1 lines · +73 tokens per session 9f109e5c50b0
  5. 7d ago Changed · +3 lines · +281 tokens per session f2e89b61bef5
  6. 10d ago Changed · -69 lines · -9,994 tokens per session 434dde0f12cf
  7. 11d ago Changed · +3 lines · +648 tokens per session 9d6b6ff05723
  8. 13d ago Changed · +79 tokens per session ef530fef4cbe
  9. 14d ago Changed · +69 tokens per session 33dece009832
  10. 15d ago First seen · 201 lines · 12,982 tokens per session scan A 5fe0d989dcae

Subscribe to this mod's changes

subwave CLAUDE.md is an instructions file published in the GitHub repository perminder-klair/subwave (1,568 stars, last pushed today), licensed MIT. It adds 4,482 tokens to every session, about $0.0179 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 9,715 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,461 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,750 tokens

deepseek-harness AGENTS.md

AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.

deepseek-ai/deepseek-harness · 4,261 tokens